@krak-stack/auth 0.1.50 → 0.1.51

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.
@@ -1,135 +1,5 @@
1
1
  import { AtomHttpApi } from "effect/unstable/reactivity";
2
- export declare const authClientApi: (baseUrl?: string | undefined) => AtomHttpApi.AtomHttpApiClient<object, `AuthClientApi:${string}`, import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3
- readonly session: import("effect/Schema").Struct<{
4
- readonly id: import("effect/Schema").String;
5
- readonly expiresAt: import("effect/Schema").Date;
6
- readonly token: import("effect/Schema").String;
7
- readonly createdAt: import("effect/Schema").Date;
8
- readonly updatedAt: import("effect/Schema").Date;
9
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
10
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
11
- readonly userId: import("effect/Schema").String;
12
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
13
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
14
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
15
- }>;
16
- readonly user: import("effect/Schema").Struct<{
17
- readonly id: import("effect/Schema").String;
18
- readonly name: import("effect/Schema").String;
19
- readonly email: import("effect/Schema").String;
20
- readonly emailVerified: import("effect/Schema").Boolean;
21
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
22
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
23
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
24
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
25
- readonly createdAt: import("effect/Schema").Date;
26
- readonly updatedAt: import("effect/Schema").Date;
27
- }>;
28
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../better-auth/schema").TooManyRequests>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
29
- readonly organizationId: import("effect/Schema").NonEmptyString;
30
- readonly actorUserId: import("effect/Schema").NonEmptyString;
31
- readonly targetUserId: import("effect/Schema").NonEmptyString;
32
- readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
33
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
34
- readonly session: import("effect/Schema").Struct<{
35
- readonly id: import("effect/Schema").String;
36
- readonly expiresAt: import("effect/Schema").Date;
37
- readonly token: import("effect/Schema").String;
38
- readonly createdAt: import("effect/Schema").Date;
39
- readonly updatedAt: import("effect/Schema").Date;
40
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
41
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
42
- readonly userId: import("effect/Schema").String;
43
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
44
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
45
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
46
- }>;
47
- readonly user: import("effect/Schema").Struct<{
48
- readonly id: import("effect/Schema").String;
49
- readonly name: import("effect/Schema").String;
50
- readonly email: import("effect/Schema").String;
51
- readonly emailVerified: import("effect/Schema").Boolean;
52
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
53
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
54
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
55
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
56
- readonly createdAt: import("effect/Schema").Date;
57
- readonly updatedAt: import("effect/Schema").Date;
58
- }>;
59
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
60
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
61
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
62
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
63
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
64
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
65
- readonly id: import("effect/Schema").String;
66
- readonly key: import("effect/Schema").String;
67
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
68
- readonly organizationId: import("effect/Schema").String;
69
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
70
- readonly id: import("effect/Schema").String;
71
- readonly name: import("effect/Schema").String;
72
- readonly slug: import("effect/Schema").String;
73
- readonly displayName: import("effect/Schema").String;
74
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
75
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
76
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
77
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
78
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
79
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
80
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
81
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
82
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
83
- readonly projectKey: import("effect/Schema").String;
84
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
85
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
86
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
87
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
88
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
89
- readonly authOptions: import("effect/Schema").Struct<{
90
- readonly emailPassword: import("effect/Schema").Boolean;
91
- readonly emailOtp: import("effect/Schema").Boolean;
92
- readonly google: import("effect/Schema").Boolean;
93
- readonly signUp: import("effect/Schema").Boolean;
94
- readonly signUpName: import("effect/Schema").Boolean;
95
- }>;
96
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
97
- readonly newPassword: import("effect/Schema").NonEmptyString;
98
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
99
- readonly ok: import("effect/Schema").Boolean;
100
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
101
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
102
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
103
- readonly url: import("effect/Schema").String;
104
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
105
- readonly key: import("effect/Schema").NonEmptyString;
106
- readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
107
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
108
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
109
- readonly valid: import("effect/Schema").Boolean;
110
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
111
- readonly message: import("effect/Schema").String;
112
- readonly code: import("effect/Schema").String;
113
- }>>;
114
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
115
- readonly id: import("effect/Schema").String;
116
- readonly configId: import("effect/Schema").String;
117
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
118
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
119
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
120
- readonly referenceId: import("effect/Schema").String;
121
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
122
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
123
- readonly createdAt: import("effect/Schema").Date;
124
- readonly updatedAt: import("effect/Schema").Date;
125
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
126
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
127
- }>>;
128
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
129
- readonly password: import("effect/Schema").NonEmptyString;
130
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
131
- readonly ok: import("effect/Schema").Boolean;
132
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra/schema").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2
+ export declare const authClientApi: (baseUrl?: string | undefined) => AtomHttpApi.AtomHttpApiClient<object, `AuthClientApi:${string}`, import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
133
3
  readonly hostname: import("effect/Schema").NonEmptyString;
