@pelatform/starter 0.1.7 → 0.1.9
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/{chunk-2ZAZ77F6.js → chunk-7Y52PHJN.js} +51 -44
- package/dist/extend.d.ts +2 -7
- package/dist/extend.js +4 -39
- package/dist/index.d.ts +136 -164
- package/dist/index.js +1812 -330
- package/dist/{ui-DxCTGGLe.d.ts → workspace-CcGHPtq0.d.ts} +74 -218
- package/package.json +34 -13
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { AnyUseQueryOptions, QueryKey } from '@tanstack/react-query';
|
|
2
|
+
import * as better_auth_client_plugins from 'better-auth/client/plugins';
|
|
2
3
|
import * as better_auth_react from 'better-auth/react';
|
|
3
4
|
import { createAuthClient, BetterFetchResponse, BetterFetchOption } from 'better-auth/react';
|
|
4
|
-
import * as
|
|
5
|
-
import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
6
|
-
import { CredentialDeviceType, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
5
|
+
import * as better_auth from 'better-auth';
|
|
7
6
|
import * as better_auth_plugins_organization from 'better-auth/plugins/organization';
|
|
8
7
|
import { Organization } from 'better-auth/plugins/organization';
|
|
9
|
-
import * as better_auth from 'better-auth';
|
|
10
|
-
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
11
8
|
import { ComponentType, ComponentProps, ReactNode } from 'react';
|
|
12
9
|
import { Avatar, buttonVariants, Dialog, Card } from 'pelatform-ui/default';
|
|
13
10
|
|
|
@@ -40,6 +37,12 @@ type AuthQueryOptions = {
|
|
|
40
37
|
listPasskeys: QueryKey;
|
|
41
38
|
listSessions: QueryKey;
|
|
42
39
|
session: QueryKey;
|
|
40
|
+
workspaceById: (id: string) => QueryKey;
|
|
41
|
+
workspaceBySlug: (slug: string) => QueryKey;
|
|
42
|
+
workspaceList: QueryKey;
|
|
43
|
+
webhooks: (workspaceId: string) => QueryKey;
|
|
44
|
+
billings: (workspaceId: string) => QueryKey;
|
|
45
|
+
billingUsage: (workspaceId: string) => QueryKey;
|
|
43
46
|
};
|
|
44
47
|
};
|
|
45
48
|
declare const defaultAuthQueryOptions: AuthQueryOptions;
|
|
@@ -219,6 +222,7 @@ type PathConfig = {
|
|
|
219
222
|
custom: {
|
|
220
223
|
ACCEPT_INVITATION: string;
|
|
221
224
|
NEW_WORKSPACE: string;
|
|
225
|
+
VERIFY_EMAIL: string;
|
|
222
226
|
};
|
|
223
227
|
};
|
|
224
228
|
/**
|
|
@@ -251,32 +255,8 @@ type Config = {
|
|
|
251
255
|
ui: UIConfig;
|
|
252
256
|
};
|
|
253
257
|
|
|
254
|
-
type Passkey = {
|
|
255
|
-
id: string;
|
|
256
|
-
name?: string | undefined;
|
|
257
|
-
publicKey: string;
|
|
258
|
-
userId: string;
|
|
259
|
-
credentialID: string;
|
|
260
|
-
counter: number;
|
|
261
|
-
deviceType: CredentialDeviceType;
|
|
262
|
-
backedUp: boolean;
|
|
263
|
-
transports?: string | undefined;
|
|
264
|
-
createdAt: Date;
|
|
265
|
-
aaguid?: string | undefined;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
258
|
type AnyAuthClient = Omit<ReturnType<typeof createAuthClient>, "signUp" | "getSession">;
|
|
269
259
|
declare const authClient: {} & {
|
|
270
|
-
useListPasskeys: () => {
|
|
271
|
-
data: Passkey[] | null;
|
|
272
|
-
error: null | _better_fetch_fetch.BetterFetchError;
|
|
273
|
-
isPending: boolean;
|
|
274
|
-
isRefetching: boolean;
|
|
275
|
-
refetch: (queryParams?: {
|
|
276
|
-
query?: better_auth.SessionQueryParams;
|
|
277
|
-
} | undefined) => Promise<void>;
|
|
278
|
-
};
|
|
279
|
-
} & {
|
|
280
260
|
useActiveOrganization: () => {
|
|
281
261
|
data: better_auth.Prettify<{
|
|
282
262
|
id: string;
|
|
@@ -310,7 +290,7 @@ declare const authClient: {} & {
|
|
|
310
290
|
createdAt: Date;
|
|
311
291
|
}[];
|
|
312
292
|
}> | null;
|
|
313
|
-
error: null |
|
|
293
|
+
error: null | better_auth_react.BetterFetchError;
|
|
314
294
|
isPending: boolean;
|
|
315
295
|
isRefetching: boolean;
|
|
316
296
|
refetch: (queryParams?: {
|
|
@@ -326,7 +306,7 @@ declare const authClient: {} & {
|
|
|
326
306
|
logo?: string | null | undefined | undefined;
|
|
327
307
|
metadata?: any;
|
|
328
308
|
}[] | null;
|
|
329
|
-
error: null |
|
|
309
|
+
error: null | better_auth_react.BetterFetchError;
|
|
330
310
|
isPending: boolean;
|
|
331
311
|
isRefetching: boolean;
|
|
332
312
|
refetch: (queryParams?: {
|
|
@@ -341,7 +321,7 @@ declare const authClient: {} & {
|
|
|
341
321
|
role: string;
|
|
342
322
|
createdAt: Date;
|
|
343
323
|
} | null;
|
|
344
|
-
error: null |
|
|
324
|
+
error: null | better_auth_react.BetterFetchError;
|
|
345
325
|
isPending: boolean;
|
|
346
326
|
isRefetching: boolean;
|
|
347
327
|
refetch: (queryParams?: {
|
|
@@ -352,7 +332,7 @@ declare const authClient: {} & {
|
|
|
352
332
|
data: {
|
|
353
333
|
role: string;
|
|
354
334
|
} | null;
|
|
355
|
-
error: null |
|
|
335
|
+
error: null | better_auth_react.BetterFetchError;
|
|
356
336
|
isPending: boolean;
|
|
357
337
|
isRefetching: boolean;
|
|
358
338
|
refetch: (queryParams?: {
|
|
@@ -1172,113 +1152,6 @@ declare const authClient: {} & {
|
|
|
1172
1152
|
message?: string | undefined;
|
|
1173
1153
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1174
1154
|
};
|
|
1175
|
-
} & {
|
|
1176
|
-
passkey: {
|
|
1177
|
-
generateRegisterOptions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
1178
|
-
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
|
|
1179
|
-
name?: string | undefined;
|
|
1180
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
1181
|
-
query?: {
|
|
1182
|
-
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
|
|
1183
|
-
name?: string | undefined;
|
|
1184
|
-
} | undefined;
|
|
1185
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1186
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<_simplewebauthn_server.PublicKeyCredentialCreationOptionsJSON, {
|
|
1187
|
-
code?: string | undefined;
|
|
1188
|
-
message?: string | undefined;
|
|
1189
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1190
|
-
};
|
|
1191
|
-
} & {
|
|
1192
|
-
passkey: {
|
|
1193
|
-
generateAuthenticateOptions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
1194
|
-
query?: Record<string, any> | undefined;
|
|
1195
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1196
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<_simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON, {
|
|
1197
|
-
code?: string | undefined;
|
|
1198
|
-
message?: string | undefined;
|
|
1199
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1200
|
-
};
|
|
1201
|
-
} & {
|
|
1202
|
-
passkey: {
|
|
1203
|
-
verifyRegistration: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
1204
|
-
response: any;
|
|
1205
|
-
name?: string | undefined;
|
|
1206
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
1207
|
-
response: any;
|
|
1208
|
-
name?: string | undefined;
|
|
1209
|
-
} & {
|
|
1210
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1211
|
-
}>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Passkey, {
|
|
1212
|
-
code?: string | undefined;
|
|
1213
|
-
message?: string | undefined;
|
|
1214
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1215
|
-
};
|
|
1216
|
-
} & {
|
|
1217
|
-
passkey: {
|
|
1218
|
-
verifyAuthentication: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
1219
|
-
response: AuthenticationResponseJSON;
|
|
1220
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
1221
|
-
response: AuthenticationResponseJSON;
|
|
1222
|
-
} & {
|
|
1223
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1224
|
-
}>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
|
|
1225
|
-
session: {
|
|
1226
|
-
id: string;
|
|
1227
|
-
createdAt: Date;
|
|
1228
|
-
updatedAt: Date;
|
|
1229
|
-
userId: string;
|
|
1230
|
-
expiresAt: Date;
|
|
1231
|
-
token: string;
|
|
1232
|
-
ipAddress?: string | null | undefined;
|
|
1233
|
-
userAgent?: string | null | undefined;
|
|
1234
|
-
};
|
|
1235
|
-
}, {
|
|
1236
|
-
code?: string | undefined;
|
|
1237
|
-
message?: string | undefined;
|
|
1238
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1239
|
-
};
|
|
1240
|
-
} & {
|
|
1241
|
-
passkey: {
|
|
1242
|
-
listUserPasskeys: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
1243
|
-
query?: Record<string, any> | undefined;
|
|
1244
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1245
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Passkey[], {
|
|
1246
|
-
code?: string | undefined;
|
|
1247
|
-
message?: string | undefined;
|
|
1248
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1249
|
-
};
|
|
1250
|
-
} & {
|
|
1251
|
-
passkey: {
|
|
1252
|
-
deletePasskey: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
1253
|
-
id: string;
|
|
1254
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
1255
|
-
id: string;
|
|
1256
|
-
} & {
|
|
1257
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1258
|
-
}>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
|
|
1259
|
-
status: boolean;
|
|
1260
|
-
}, {
|
|
1261
|
-
code?: string | undefined;
|
|
1262
|
-
message?: string | undefined;
|
|
1263
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1264
|
-
};
|
|
1265
|
-
} & {
|
|
1266
|
-
passkey: {
|
|
1267
|
-
updatePasskey: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
1268
|
-
id: string;
|
|
1269
|
-
name: string;
|
|
1270
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
1271
|
-
id: string;
|
|
1272
|
-
name: string;
|
|
1273
|
-
} & {
|
|
1274
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1275
|
-
}>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<{
|
|
1276
|
-
passkey: Passkey;
|
|
1277
|
-
}, {
|
|
1278
|
-
code?: string | undefined;
|
|
1279
|
-
message?: string | undefined;
|
|
1280
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1281
|
-
};
|
|
1282
1155
|
} & {
|
|
1283
1156
|
signIn: {
|
|
1284
1157
|
phoneNumber: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
@@ -2893,63 +2766,6 @@ declare const authClient: {} & {
|
|
|
2893
2766
|
};
|
|
2894
2767
|
} & {
|
|
2895
2768
|
oneTap: (opts?: better_auth_client_plugins.GoogleOneTapActionOptions | undefined, fetchOptions?: better_auth.ClientFetchOption | undefined) => Promise<void>;
|
|
2896
|
-
} & {
|
|
2897
|
-
signIn: {
|
|
2898
|
-
passkey: (opts?: {
|
|
2899
|
-
autoFill?: boolean;
|
|
2900
|
-
fetchOptions?: better_auth.ClientFetchOption;
|
|
2901
|
-
} | undefined, options?: better_auth.ClientFetchOption | undefined) => Promise<{
|
|
2902
|
-
data: null;
|
|
2903
|
-
error: {
|
|
2904
|
-
message?: string | undefined;
|
|
2905
|
-
status: number;
|
|
2906
|
-
statusText: string;
|
|
2907
|
-
};
|
|
2908
|
-
} | {
|
|
2909
|
-
data: {
|
|
2910
|
-
session: better_auth.Session;
|
|
2911
|
-
user: better_auth.User;
|
|
2912
|
-
};
|
|
2913
|
-
error: null;
|
|
2914
|
-
} | {
|
|
2915
|
-
data: null;
|
|
2916
|
-
error: {
|
|
2917
|
-
code: string;
|
|
2918
|
-
message: string;
|
|
2919
|
-
status: number;
|
|
2920
|
-
statusText: string;
|
|
2921
|
-
};
|
|
2922
|
-
}>;
|
|
2923
|
-
};
|
|
2924
|
-
passkey: {
|
|
2925
|
-
addPasskey: (opts?: {
|
|
2926
|
-
fetchOptions?: better_auth.ClientFetchOption;
|
|
2927
|
-
name?: string;
|
|
2928
|
-
authenticatorAttachment?: "platform" | "cross-platform";
|
|
2929
|
-
useAutoRegister?: boolean;
|
|
2930
|
-
} | undefined, fetchOpts?: better_auth.ClientFetchOption | undefined) => Promise<{
|
|
2931
|
-
data: null;
|
|
2932
|
-
error: {
|
|
2933
|
-
message?: string | undefined;
|
|
2934
|
-
status: number;
|
|
2935
|
-
statusText: string;
|
|
2936
|
-
};
|
|
2937
|
-
} | {
|
|
2938
|
-
data: Passkey;
|
|
2939
|
-
error: null;
|
|
2940
|
-
} | {
|
|
2941
|
-
data: null;
|
|
2942
|
-
error: {
|
|
2943
|
-
code: string;
|
|
2944
|
-
message: string;
|
|
2945
|
-
status: number;
|
|
2946
|
-
statusText: string;
|
|
2947
|
-
};
|
|
2948
|
-
}>;
|
|
2949
|
-
};
|
|
2950
|
-
$Infer: {
|
|
2951
|
-
Passkey: Passkey;
|
|
2952
|
-
};
|
|
2953
2769
|
} & {
|
|
2954
2770
|
admin: {
|
|
2955
2771
|
checkRolePermission: <R extends "user" | "admin">(data: ({
|
|
@@ -3105,7 +2921,7 @@ declare const authClient: {} & {
|
|
|
3105
2921
|
} | null;
|
|
3106
2922
|
isPending: boolean;
|
|
3107
2923
|
isRefetching: boolean;
|
|
3108
|
-
error:
|
|
2924
|
+
error: better_auth_react.BetterFetchError | null;
|
|
3109
2925
|
refetch: (queryParams?: {
|
|
3110
2926
|
query?: better_auth.SessionQueryParams;
|
|
3111
2927
|
} | undefined) => Promise<void>;
|
|
@@ -3145,21 +2961,21 @@ declare const authClient: {} & {
|
|
|
3145
2961
|
};
|
|
3146
2962
|
};
|
|
3147
2963
|
};
|
|
3148
|
-
$fetch:
|
|
3149
|
-
plugins: (
|
|
2964
|
+
$fetch: better_auth_react.BetterFetch<{
|
|
2965
|
+
plugins: (better_auth_react.BetterFetchPlugin | {
|
|
3150
2966
|
id: string;
|
|
3151
2967
|
name: string;
|
|
3152
2968
|
hooks: {
|
|
3153
|
-
onSuccess(context:
|
|
2969
|
+
onSuccess(context: better_auth_react.SuccessContext<any>): void;
|
|
3154
2970
|
};
|
|
3155
2971
|
} | {
|
|
3156
2972
|
id: string;
|
|
3157
2973
|
name: string;
|
|
3158
2974
|
hooks: {
|
|
3159
|
-
onSuccess: ((context:
|
|
3160
|
-
onError: ((context:
|
|
3161
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
3162
|
-
onResponse: ((context:
|
|
2975
|
+
onSuccess: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
2976
|
+
onError: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
|
|
2977
|
+
onRequest: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
|
|
2978
|
+
onResponse: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
|
|
3163
2979
|
};
|
|
3164
2980
|
})[];
|
|
3165
2981
|
cache?: RequestCache | undefined;
|
|
@@ -3179,12 +2995,12 @@ declare const authClient: {} & {
|
|
|
3179
2995
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
3180
2996
|
signal?: (AbortSignal | null) | undefined;
|
|
3181
2997
|
window?: null | undefined;
|
|
3182
|
-
onRetry?: ((response:
|
|
2998
|
+
onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
|
|
3183
2999
|
hookOptions?: {
|
|
3184
3000
|
cloneResponse?: boolean;
|
|
3185
3001
|
} | undefined;
|
|
3186
3002
|
timeout?: number | undefined;
|
|
3187
|
-
customFetchImpl:
|
|
3003
|
+
customFetchImpl: better_auth_react.FetchEsque;
|
|
3188
3004
|
baseURL: string;
|
|
3189
3005
|
throw?: boolean | undefined;
|
|
3190
3006
|
auth?: ({
|
|
@@ -3204,10 +3020,10 @@ declare const authClient: {} & {
|
|
|
3204
3020
|
params?: any;
|
|
3205
3021
|
duplex?: "full" | "half" | undefined;
|
|
3206
3022
|
jsonParser: (text: string) => Promise<any> | any;
|
|
3207
|
-
retry?:
|
|
3023
|
+
retry?: better_auth_react.RetryOptions | undefined;
|
|
3208
3024
|
retryAttempt?: number | undefined;
|
|
3209
|
-
output?: (
|
|
3210
|
-
errorSchema?:
|
|
3025
|
+
output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
3026
|
+
errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
|
|
3211
3027
|
disableValidation?: boolean | undefined;
|
|
3212
3028
|
disableSignal?: boolean | undefined;
|
|
3213
3029
|
}, unknown, unknown, {}>;
|
|
@@ -3304,13 +3120,6 @@ declare const authClient: {} & {
|
|
|
3304
3120
|
readonly PROVIDER_ID_REQUIRED: "Provider ID is required";
|
|
3305
3121
|
readonly INVALID_OAUTH_CONFIG: "Invalid OAuth configuration.";
|
|
3306
3122
|
readonly SESSION_REQUIRED: "Session is required";
|
|
3307
|
-
readonly CHALLENGE_NOT_FOUND: "Challenge not found";
|
|
3308
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: "You are not allowed to register this passkey";
|
|
3309
|
-
readonly FAILED_TO_VERIFY_REGISTRATION: "Failed to verify registration";
|
|
3310
|
-
readonly PASSKEY_NOT_FOUND: "Passkey not found";
|
|
3311
|
-
readonly AUTHENTICATION_FAILED: "Authentication failed";
|
|
3312
|
-
readonly UNABLE_TO_CREATE_SESSION: "Unable to create session";
|
|
3313
|
-
readonly FAILED_TO_UPDATE_PASSKEY: "Failed to update passkey";
|
|
3314
3123
|
readonly INVALID_PHONE_NUMBER: "Invalid phone number";
|
|
3315
3124
|
readonly PHONE_NUMBER_EXIST: "Phone number already exists";
|
|
3316
3125
|
readonly PHONE_NUMBER_NOT_EXIST: "phone number isn't registered";
|
|
@@ -3572,4 +3381,51 @@ interface CardComponentProps extends Omit<ComponentProps<typeof Card>, "title" |
|
|
|
3572
3381
|
isSubmitting?: boolean;
|
|
3573
3382
|
}
|
|
3574
3383
|
|
|
3575
|
-
|
|
3384
|
+
type Workspace = {
|
|
3385
|
+
id: string;
|
|
3386
|
+
name: string;
|
|
3387
|
+
slug: string;
|
|
3388
|
+
logo: string | null;
|
|
3389
|
+
metadata: Record<string, unknown> | null;
|
|
3390
|
+
createdAt: Date | string;
|
|
3391
|
+
currentUserRole: string | null;
|
|
3392
|
+
members: Array<{
|
|
3393
|
+
id: string;
|
|
3394
|
+
organizationId: string;
|
|
3395
|
+
userId: string;
|
|
3396
|
+
role: string;
|
|
3397
|
+
createdAt: Date | string;
|
|
3398
|
+
user: {
|
|
3399
|
+
id: string;
|
|
3400
|
+
name: string | null;
|
|
3401
|
+
email: string;
|
|
3402
|
+
image: string | null;
|
|
3403
|
+
};
|
|
3404
|
+
}>;
|
|
3405
|
+
invitations?: Array<{
|
|
3406
|
+
id: string;
|
|
3407
|
+
organizationId: string;
|
|
3408
|
+
inviterId: string;
|
|
3409
|
+
email: string;
|
|
3410
|
+
role: string | null;
|
|
3411
|
+
status: string;
|
|
3412
|
+
expiresAt: Date | string;
|
|
3413
|
+
}>;
|
|
3414
|
+
subscription: {
|
|
3415
|
+
id: string;
|
|
3416
|
+
userId: string | null;
|
|
3417
|
+
workspaceId: string;
|
|
3418
|
+
subscriptionId: string | null;
|
|
3419
|
+
externalId: string;
|
|
3420
|
+
provider: string;
|
|
3421
|
+
status: string;
|
|
3422
|
+
plan: string;
|
|
3423
|
+
currentPeriodStart?: string | Date;
|
|
3424
|
+
currentPeriodEnd?: string | Date;
|
|
3425
|
+
cancelAtPeriodEnd?: boolean;
|
|
3426
|
+
canceledAt?: string | Date | null;
|
|
3427
|
+
isLifetime: boolean;
|
|
3428
|
+
} | null;
|
|
3429
|
+
};
|
|
3430
|
+
|
|
3431
|
+
export { type AuthQueryOptions as A, type BetterFetchRequest as B, type Config as C, type DialogClassNames as D, type FeaturesConfig as F, type I18nConfig as I, type LocaleConfig as L, type NonThrowableResult as N, type PathConfig as P, type Refetch as R, type SessionData as S, type ThrowableResult as T, type UIConfig as U, type ViewClassNames as V, type Workspace as W, type AppConfig as a, type AuthenticationConfig as b, type AuthConfig as c, defaultAuthQueryOptions as d, type AnyAuthClient as e, authClient as f, type AuthClient as g, type Session as h, type User as i, type ActiveOrganization as j, type Locale as k, type FieldType as l, type ImageOptions as m, type ProviderIcon as n, type Provider as o, type ApiKey as p, type Invitation as q, type PasswordValidation as r, type Profile as s, type FetchError as t, type AvatarClassNames as u, type CardClassNames as v, type AvatarProps as w, type ViewProps as x, type DialogComponentProps as y, type CardComponentProps as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pelatform/starter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "A collection of SaaS starter kit components and utilities for Pelatform applications.",
|
|
5
5
|
"author": "Pelatform",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,18 +9,39 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"exports": {
|
|
12
|
-
"./css":
|
|
12
|
+
"./css": {
|
|
13
|
+
"development": "./src/style.css",
|
|
14
|
+
"default": "./dist/style.css"
|
|
15
|
+
},
|
|
13
16
|
".": {
|
|
14
|
-
"
|
|
15
|
-
|
|
17
|
+
"development": {
|
|
18
|
+
"types": "./src/index.ts",
|
|
19
|
+
"default": "./src/index.ts"
|
|
20
|
+
},
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"default": "./dist/index.js"
|
|
24
|
+
}
|
|
16
25
|
},
|
|
17
26
|
"./extend": {
|
|
18
|
-
"
|
|
19
|
-
|
|
27
|
+
"development": {
|
|
28
|
+
"types": "./src/extend.ts",
|
|
29
|
+
"default": "./src/extend.ts"
|
|
30
|
+
},
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/extend.d.ts",
|
|
33
|
+
"default": "./dist/extend.js"
|
|
34
|
+
}
|
|
20
35
|
},
|
|
21
36
|
"./server": {
|
|
22
|
-
"
|
|
23
|
-
|
|
37
|
+
"development": {
|
|
38
|
+
"types": "./src/server.ts",
|
|
39
|
+
"default": "./src/server.ts"
|
|
40
|
+
},
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/server.d.ts",
|
|
43
|
+
"default": "./dist/server.js"
|
|
44
|
+
}
|
|
24
45
|
}
|
|
25
46
|
},
|
|
26
47
|
"scripts": {
|
|
@@ -28,7 +49,9 @@
|
|
|
28
49
|
"clean:all": "rimraf .turbo dist node_modules",
|
|
29
50
|
"dev": "tsup --watch --onSuccess \"cp src/style.css dist/style.css\"",
|
|
30
51
|
"build": "tsup && cp src/style.css dist/style.css",
|
|
31
|
-
"types:check": "tsc --noEmit"
|
|
52
|
+
"types:check": "tsc --noEmit",
|
|
53
|
+
"prepack": "node scripts/prepare-publish.mjs",
|
|
54
|
+
"postpack": "git checkout -- package.json"
|
|
32
55
|
},
|
|
33
56
|
"files": [
|
|
34
57
|
"dist"
|
|
@@ -40,8 +63,7 @@
|
|
|
40
63
|
"utilities"
|
|
41
64
|
],
|
|
42
65
|
"dependencies": {
|
|
43
|
-
"@better-
|
|
44
|
-
"@better-fetch/fetch": "^1.1.18",
|
|
66
|
+
"@better-fetch/fetch": "^1.1.19",
|
|
45
67
|
"@tanstack/react-query-devtools": "^5.91.1",
|
|
46
68
|
"qrcode": "^1.5.4",
|
|
47
69
|
"slugify": "^1.6.6",
|
|
@@ -50,14 +72,13 @@
|
|
|
50
72
|
"devDependencies": {
|
|
51
73
|
"@hookform/resolvers": "^5.2.2",
|
|
52
74
|
"@pelatform/tsconfig": "^0.1.3",
|
|
53
|
-
"@simplewebauthn/server": "^13.2.2",
|
|
54
75
|
"@tanstack/query-core": "^5.90.12",
|
|
55
76
|
"@tanstack/react-query": "^5.90.12",
|
|
56
77
|
"@types/node": "^24.10.1",
|
|
57
78
|
"@types/qrcode": "^1.5.6",
|
|
58
79
|
"@types/react": "^19.2.7",
|
|
59
80
|
"better-auth": "^1.4.5",
|
|
60
|
-
"lucide-react": "^0.
|
|
81
|
+
"lucide-react": "^0.556.0",
|
|
61
82
|
"next": "^16.0.7",
|
|
62
83
|
"next-intl": "^4.5.8",
|
|
63
84
|
"pelatform-ui": "^1.1.3",
|