@krak-stack/auth 0.1.45 → 0.1.47

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,125 +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").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("../extra/schema").ExtraBadRequest>, 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<{
68
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
69
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
70
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
71
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
72
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
73
- readonly projectKey: import("effect/Schema").String;
74
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
75
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
76
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
77
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
78
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
79
- readonly authOptions: import("effect/Schema").Struct<{
80
- readonly emailPassword: import("effect/Schema").Boolean;
81
- readonly emailOtp: import("effect/Schema").Boolean;
82
- readonly google: import("effect/Schema").Boolean;
83
- readonly signUp: import("effect/Schema").Boolean;
84
- readonly signUpName: import("effect/Schema").Boolean;
85
- }>;
86
- }>>, 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<{
87
- readonly newPassword: import("effect/Schema").NonEmptyString;
88
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
89
- readonly ok: import("effect/Schema").Boolean;
90
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<{
91
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
92
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
93
- readonly url: import("effect/Schema").String;
94
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | 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<{
95
- readonly key: import("effect/Schema").NonEmptyString;
96
- 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">]>>;
97
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
98
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
99
- readonly valid: import("effect/Schema").Boolean;
100
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
101
- readonly message: import("effect/Schema").String;
102
- readonly code: import("effect/Schema").String;
103
- }>>;
104
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
105
- readonly id: import("effect/Schema").String;
106
- readonly configId: import("effect/Schema").String;
107
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
108
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
109
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
110
- readonly referenceId: import("effect/Schema").String;
111
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
112
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
113
- readonly createdAt: import("effect/Schema").Date;
114
- readonly updatedAt: import("effect/Schema").Date;
115
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
116
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
117
- }>>;
118
- }>>, 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<{
119
- readonly password: import("effect/Schema").NonEmptyString;
120
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
121
- readonly ok: import("effect/Schema").Boolean;
122
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<{
123
3
  readonly hostname: import("effect/Schema").NonEmptyString;
124
4
  readonly rootHostname: import("effect/Schema").NonEmptyString;
125
5
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -176,7 +56,26 @@ export declare const authClientApi: (baseUrl?: string | undefined) => AtomHttpAp
176
56
  readonly users: import("effect/Schema").Number;
177
57
  readonly organizations: import("effect/Schema").Number;
178
58
  }>>;
179
- }>>, 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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/auth/admin/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
59
+ }>>, 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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteApiKey", "DELETE", "/api/auth/admin/api-keys/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
60
+ readonly id: import("effect/Schema").String;
61
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
62
+ readonly id: import("effect/Schema").String;
63
+ readonly configId: import("effect/Schema").String;
64
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
65
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
66
+ readonly referenceId: import("effect/Schema").String;
67
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
68
+ readonly enabled: import("effect/Schema").Boolean;
69
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
70
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
71
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
72
+ readonly requestCount: import("effect/Schema").Number;
73
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
74
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
75
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
76
+ readonly createdAt: import("effect/Schema").Date;
77
+ readonly updatedAt: import("effect/Schema").Date;
78
+ }>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/auth/admin/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
180
79
  readonly id: import("effect/Schema").NonEmptyString;
181
80
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
182
81
  readonly id: import("effect/Schema").String;
@@ -203,6 +102,44 @@ export declare const authClientApi: (baseUrl?: string | undefined) => AtomHttpAp
203
102
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
204
103
  readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
205
104
  readonly createdAt: import("effect/Schema").Date;