134
4
  readonly rootHostname: import("effect/Schema").NonEmptyString;
135
5
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -445,4 +315,134 @@ export declare const authClientApi: (baseUrl?: string | undefined) => AtomHttpAp
445
315
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
446
316
  readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
447
317
  readonly createdAt: import("effect/Schema").Date;
448
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
318
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
319
+ readonly session: import("effect/Schema").Struct<{
320
+ readonly id: import("effect/Schema").String;
321
+ readonly expiresAt: import("effect/Schema").Date;
322
+ readonly token: import("effect/Schema").String;
323
+ readonly createdAt: import("effect/Schema").Date;
324
+ readonly updatedAt: import("effect/Schema").Date;
325
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
326
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
327
+ readonly userId: import("effect/Schema").String;
328
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
329
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
330
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
331
+ }>;
332
+ readonly user: import("effect/Schema").Struct<{
333
+ readonly id: import("effect/Schema").String;
334
+ readonly name: import("effect/Schema").String;
335
+ readonly email: import("effect/Schema").String;
336
+ readonly emailVerified: import("effect/Schema").Boolean;
337
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
338
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
339
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
340
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
341
+ readonly createdAt: import("effect/Schema").Date;
342
+ readonly updatedAt: import("effect/Schema").Date;
343
+ }>;
344
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../better-auth/schema").TooManyRequests>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
345
+ readonly organizationId: import("effect/Schema").NonEmptyString;
346
+ readonly actorUserId: import("effect/Schema").NonEmptyString;
347
+ readonly targetUserId: import("effect/Schema").NonEmptyString;
348
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
349
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
350
+ readonly session: import("effect/Schema").Struct<{
351
+ readonly id: import("effect/Schema").String;
352
+ readonly expiresAt: import("effect/Schema").Date;
353
+ readonly token: import("effect/Schema").String;
354
+ readonly createdAt: import("effect/Schema").Date;
355
+ readonly updatedAt: import("effect/Schema").Date;
356
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
357
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
358
+ readonly userId: import("effect/Schema").String;
359
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
360
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
361
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
362
+ }>;
363
+ readonly user: import("effect/Schema").Struct<{
364
+ readonly id: import("effect/Schema").String;
365
+ readonly name: import("effect/Schema").String;
366
+ readonly email: import("effect/Schema").String;
367
+ readonly emailVerified: import("effect/Schema").Boolean;
368
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
369
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
370
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
371
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
372
+ readonly createdAt: import("effect/Schema").Date;
373
+ readonly updatedAt: import("effect/Schema").Date;
374
+ }>;
375
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
376
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
377
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
378
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
379
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
380
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
381
+ readonly id: import("effect/Schema").String;
382
+ readonly key: import("effect/Schema").String;
383
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
384
+ readonly organizationId: import("effect/Schema").String;
385
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
386
+ readonly id: import("effect/Schema").String;
387
+ readonly name: import("effect/Schema").String;
388
+ readonly slug: import("effect/Schema").String;
389
+ readonly displayName: import("effect/Schema").String;
390
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
391
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
392
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
393
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
394
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
395
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
396
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
397
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
398
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
399
+ readonly projectKey: import("effect/Schema").String;
400
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
401
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
402
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
403
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
404
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
405
+ readonly authOptions: import("effect/Schema").Struct<{
406
+ readonly emailPassword: import("effect/Schema").Boolean;
407
+ readonly emailOtp: import("effect/Schema").Boolean;
408
+ readonly google: import("effect/Schema").Boolean;
409
+ readonly signUp: import("effect/Schema").Boolean;
410
+ readonly signUpName: import("effect/Schema").Boolean;
411
+ }>;
412
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
413
+ readonly newPassword: import("effect/Schema").NonEmptyString;
414
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
415
+ readonly ok: import("effect/Schema").Boolean;
416
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
417
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
418
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
419
+ readonly url: import("effect/Schema").String;
420
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
421
+ readonly key: import("effect/Schema").NonEmptyString;
422
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
423
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
424
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
425
+ readonly valid: import("effect/Schema").Boolean;
426
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
427
+ readonly message: import("effect/Schema").String;
428
+ readonly code: import("effect/Schema").String;
429
+ }>>;
430
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
431
+ readonly id: import("effect/Schema").String;
432
+ readonly configId: import("effect/Schema").String;
433
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
434
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
435
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
436
+ readonly referenceId: import("effect/Schema").String;
437
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
438
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
439
+ readonly createdAt: import("effect/Schema").Date;
440
+ readonly updatedAt: import("effect/Schema").Date;
441
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
442
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
443
+ }>>;
444
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
445
+ readonly password: import("effect/Schema").NonEmptyString;
446
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
447
+ readonly ok: import("effect/Schema").Boolean;
448
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra/schema").ExtraBadRequest>, never, never>, false>>;
@@ -1,5 +1,5 @@
1
1
  import { apiKeyClient } from "@better-auth/api-key/client";
