@krak-stack/auth 0.1.37 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -20,41 +20,142 @@ export declare const AuthApi: HttpApi.HttpApi<"AuthApi", import("effect/unstable
20
20
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
21
21
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
22
22
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
23
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
23
24
  readonly createdAt: import("effect/Schema").Date;
24
25
  readonly updatedAt: import("effect/Schema").Date;
25
26
  }>;
26
- }>>>, 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").TooManyRequests>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
27
- readonly id: import("effect/Schema").NonEmptyString;
28
- }>>, 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").Struct<{
27
+ }>>>, 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").TooManyRequests>, 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<{
28
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
29
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
30
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
31
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
32
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
29
33
  readonly id: import("effect/Schema").String;
30
- readonly name: import("effect/Schema").String;
31
- readonly email: import("effect/Schema").String;
32
- readonly emailVerified: import("effect/Schema").Boolean;
33
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
34
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
35
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
36
- readonly createdAt: import("effect/Schema").Date;
37
- readonly updatedAt: import("effect/Schema").Date;
38
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
39
- readonly userId: import("effect/Schema").NonEmptyString;
40
- }>>, 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").Struct<{
41
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
42
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
43
- readonly ids: import("effect/Schema").NonEmptyString;
34
+ readonly key: import("effect/Schema").String;
35
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").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<{
36
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
37
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
38
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
39
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
44
40
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
45
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
41
+ readonly projectKey: import("effect/Schema").String;
42
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
43
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
44
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
45
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
46
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
47
+ readonly authOptions: import("effect/Schema").Struct<{
48
+ readonly emailPassword: import("effect/Schema").Boolean;
49
+ readonly emailOtp: import("effect/Schema").Boolean;
50
+ readonly google: import("effect/Schema").Boolean;
51
+ readonly signUp: import("effect/Schema").Boolean;
52
+ readonly signUpName: import("effect/Schema").Boolean;
53
+ }>;
54
+ }>>, 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<{
55
+ readonly newPassword: import("effect/Schema").NonEmptyString;
56
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
57
+ readonly ok: import("effect/Schema").Boolean;
58
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadOrganizationLogo", "POST", "/api/organizations/logo/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<{
59
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
60
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
61
+ readonly url: import("effect/Schema").String;
62
+ }>>, 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").InternalServerError>, 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<{
63
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
64
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
65
+ readonly url: import("effect/Schema").String;
66
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra").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<{
67
+ readonly key: import("effect/Schema").NonEmptyString;
68
+ 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">]>>;
69
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
70
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
71
+ readonly valid: import("effect/Schema").Boolean;
72
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
73
+ readonly message: import("effect/Schema").String;
74
+ readonly code: import("effect/Schema").String;
75
+ }>>;
76
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
46
77
  readonly id: import("effect/Schema").String;
47
- readonly name: import("effect/Schema").String;
48
- readonly email: import("effect/Schema").String;
49
- readonly emailVerified: import("effect/Schema").Boolean;
50
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
51
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
52
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
78
+ readonly configId: import("effect/Schema").String;
79
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
80
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
81
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
82
+ readonly referenceId: import("effect/Schema").String;
83
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
84
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
53
85
  readonly createdAt: import("effect/Schema").Date;
54
86
  readonly updatedAt: import("effect/Schema").Date;
87
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
88
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
55
89
  }>>;