105
+ }>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"disableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/disable-rate-limit", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
106
+ readonly id: import("effect/Schema").String;
107
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
108
+ readonly id: import("effect/Schema").String;
109
+ readonly configId: import("effect/Schema").String;
110
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
111
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
112
+ readonly referenceId: import("effect/Schema").String;
113
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
114
+ readonly enabled: import("effect/Schema").Boolean;
115
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
116
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
117
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
118
+ readonly requestCount: import("effect/Schema").Number;
119
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
120
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
121
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
122
+ readonly createdAt: import("effect/Schema").Date;
123
+ readonly updatedAt: import("effect/Schema").Date;
124
+ }>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"enableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/enable-rate-limit", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
125
+ readonly id: import("effect/Schema").String;
126
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
127
+ readonly id: import("effect/Schema").String;
128
+ readonly configId: import("effect/Schema").String;
129
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
130
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
131
+ readonly referenceId: import("effect/Schema").String;
132
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
133
+ readonly enabled: import("effect/Schema").Boolean;
134
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
135
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
136
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
137
+ readonly requestCount: import("effect/Schema").Number;
138
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
139
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
140
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
141
+ readonly createdAt: import("effect/Schema").Date;
142
+ readonly updatedAt: import("effect/Schema").Date;
206
143
  }>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/auth/admin/domains/:id/records", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
207
144
  readonly id: import("effect/Schema").NonEmptyString;
208
145
  }>>, 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").$Array<import("effect/Schema").Struct<{
@@ -211,7 +148,24 @@ export declare const authClientApi: (baseUrl?: string | undefined) => AtomHttpAp
211
148
  readonly type: import("effect/Schema").String;
212
149
  readonly name: import("effect/Schema").String;
213
150
  readonly value: import("effect/Schema").String;
214
- }>>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listDomains", "GET", "/api/auth/admin/domains", 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").$Array<import("effect/Schema").Struct<{
151
+ }>>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/api/auth/admin/api-keys", 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").$Array<import("effect/Schema").Struct<{
152
+ readonly id: import("effect/Schema").String;
153
+ readonly configId: import("effect/Schema").String;
154
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
155
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
156
+ readonly referenceId: import("effect/Schema").String;
157
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
158
+ readonly enabled: import("effect/Schema").Boolean;
159
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
160
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
161
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
162
+ readonly requestCount: import("effect/Schema").Number;
163
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
164
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
165
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
166
+ readonly createdAt: import("effect/Schema").Date;
167
+ readonly updatedAt: import("effect/Schema").Date;
168
+ }>>>, 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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listDomains", "GET", "/api/auth/admin/domains", 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").$Array<import("effect/Schema").Struct<{
215
169
  readonly id: import("effect/Schema").String;
216
170
  readonly hostname: import("effect/Schema").String;
217
171
  readonly rootHostname: import("effect/Schema").String;
@@ -261,26 +215,70 @@ export declare const authClientApi: (baseUrl?: string | undefined) => AtomHttpAp
261
215
  }>>, import("effect/Schema").String, never, never>, never, never>>;
262
216
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
263
217
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
264
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Schema<{
265
- readonly id: string;
266
- readonly name: string;
267
- readonly email: string;
268
- readonly emailVerified: boolean;
269
- readonly image: string | null;
270
- readonly createdAt: Date;
271
- readonly lastSignedIn: Date | null;
272
- readonly role: string | null;
273
- readonly banned: boolean | null;
274
- readonly banReason: string | null;
275
- readonly banExpires: Date | null;
276
- }>>;
218
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Schema<import("effect/Schema").Struct.ReadonlySide<{
219
+ readonly id: import("effect/Schema").String;
220
+ readonly name: import("effect/Schema").String;
221
+ readonly email: import("effect/Schema").String;
222
+ readonly emailVerified: import("effect/Schema").Boolean;
223
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
224
+ readonly createdAt: import("effect/Schema").Date;
225
+ readonly lastSignedIn: import("effect/Schema").NullOr<import("effect/Schema").Date>;
226
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
227
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
228
+ readonly banReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
229
+ readonly banExpires: import("effect/Schema").NullOr<import("effect/Schema").Date>;
230
+ }, "Type">>>;
277
231
  readonly meta: import("effect/Schema").Struct<{
278
232
  readonly page: import("effect/Schema").Int;
279
233
  readonly pageSize: import("effect/Schema").Int;
280
234
  readonly total: import("effect/Schema").Int;
281
235
  readonly pageCount: import("effect/Schema").Int;
282
236
  }>;