2
- import { adminClient, emailOTPClient, genericOAuthClient, inferAdditionalFields, lastLoginMethodClient, organizationClient, twoFactorClient } from "better-auth/client/plugins";
2
+ import { adminClient, anonymousClient, emailOTPClient, genericOAuthClient, inferAdditionalFields, lastLoginMethodClient, organizationClient, twoFactorClient } from "better-auth/client/plugins";
3
3
  import { type ReactAuthClient } from "better-auth/react";
4
4
  declare const additionalFields: {
5
5
  readonly session: {
@@ -13,6 +13,7 @@ declare const additionalFields: {
13
13
  type AuthUiClientPlugins = [
14
14
  ReturnType<typeof inferAdditionalFields<never, typeof additionalFields>>,
15
15
  ReturnType<typeof adminClient<{}>>,
16
+ ReturnType<typeof anonymousClient>,
16
17
  ReturnType<typeof emailOTPClient>,
17
18
  ReturnType<typeof lastLoginMethodClient>,
18
19
  ReturnType<typeof organizationClient<{}>>,
@@ -1,5 +1,5 @@
1
1
  import { apiKeyClient } from "@better-auth/api-key/client";
2
- import { adminClient, emailOTPClient, genericOAuthClient, inferAdditionalFields, lastLoginMethodClient, organizationClient, twoFactorClient, } from "better-auth/client/plugins";
2
+ import { adminClient, anonymousClient, emailOTPClient, genericOAuthClient, inferAdditionalFields, lastLoginMethodClient, organizationClient, twoFactorClient, } from "better-auth/client/plugins";
3
3
  import { createAuthClient } from "better-auth/react";
4
4
  const additionalFields = {
5
5
  session: {
@@ -13,6 +13,7 @@ const additionalFields = {
13
13
  const authUiClientPlugins = [
14
14
  inferAdditionalFields(additionalFields),
15
15
  adminClient(),
16
+ anonymousClient(),
16
17
  emailOTPClient(),
17
18
  lastLoginMethodClient({
18
19
  cookieName: "krakstack-auth.last_used_login_method",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/auth",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
4
4
  "description": "Effect HttpApi clients and schemas for KrakStack Auth.",
5
5
  "license": "MIT",
6
6
  "files": [