56
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
57
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
90
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").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<{
91
+ readonly password: import("effect/Schema").NonEmptyString;
92
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
93
+ readonly ok: import("effect/Schema").Boolean;
94
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/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<{
95
+ readonly hostname: import("effect/Schema").NonEmptyString;
96
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
97
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
98
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
99
+ readonly managed: import("effect/Schema").Boolean;
100
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
101
+ readonly id: import("effect/Schema").String;
102
+ readonly hostname: import("effect/Schema").String;
103
+ readonly rootHostname: import("effect/Schema").String;
104
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
105
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
106
+ readonly hostnameId: import("effect/Schema").String;
107
+ readonly managed: import("effect/Schema").Boolean;
108
+ readonly active: import("effect/Schema").Boolean;
109
+ readonly createdAt: import("effect/Schema").Date;
110
+ readonly updatedAt: import("effect/Schema").Date;
111
+ }>>, 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").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
112
+ readonly id: import("effect/Schema").NonEmptyString;
113
+ }>>, 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<{
114
+ readonly id: import("effect/Schema").String;
115
+ readonly hostname: import("effect/Schema").String;
116
+ readonly rootHostname: import("effect/Schema").String;
117
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
118
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
119
+ readonly hostnameId: import("effect/Schema").String;
120
+ readonly managed: import("effect/Schema").Boolean;
121
+ readonly active: import("effect/Schema").Boolean;
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").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
125
+ readonly id: import("effect/Schema").NonEmptyString;
126
+ }>>, 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").Struct<{
127
+ readonly id: import("effect/Schema").String;
128
+ readonly hostname: import("effect/Schema").String;
129
+ readonly rootHostname: import("effect/Schema").String;
130
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
131
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
132
+ readonly hostnameId: import("effect/Schema").String;
133
+ readonly managed: import("effect/Schema").Boolean;
134
+ readonly active: import("effect/Schema").Boolean;
135
+ readonly createdAt: import("effect/Schema").Date;
136
+ readonly updatedAt: import("effect/Schema").Date;
137
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
138
+ readonly hostname: import("effect/Schema").NonEmptyString;
139
+ }>>, 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").Struct<{
140
+ readonly id: import("effect/Schema").String;
141
+ readonly hostname: import("effect/Schema").String;
142
+ readonly rootHostname: import("effect/Schema").String;
143
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
144
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
145
+ readonly hostnameId: import("effect/Schema").String;
146
+ readonly managed: import("effect/Schema").Boolean;
147
+ readonly active: import("effect/Schema").Boolean;
148
+ readonly createdAt: import("effect/Schema").Date;
149
+ readonly updatedAt: import("effect/Schema").Date;
150
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | 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/domains/:id/records", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
151
+ readonly id: import("effect/Schema").NonEmptyString;
152
+ }>>, 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<{
153
+ readonly required: import("effect/Schema").Boolean;
154
+ readonly status: import("effect/Schema").String;
155
+ readonly type: import("effect/Schema").String;
156
+ readonly name: import("effect/Schema").String;
157
+ readonly value: import("effect/Schema").String;
158
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
58
159
  readonly organizationId: import("effect/Schema").NonEmptyString;
59
160
  readonly userId: import("effect/Schema").NonEmptyString;
60
161
  }>>, 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").Struct<{
@@ -71,6 +172,7 @@ export declare const AuthApi: HttpApi.HttpApi<"AuthApi", import("effect/unstable
71
172
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
72
173
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
73
174
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
175
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
74
176
  readonly createdAt: import("effect/Schema").Date;
75
177
  readonly updatedAt: import("effect/Schema").Date;
76
178
  }>;
@@ -108,6 +210,7 @@ export declare const AuthApi: HttpApi.HttpApi<"AuthApi", import("effect/unstable
108
210
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
109
211
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
110
212
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
213
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
111
214
  readonly createdAt: import("effect/Schema").Date;
112
215
  readonly updatedAt: import("effect/Schema").Date;
113
216
  }>;
@@ -133,134 +236,37 @@ export declare const AuthApi: HttpApi.HttpApi<"AuthApi", import("effect/unstable
133
236
  readonly createdAt: import("effect/Schema").Date;
134
237
  }>>;
135
238
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
136
- }>>, 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").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/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<{
137
- readonly hostname: import("effect/Schema").NonEmptyString;
138
- readonly rootHostname: import("effect/Schema").NonEmptyString;
139
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
140
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
141
- readonly managed: import("effect/Schema").Boolean;
142
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
143
- readonly id: import("effect/Schema").String;
144
- readonly hostname: import("effect/Schema").String;
145
- readonly rootHostname: import("effect/Schema").String;
146
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
147
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
148
- readonly hostnameId: import("effect/Schema").String;
149
- readonly managed: import("effect/Schema").Boolean;
150
- readonly active: import("effect/Schema").Boolean;
151
- readonly createdAt: import("effect/Schema").Date;
152
- readonly updatedAt: import("effect/Schema").Date;
153
- }>>, 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").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
154
- readonly id: import("effect/Schema").NonEmptyString;
155
- }>>, 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<{
156
- readonly id: import("effect/Schema").String;
157
- readonly hostname: import("effect/Schema").String;
158
- readonly rootHostname: import("effect/Schema").String;
159
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
160
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
161
- readonly hostnameId: import("effect/Schema").String;
162
- readonly managed: import("effect/Schema").Boolean;
163
- readonly active: import("effect/Schema").Boolean;
164
- readonly createdAt: import("effect/Schema").Date;
165
- readonly updatedAt: import("effect/Schema").Date;
166
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
239
+ }>>, 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").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
167
240
  readonly id: import("effect/Schema").NonEmptyString;