283
- }>>, 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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateDomain", "PATCH", "/api/auth/admin/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
237
+ }>>, 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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/reset-rate-limit", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
238
+ readonly id: import("effect/Schema").String;
239
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
240
+ readonly id: import("effect/Schema").String;
241
+ readonly configId: import("effect/Schema").String;
242
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
243
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
244
+ readonly referenceId: import("effect/Schema").String;
245
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
246
+ readonly enabled: import("effect/Schema").Boolean;
247
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
248
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
249
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
250
+ readonly requestCount: import("effect/Schema").Number;
251
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
252
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
253
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
254
+ readonly createdAt: import("effect/Schema").Date;
255
+ readonly updatedAt: import("effect/Schema").Date;
256
+ }>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/admin/api-keys/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
257
+ readonly id: import("effect/Schema").String;
258
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
259
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
260
+ readonly enabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
261
+ readonly rateLimitEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
262
+ readonly rateLimitMax: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
263
+ readonly rateLimitTimeWindow: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
264
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
265
+ readonly id: import("effect/Schema").String;
266
+ readonly configId: import("effect/Schema").String;
267
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
268
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
269
+ readonly referenceId: import("effect/Schema").String;
270
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
271
+ readonly enabled: import("effect/Schema").Boolean;
272
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
273
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
274
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
275
+ readonly requestCount: import("effect/Schema").Number;
276
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
277
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
278
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
279
+ readonly createdAt: import("effect/Schema").Date;
280
+ readonly updatedAt: import("effect/Schema").Date;
281
+ }>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateDomain", "PATCH", "/api/auth/admin/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
284
282
  readonly id: import("effect/Schema").NonEmptyString;
285
283
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
286
284
  readonly hostname: import("effect/Schema").NonEmptyString;
@@ -317,4 +315,124 @@ export declare const authClientApi: (baseUrl?: string | undefined) => AtomHttpAp
317
315
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
318
316
  readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
319
317
  readonly createdAt: import("effect/Schema").Date;