168
241
  }>>, 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").Struct<{
169
242
  readonly id: import("effect/Schema").String;
170
- readonly hostname: import("effect/Schema").String;
171
- readonly rootHostname: import("effect/Schema").String;
172
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
173
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
174
- readonly hostnameId: import("effect/Schema").String;
175
- readonly managed: import("effect/Schema").Boolean;
176
- readonly active: import("effect/Schema").Boolean;
243
+ readonly name: import("effect/Schema").String;
244
+ readonly email: import("effect/Schema").String;
245
+ readonly emailVerified: import("effect/Schema").Boolean;
246
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
247
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
248
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
249
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
177
250
  readonly createdAt: import("effect/Schema").Date;
178
251
  readonly updatedAt: import("effect/Schema").Date;
179
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
180
- readonly hostname: import("effect/Schema").NonEmptyString;
252
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
253
+ readonly userId: import("effect/Schema").NonEmptyString;
181
254
  }>>, 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").Struct<{
182
- readonly id: import("effect/Schema").String;
183
- readonly hostname: import("effect/Schema").String;
184
- readonly rootHostname: import("effect/Schema").String;
185
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
186
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
187
- readonly hostnameId: import("effect/Schema").String;
188
- readonly managed: import("effect/Schema").Boolean;
189
- readonly active: import("effect/Schema").Boolean;
190
- readonly createdAt: import("effect/Schema").Date;
191
- readonly updatedAt: import("effect/Schema").Date;
192
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | 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/domains/:id/records", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
193
- readonly id: import("effect/Schema").NonEmptyString;
194
- }>>, 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<{
195
- readonly required: import("effect/Schema").Boolean;
196
- readonly status: import("effect/Schema").String;
197
- readonly type: import("effect/Schema").String;
198
- readonly name: import("effect/Schema").String;
199
- readonly value: import("effect/Schema").String;
200
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<{
201
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
202
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
203
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
204
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
205
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
206
- readonly id: import("effect/Schema").String;
207
- readonly key: import("effect/Schema").String;
208
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").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<{
209
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
210
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
211
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
255
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
256
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
257
+ readonly ids: import("effect/Schema").NonEmptyString;
212
258
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
213
- readonly projectKey: import("effect/Schema").String;
214
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
215
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
216
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
217
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
218
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
219
- readonly authOptions: import("effect/Schema").Struct<{
220
- readonly emailPassword: import("effect/Schema").Boolean;
221
- readonly emailOtp: import("effect/Schema").Boolean;
222
- readonly google: import("effect/Schema").Boolean;
223
- readonly signUp: import("effect/Schema").Boolean;
224
- readonly signUpName: import("effect/Schema").Boolean;
225
- }>;
226
- }>>, 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<{
227
- readonly newPassword: import("effect/Schema").NonEmptyString;
228
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
229
- readonly ok: import("effect/Schema").Boolean;
230
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadOrganizationLogo", "POST", "/api/organizations/logo/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<{
231
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
232
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
233
- readonly url: import("effect/Schema").String;
234
- }>>, 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").InternalServerError>, 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<{
235
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
236
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
237
- readonly url: import("effect/Schema").String;
238
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra").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<{
239
- readonly key: import("effect/Schema").NonEmptyString;
240
- 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">]>>;
241
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
242
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
243
- readonly valid: import("effect/Schema").Boolean;
244
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
245
- readonly message: import("effect/Schema").String;
246
- readonly code: import("effect/Schema").String;
247
- }>>;
248
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
259
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
249
260
  readonly id: import("effect/Schema").String;
250
- readonly configId: import("effect/Schema").String;
251
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
252
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
253
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
254
- readonly referenceId: import("effect/Schema").String;
255
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
256
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
261
+ readonly name: import("effect/Schema").String;
262
+ readonly email: import("effect/Schema").String;
263
+ readonly emailVerified: import("effect/Schema").Boolean;
264
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
265
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
266
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
267
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
257
268
  readonly createdAt: import("effect/Schema").Date;
258
269
  readonly updatedAt: import("effect/Schema").Date;
259
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
260
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
261
270
  }>>;
262
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").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<{
263
- readonly password: import("effect/Schema").NonEmptyString;
264
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
265
- readonly ok: import("effect/Schema").Boolean;
266
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").ExtraBadRequest>, never, never>, false>>;
271
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
272
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
@@ -22,6 +22,7 @@ export declare const BetterAuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpA
22
22
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
23
23
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
24
24
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
25
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
25
26
  readonly createdAt: import("effect/Schema").Date;
26
27
  readonly updatedAt: import("effect/Schema").Date;
27
28
  }>;
@@ -47,6 +48,7 @@ export declare const BetterAuthApi: HttpApi.HttpApi<"BetterAuthApi", HttpApiGrou
47
48
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
48
49
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
49
50
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
51
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
50
52
  readonly createdAt: import("effect/Schema").Date;
51
53
  readonly updatedAt: import("effect/Schema").Date;
52
54
  }>;
@@ -20,6 +20,7 @@ declare const BetterAuthApiClient_base: AtomHttpApi.AtomHttpApiClient<BetterAuth
20
20
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
21
21
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
22
22
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
23
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
23
24
  readonly createdAt: import("effect/Schema").Date;
24
25
  readonly updatedAt: import("effect/Schema").Date;
25
26
  }>;
@@ -21,6 +21,7 @@ export declare const GetSessionResponse: Schema.NullOr<Schema.Struct<{
21
21
  readonly image: Schema.NullOr<Schema.String>;
22
22
  readonly role: Schema.NullOr<Schema.String>;
23
23
  readonly banned: Schema.NullOr<Schema.Boolean>;
24
+ readonly lastLoginMethod: Schema.optional<Schema.NullOr<Schema.String>>;
24
25
  readonly createdAt: Schema.Date;
25
26
  readonly updatedAt: Schema.Date;
26
27
  }>;
@@ -35,6 +35,7 @@ export const GetSessionResponse = Schema.NullOr(Schema.Struct({
35
35
  image: null,
36
36
  role: "admin",
37
37
  banned: false,
38
+ lastLoginMethod: "email-otp",
38
39
  createdAt: new Date("2026-01-01T00:00:00.000Z"),
39
40
  updatedAt: new Date("2026-01-01T00:00:00.000Z"),
40
41
  },
@@ -20,6 +20,7 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
20
20
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
21
21
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
22
22
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
23
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
23
24
  readonly createdAt: import("effect/Schema").Date;
24
25
  readonly updatedAt: import("effect/Schema").Date;
25
26
  }>;
@@ -35,6 +36,7 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
35
36
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
36
37
  readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
37
38
  readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
39
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
38
40
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
39
41
  readonly projectKey: import("effect/Schema").String;
40
42
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -170,6 +172,7 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
170
172
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
171
173
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
172
174
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
175
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
173
176
  readonly createdAt: import("effect/Schema").Date;
174
177
  readonly updatedAt: import("effect/Schema").Date;
175
178
  }>;
@@ -207,6 +210,7 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
207
210
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
208
211
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
209
212
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
213
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
210
214
  readonly createdAt: import("effect/Schema").Date;
211
215
  readonly updatedAt: import("effect/Schema").Date;
212
216
  }>;
@@ -242,6 +246,7 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
242
246
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
243
247
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
244
248
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
249
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
245
250
  readonly createdAt: import("effect/Schema").Date;
246
251
  readonly updatedAt: import("effect/Schema").Date;
247
252
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
@@ -259,6 +264,7 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
259
264
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
260
265
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
261
266
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
267
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
262
268
  readonly createdAt: import("effect/Schema").Date;
263
269
  readonly updatedAt: import("effect/Schema").Date;
264
270
  }>>;
@@ -1,9 +1,10 @@
1
1
  import type { apiKeyClient } from "@better-auth/api-key/client";
2
- import type { emailOTPClient, genericOAuthClient, organizationClient, twoFactorClient } from "better-auth/client/plugins";
2
+ import type { emailOTPClient, genericOAuthClient, lastLoginMethodClient, organizationClient, twoFactorClient } from "better-auth/client/plugins";
3
3
  import type { createAuthClient } from "better-auth/react";
4
4
  export type AuthUiClient = ReturnType<typeof createAuthClient<{
5
5
  plugins: [
6
6
  ReturnType<typeof emailOTPClient>,
7
+ ReturnType<typeof lastLoginMethodClient>,
7
8
  ReturnType<typeof organizationClient>,
8
9
  ReturnType<typeof twoFactorClient>,
9
10
  ReturnType<typeof apiKeyClient>,