320
- }>>, 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<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
384
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
385
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
386
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
387
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
388
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
389
+ readonly projectKey: import("effect/Schema").String;
390
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
391
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
392
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
393
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
394
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
395
+ readonly authOptions: import("effect/Schema").Struct<{
396
+ readonly emailPassword: import("effect/Schema").Boolean;
397
+ readonly emailOtp: import("effect/Schema").Boolean;
398
+ readonly google: import("effect/Schema").Boolean;
399
+ readonly signUp: import("effect/Schema").Boolean;
400
+ readonly signUpName: import("effect/Schema").Boolean;
401
+ }>;
402
+ }>>, 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<{
403
+ readonly newPassword: import("effect/Schema").NonEmptyString;
404
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
405
+ readonly ok: import("effect/Schema").Boolean;
406
+ }>>, 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<{
407
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
408
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
409
+ readonly url: import("effect/Schema").String;
410
+ }>>, 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<{
411
+ readonly key: import("effect/Schema").NonEmptyString;
412
+ 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">]>>;
413
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
414
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
415
+ readonly valid: import("effect/Schema").Boolean;
416
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
417
+ readonly message: import("effect/Schema").String;
418
+ readonly code: import("effect/Schema").String;
419
+ }>>;
420
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
421
+ readonly id: import("effect/Schema").String;
422
+ readonly configId: import("effect/Schema").String;
423
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
424
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
425
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
426
+ readonly referenceId: import("effect/Schema").String;
427
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
428
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
429
+ readonly createdAt: import("effect/Schema").Date;
430
+ readonly updatedAt: import("effect/Schema").Date;
431
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
432
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
433
+ }>>;
434
+ }>>, 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<{
435
+ readonly password: import("effect/Schema").NonEmptyString;
436
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
437
+ readonly ok: import("effect/Schema").Boolean;
438
+ }>>, 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>>;
@@ -21,18 +21,18 @@ export type KrakstackAuthContextValue = {
21
21
  export declare function KrakstackAuthProvider({ children, locale, baseUrl, projectId, authClient, }: KrakstackAuthProviderProps): import("react").JSX.Element;
22
22
  export declare const useKrakstackAuth: () => KrakstackAuthContextValue | null;
23
23
  export declare const useAuthClient: () => AuthUiClient;
24
- export declare const useKrakstackAuthProjectConfig: () => {
25
- readonly projectKey: string;
26
- readonly name: string | null;
27
- readonly logoUrl: string | null;
28
- readonly authDomain: string | null;
29
- readonly rootDomain: string | null;
30
- readonly themeCss: string | null;
31
- readonly authOptions: {
32
- readonly emailPassword: boolean;
33
- readonly emailOtp: boolean;
34
- readonly google: boolean;
35
- readonly signUp: boolean;
36
- readonly signUpName: boolean;
37
- };
38
- } | null;
24
+ export declare const useKrakstackAuthProjectConfig: () => import("effect/Schema").Struct.ReadonlySide<{
25
+ readonly projectKey: import("effect/Schema").String;
26
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
27
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
28
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
29
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
30
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
31
+ readonly authOptions: import("effect/Schema").Struct<{
32
+ readonly emailPassword: import("effect/Schema").Boolean;
33
+ readonly emailOtp: import("effect/Schema").Boolean;
34
+ readonly google: import("effect/Schema").Boolean;
35
+ readonly signUp: import("effect/Schema").Boolean;
36
+ readonly signUpName: import("effect/Schema").Boolean;
37
+ }>;
38
+ }, "Type"> | null;
@@ -755,7 +755,6 @@ function OrganizationMembersManager({ authClient, baseUrl, organization, current
755
755
  const membersResult = useAtomValue(membersAtom);
756
756
  const refreshMembers = useAtomRefresh(membersAtom);
757
757
  const [error, setError] = useState(null);
758
- const [updatingMemberId, setUpdatingMemberId] = useState(null);
759
758
  const [cancellingInvitationId, setCancellingInvitationId] = useState(null);
760
759
  const membersData = AsyncResult.match(membersResult, {
761
760
  onInitial: () => ({ members: [], invitations: [] }),
@@ -826,13 +825,11 @@ function OrganizationMembersManager({ authClient, baseUrl, organization, current
826
825
  }
827
826
  };
828
827
  const removeMember = async (member) => {
829
- setUpdatingMemberId(member.id);
830
828
  setError(null);
831
829
  const result = await authClient.organization.removeMember({
832
830
  memberIdOrEmail: member.id,
833
831
  organizationId: organization.id,
834
832
  });
835
- setUpdatingMemberId(null);
836
833
  if (result.error) {
837
834
  setError(result.error.message ?? m.organization_member_remove_error());
838
835
  return;
@@ -58,6 +58,7 @@ declare const messages: {
58
58
  readonly user_button_admin_users_description: "Review and manage users.";
59
59
  readonly user_button_api_keys: "API keys";
60
60
  readonly user_button_aria_label: "Open user menu";
61
+ readonly user_button_impersonating: "Impersonating";
61
62
  readonly user_button_logout: "Log out";
62
63
  readonly user_button_security: "Security";
63
64
  readonly user_button_stop_impersonating: "Stop impersonating";
@@ -145,6 +146,7 @@ declare const messages: {
145
146
  readonly user_button_admin_users_description: "Consultez et gérez les utilisateurs.";
146
147
  readonly user_button_api_keys: "Clés API";
147
148
  readonly user_button_aria_label: "Ouvrir le menu utilisateur";
149
+ readonly user_button_impersonating: "Imitation";
148
150
  readonly user_button_logout: "Se déconnecter";
149
151
  readonly user_button_security: "Sécurité";
150
152
  readonly user_button_stop_impersonating: "Arrêter l'imitation";