@krak-stack/auth 0.2.0 → 0.2.1

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/service.d.ts CHANGED
@@ -41,14 +41,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
41
41
  readonly userId: string;
42
42
  }) => Effect.Effect<string, import("effect/unstable/http/HttpClientError").HttpClientError | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized, never>;
43
43
  auth: {
44
- readonly adminBanUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
45
- readonly payload: {
46
- readonly userId: string;
47
- readonly banReason?: string | undefined;
48
- readonly banExpiresIn?: number | undefined;
49
- };
50
- readonly responseMode?: Mode;
51
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
44
+ readonly adminBanUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
45
+ readonly userId: import("effect/Schema").String;
46
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
47
+ readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
48
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
52
49
  readonly user: import("effect/Schema").Struct<{
53
50
  readonly id: import("effect/Schema").String;
54
51
  readonly name: import("effect/Schema").String;
@@ -64,13 +61,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
64
61
  readonly createdAt: import("effect/Schema").DateFromString;
65
62
  readonly updatedAt: import("effect/Schema").DateFromString;
66
63
  }>;
67
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
68
- readonly adminImpersonateUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
69
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
70
- readonly userId: import("effect/Schema").String;
71
- }, "Type">;
72
- readonly responseMode?: Mode;
73
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
64
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
65
+ readonly adminImpersonateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
66
+ readonly userId: import("effect/Schema").String;
67
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
74
68
  readonly session: import("effect/Schema").Struct<{
75
69
  readonly id: import("effect/Schema").String;
76
70
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -99,10 +93,8 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
99
93
  readonly createdAt: import("effect/Schema").DateFromString;
100
94
  readonly updatedAt: import("effect/Schema").DateFromString;
101
95
  }>;
102
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
103
- readonly adminStopImpersonating: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
104
- readonly responseMode?: Mode;
105
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
96
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
97
+ readonly adminStopImpersonating: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
106
98
  readonly session: import("effect/Schema").Struct<{
107
99
  readonly id: import("effect/Schema").String;
108
100
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -131,13 +123,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
131
123
  readonly createdAt: import("effect/Schema").DateFromString;
132
124
  readonly updatedAt: import("effect/Schema").DateFromString;
133
125
  }>;
134
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
135
- readonly adminUnbanUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
136
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
137
- readonly userId: import("effect/Schema").String;
138
- }, "Type">;
139
- readonly responseMode?: Mode;
140
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
126
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
127
+ readonly adminUnbanUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
128
+ readonly userId: import("effect/Schema").String;
129
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
141
130
  readonly user: import("effect/Schema").Struct<{
142
131
  readonly id: import("effect/Schema").String;
143
132
  readonly name: import("effect/Schema").String;
@@ -153,92 +142,76 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
153
142
  readonly createdAt: import("effect/Schema").DateFromString;
154
143
  readonly updatedAt: import("effect/Schema").DateFromString;
155
144
  }>;
156
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
157
- readonly apiKeyDelete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
158
- readonly payload: {
159
- readonly configId?: string | undefined;
160
- readonly keyId: string;
161
- };
162
- readonly responseMode?: Mode;
163
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
145
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
146
+ readonly apiKeyDelete: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
147
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
148
+ readonly keyId: import("effect/Schema").String;
149
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
164
150
  readonly success: import("effect/Schema").Boolean;
165
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
166
- readonly apiKeyList: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
167
- readonly query: {
168
- readonly configId?: string | undefined;
169
- readonly organizationId?: string | undefined;
170
- readonly limit?: number | undefined;
171
- readonly offset?: number | undefined;
172
- readonly sortBy?: string | undefined;
173
- readonly sortDirection?: "asc" | "desc" | undefined;
174
- };
175
- readonly responseMode?: Mode;
176
- }) => Effect.Effect<HttpApiClient.Client.Response<{
177
- readonly apiKeys: readonly {
178
- readonly id: string;
179
- readonly name: string | null;
180
- readonly start: string | null;
181
- readonly prefix: string | null;
182
- readonly userId?: string | undefined;
183
- readonly referenceId: string;
184
- readonly configId: string;
185
- readonly refillInterval: number | null;
186
- readonly refillAmount: number | null;
187
- readonly lastRefillAt: Date | null;
188
- readonly enabled: boolean;
189
- readonly rateLimitEnabled: boolean;
190
- readonly rateLimitTimeWindow: number | null;
191
- readonly rateLimitMax: number | null;
192
- readonly requestCount: number;
193
- readonly remaining: number | null;
194
- readonly lastRequest: Date | null;
195
- readonly expiresAt: Date | null;
196
- readonly createdAt: Date;
197
- readonly updatedAt: Date;
198
- readonly metadata: {
199
- readonly [x: string]: import("effect/Schema").Json;
200
- } | null;
201
- readonly permissions?: {
202
- readonly [x: string]: readonly string[];
203
- } | null | undefined;
204
- readonly referrers?: readonly string[] | null | undefined;
205
- }[];
206
- readonly total: number;
207
- readonly limit?: number | null | undefined;
208
- readonly offset?: number | null | undefined;
209
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
210
- readonly changePassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
211
- readonly payload: {
212
- readonly newPassword: string;
213
- readonly currentPassword: string;
214
- readonly revokeOtherSessions?: boolean | undefined;
215
- };
216
- readonly responseMode?: Mode;
217
- }) => Effect.Effect<HttpApiClient.Client.Response<{
218
- readonly token?: string | null | undefined;
219
- readonly user: {
220
- readonly id: string;
221
- readonly name: string;
222
- readonly email: string;
223
- readonly emailVerified: boolean;
224
- readonly image: string | null;
225
- readonly role: string | null;
226
- readonly banned: boolean | null;
227
- readonly banReason?: string | null | undefined;
228
- readonly banExpires?: Date | null | undefined;
229
- readonly twoFactorEnabled?: boolean | undefined;
230
- readonly lastLoginMethod?: string | null | undefined;
231
- readonly createdAt: Date;
232
- readonly updatedAt: Date;
233
- };
234
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
235
- readonly getSession: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
236
- readonly query: {
237
- readonly disableCookieCache?: string | undefined;
238
- readonly disableRefresh?: string | undefined;
239
- };
240
- readonly responseMode?: Mode;
241
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
151
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
152
+ readonly apiKeyList: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
153
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
154
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
155
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
156
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
157
+ readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
158
+ readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
159
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
160
+ readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
161
+ readonly id: import("effect/Schema").String;
162
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
163
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
164
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
165
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
166
+ readonly referenceId: import("effect/Schema").String;
167
+ readonly configId: import("effect/Schema").String;
168
+ readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
169
+ readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
170
+ readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
171
+ readonly enabled: import("effect/Schema").Boolean;
172
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
173
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
174
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
175
+ readonly requestCount: import("effect/Schema").Number;
176
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
177
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
178
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
179
+ readonly createdAt: import("effect/Schema").DateFromString;
180
+ readonly updatedAt: import("effect/Schema").DateFromString;
181
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
182
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
183
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
184
+ }>>;
185
+ readonly total: import("effect/Schema").Number;
186
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
187
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
188
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
189
+ readonly changePassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
190
+ readonly newPassword: import("effect/Schema").String;
191
+ readonly currentPassword: import("effect/Schema").String;
192
+ readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
193
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
194
+ readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
195
+ readonly user: import("effect/Schema").Struct<{
196
+ readonly id: import("effect/Schema").String;
197
+ readonly name: import("effect/Schema").String;
198
+ readonly email: import("effect/Schema").String;
199
+ readonly emailVerified: import("effect/Schema").Boolean;
200
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
201
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
202
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
203
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
204
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
205
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
206
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
207
+ readonly createdAt: import("effect/Schema").DateFromString;
208
+ readonly updatedAt: import("effect/Schema").DateFromString;
209
+ }>;
210
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
211
+ readonly getSession: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
212
+ readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
213
+ readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
214
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
242
215
  readonly session: import("effect/Schema").Struct<{
243
216
  readonly id: import("effect/Schema").String;
244
217
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -267,51 +240,44 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
267
240
  readonly createdAt: import("effect/Schema").DateFromString;
268
241
  readonly updatedAt: import("effect/Schema").DateFromString;
269
242
  }>;
270
- }, "Type"> | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
271
- readonly linkSocial: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
272
- readonly payload: {
273
- readonly callbackURL?: string | undefined;
274
- readonly provider: string;
275
- readonly idToken?: {
276
- readonly token: string;
277
- readonly nonce?: string | undefined;
278
- readonly accessToken?: string | undefined;
279
- readonly refreshToken?: string | undefined;
280
- readonly scopes?: readonly string[] | undefined;
281
- } | undefined;
282
- readonly requestSignUp?: boolean | undefined;
283
- readonly scopes?: readonly string[] | undefined;
284
- readonly errorCallbackURL?: string | undefined;
285
- readonly disableRedirect?: boolean | undefined;
286
- readonly additionalData?: {
287
- readonly [x: string]: import("effect/Schema").Json;
288
- } | undefined;
289
- };
290
- readonly responseMode?: Mode;
291
- }) => Effect.Effect<HttpApiClient.Client.Response<{
292
- readonly url?: string | undefined;
293
- readonly redirect: boolean;
294
- readonly token?: string | undefined;
295
- readonly user?: {
296
- readonly id: string;
297
- readonly name: string;
298
- readonly email: string;
299
- readonly emailVerified: boolean;
300
- readonly image: string | null;
301
- readonly role: string | null;
302
- readonly banned: boolean | null;
303
- readonly banReason?: string | null | undefined;
304
- readonly banExpires?: Date | null | undefined;
305
- readonly twoFactorEnabled?: boolean | undefined;
306
- readonly lastLoginMethod?: string | null | undefined;
307
- readonly createdAt: Date;
308
- readonly updatedAt: Date;
309
- } | undefined;
310
- readonly status?: boolean | undefined;
311
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
312
- readonly listAccounts: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
313
- readonly responseMode?: Mode;
314
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
243
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
244
+ readonly linkSocial: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
245
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
246
+ readonly provider: import("effect/Schema").String;
247
+ readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
248
+ readonly token: import("effect/Schema").String;
249
+ readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
250
+ readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
251
+ readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
252
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
253
+ }>>;
254
+ readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
255
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
256
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
257
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
258
+ readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
259
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
260
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
261
+ readonly redirect: import("effect/Schema").Boolean;
262
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
263
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
264
+ readonly id: import("effect/Schema").String;
265
+ readonly name: import("effect/Schema").String;
266
+ readonly email: import("effect/Schema").String;
267
+ readonly emailVerified: import("effect/Schema").Boolean;
268
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
269
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
270
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
271
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
272
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
273
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
274
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
275
+ readonly createdAt: import("effect/Schema").DateFromString;
276
+ readonly updatedAt: import("effect/Schema").DateFromString;
277
+ }>>;
278
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
279
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
280
+ readonly listAccounts: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
315
281
  readonly id: import("effect/Schema").String;
316
282
  readonly providerId: import("effect/Schema").String;
317
283
  readonly createdAt: import("effect/Schema").DateFromString;
@@ -319,39 +285,30 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
319
285
  readonly accountId: import("effect/Schema").String;
320
286
  readonly userId: import("effect/Schema").String;
321
287
  readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
322
- }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
323
- readonly oauthConsent: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
324
- readonly payload: {
325
- readonly accept: boolean;
326
- readonly scope?: string | undefined;
327
- readonly oauth_query?: string | undefined;
328
- };
329
- readonly responseMode?: Mode;
330
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
288
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
289
+ readonly oauthConsent: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
290
+ readonly accept: import("effect/Schema").Boolean;
291
+ readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
292
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
293
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
331
294
  readonly redirect: import("effect/Schema").Boolean;
332
295
  readonly url: import("effect/Schema").String;
333
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
334
- readonly oauthPublicClient: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
335
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
336
- readonly client_id: import("effect/Schema").String;
337
- }, "Type">;
338
- readonly responseMode?: Mode;
339
- }) => Effect.Effect<HttpApiClient.Client.Response<{
340
- readonly client_id: string;
341
- readonly client_name?: string | undefined;
342
- readonly client_uri?: string | undefined;
343
- readonly logo_uri?: string | undefined;
344
- readonly contacts?: readonly string[] | undefined;
345
- readonly tos_uri?: string | undefined;
346
- readonly policy_uri?: string | undefined;
347
- readonly redirect_uris: readonly string[];
348
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
349
- readonly organizationAcceptInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
350
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
351
- readonly invitationId: import("effect/Schema").String;
352
- }, "Type">;
353
- readonly responseMode?: Mode;
354
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
296
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
297
+ readonly oauthPublicClient: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
298
+ readonly client_id: import("effect/Schema").String;
299
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
300
+ readonly client_id: import("effect/Schema").String;
301
+ readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
302
+ readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
303
+ readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
304
+ readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
305
+ readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
306
+ readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
307
+ readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
308
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
309
+ readonly organizationAcceptInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
310
+ readonly invitationId: import("effect/Schema").String;
311
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
355
312
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
356
313
  readonly id: import("effect/Schema").String;
357
314
  readonly email: import("effect/Schema").String;
@@ -371,67 +328,52 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
371
328
  readonly role: import("effect/Schema").String;
372
329
  readonly createdAt: import("effect/Schema").DateFromString;
373
330
  }>>;
374
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
375
- readonly organizationCancelInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
376
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
377
- readonly invitationId: import("effect/Schema").String;
378
- }, "Type">;
379
- readonly responseMode?: Mode;
380
- }) => Effect.Effect<HttpApiClient.Client.Response<{
381
- readonly id: string;
382
- readonly email: string;
383
- readonly role: string;
384
- readonly organizationId: string;
385
- readonly organizationName?: string | null | undefined;
386
- readonly inviterId: string;
387
- readonly teamId?: string | null | undefined;
388
- readonly status: string;
389
- readonly expiresAt: Date;
390
- readonly createdAt?: Date | undefined;
391
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
392
- readonly organizationCreate: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
393
- readonly payload: {
394
- readonly name: string;
395
- readonly slug: string;
396
- readonly logo?: string | null | undefined;
397
- readonly metadata?: {
398
- readonly [x: string]: import("effect/Schema").Json;
399
- } | undefined;
400
- readonly parentId?: string | null | undefined;
401
- readonly keepCurrentActiveOrganization?: boolean | undefined;
402
- };
403
- readonly responseMode?: Mode;
404
- }) => Effect.Effect<HttpApiClient.Client.Response<{
405
- readonly id: string;
406
- readonly name: string;
407
- readonly slug: string;
408
- readonly logo?: string | null | undefined;
409
- readonly metadata?: string | {
410
- readonly [x: string]: import("effect/Schema").Json;
411
- } | null | undefined;
412
- readonly userId?: string | null | undefined;
413
- readonly parentId?: string | null | undefined;
414
- readonly createdAt: Date;
415
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
416
- readonly organizationGetFull: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
417
- readonly query: {
418
- readonly organizationId?: string | undefined;
419
- readonly organizationSlug?: string | undefined;
420
- readonly membersLimit?: number | undefined;
421
- };
422
- readonly responseMode?: Mode;
423
- }) => Effect.Effect<HttpApiClient.Client.Response<{
424
- readonly id: string;
425
- readonly name: string;
426
- readonly slug: string;
427
- readonly logo?: string | null | undefined;
428
- readonly metadata?: string | {
429
- readonly [x: string]: import("effect/Schema").Json;
430
- } | null | undefined;
431
- readonly userId?: string | null | undefined;
432
- readonly parentId?: string | null | undefined;
433
- readonly createdAt: Date;
434
- readonly members: readonly import("effect/Schema").Struct.ReadonlySide<{
331
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
332
+ readonly organizationCancelInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
333
+ readonly invitationId: import("effect/Schema").String;
334
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
335
+ readonly id: import("effect/Schema").String;
336
+ readonly email: import("effect/Schema").String;
337
+ readonly role: import("effect/Schema").String;
338
+ readonly organizationId: import("effect/Schema").String;
339
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
340
+ readonly inviterId: import("effect/Schema").String;
341
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
342
+ readonly status: import("effect/Schema").String;
343
+ readonly expiresAt: import("effect/Schema").DateFromString;
344
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
345
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
346
+ readonly organizationCreate: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
347
+ readonly name: import("effect/Schema").NonEmptyString;
348
+ readonly slug: import("effect/Schema").NonEmptyString;
349
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
350
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
351
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
352
+ readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
353
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
354
+ readonly id: import("effect/Schema").String;
355
+ readonly name: import("effect/Schema").String;
356
+ readonly slug: import("effect/Schema").String;
357
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
358
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
359
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
360
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
361
+ readonly createdAt: import("effect/Schema").DateFromString;
362
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
363
+ readonly organizationGetFull: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
364
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
365
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
366
+ readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
367
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
368
+ readonly id: import("effect/Schema").String;
369
+ readonly name: import("effect/Schema").String;
370
+ readonly slug: import("effect/Schema").String;
371
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
372
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
373
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
374
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
375
+ readonly createdAt: import("effect/Schema").DateFromString;
376
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
435
377
  readonly id: import("effect/Schema").String;
436
378
  readonly organizationId: import("effect/Schema").String;
437
379
  readonly userId: import("effect/Schema").String;
@@ -452,48 +394,42 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
452
394
  readonly createdAt: import("effect/Schema").DateFromString;
453
395
  readonly updatedAt: import("effect/Schema").DateFromString;
454
396
  }>;
455
- }, "Type">[];
456
- readonly invitations: readonly {
457
- readonly id: string;
458
- readonly email: string;
459
- readonly role: string;
460
- readonly organizationId: string;
461
- readonly organizationName?: string | null | undefined;
462
- readonly inviterId: string;
463
- readonly teamId?: string | null | undefined;
464
- readonly status: string;
465
- readonly expiresAt: Date;
466
- readonly createdAt?: Date | undefined;
467
- }[];
468
- } | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
469
- readonly organizationGetInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
470
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
397
+ }>>;
398
+ readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
471
399
  readonly id: import("effect/Schema").String;
472
- }, "Type">;
473
- readonly responseMode?: Mode;
474
- }) => Effect.Effect<HttpApiClient.Client.Response<{
475
- readonly id: string;
476
- readonly email: string;
477
- readonly role: string;
478
- readonly organizationId: string;
479
- readonly inviterId: string;
480
- readonly teamId?: string | null | undefined;
481
- readonly status: string;
482
- readonly expiresAt: Date;
483
- readonly createdAt?: Date | undefined;
484
- readonly organizationName: string;
485
- readonly organizationSlug: string;
486
- readonly inviterEmail: string;
487
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
488
- readonly organizationImpersonateUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
489
- readonly payload: {
490
- readonly organizationId: string;
491
- readonly actorUserId: string;
492
- readonly targetUserId: string;
493
- readonly expiresInSeconds?: number | undefined;
494
- };
495
- readonly responseMode?: Mode;
496
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
400
+ readonly email: import("effect/Schema").String;
401
+ readonly role: import("effect/Schema").String;
402
+ readonly organizationId: import("effect/Schema").String;
403
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
404
+ readonly inviterId: import("effect/Schema").String;
405
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
406
+ readonly status: import("effect/Schema").String;
407
+ readonly expiresAt: import("effect/Schema").DateFromString;
408
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
409
+ }>>;
410
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
411
+ readonly organizationGetInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
412
+ readonly id: import("effect/Schema").String;
413
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
414
+ readonly id: import("effect/Schema").String;
415
+ readonly email: import("effect/Schema").String;
416
+ readonly role: import("effect/Schema").String;
417
+ readonly organizationId: import("effect/Schema").String;
418
+ readonly inviterId: import("effect/Schema").String;
419
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
420
+ readonly status: import("effect/Schema").String;
421
+ readonly expiresAt: import("effect/Schema").DateFromString;
422
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
423
+ readonly organizationName: import("effect/Schema").String;
424
+ readonly organizationSlug: import("effect/Schema").String;
425
+ readonly inviterEmail: import("effect/Schema").String;
426
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
427
+ readonly organizationImpersonateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
428
+ readonly organizationId: import("effect/Schema").NonEmptyString;
429
+ readonly actorUserId: import("effect/Schema").NonEmptyString;
430
+ readonly targetUserId: import("effect/Schema").NonEmptyString;
431
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
432
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
497
433
  readonly session: import("effect/Schema").Struct<{
498
434
  readonly id: import("effect/Schema").String;
499
435
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -522,85 +458,69 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
522
458
  readonly createdAt: import("effect/Schema").DateFromString;
523
459
  readonly updatedAt: import("effect/Schema").DateFromString;
524
460
  }>;
525
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
526
- readonly organizationInviteMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
527
- readonly payload: {
528
- readonly email: string;
529
- readonly role: string | readonly string[];
530
- readonly organizationId?: string | undefined;
531
- readonly resend?: boolean | undefined;
532
- readonly teamId?: string | readonly string[] | undefined;
533
- };
534
- readonly responseMode?: Mode;
535
- }) => Effect.Effect<HttpApiClient.Client.Response<{
536
- readonly id: string;
537
- readonly email: string;
538
- readonly role: string;
539
- readonly organizationId: string;
540
- readonly organizationName?: string | null | undefined;
541
- readonly inviterId: string;
542
- readonly teamId?: string | null | undefined;
543
- readonly status: string;
544
- readonly expiresAt: Date;
545
- readonly createdAt?: Date | undefined;
546
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
547
- readonly organizationLeave: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
548
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
549
- readonly organizationId: import("effect/Schema").String;
550
- }, "Type">;
551
- readonly responseMode?: Mode;
552
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
461
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
462
+ readonly organizationInviteMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
463
+ readonly email: import("effect/Schema").String;
464
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
465
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
466
+ readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
467
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
468
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
469
+ readonly id: import("effect/Schema").String;
470
+ readonly email: import("effect/Schema").String;
471
+ readonly role: import("effect/Schema").String;
472
+ readonly organizationId: import("effect/Schema").String;
473
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
474
+ readonly inviterId: import("effect/Schema").String;
475
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
476
+ readonly status: import("effect/Schema").String;
477
+ readonly expiresAt: import("effect/Schema").DateFromString;
478
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
479
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
480
+ readonly organizationLeave: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
481
+ readonly organizationId: import("effect/Schema").String;
482
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
553
483
  readonly id: import("effect/Schema").String;
554
484
  readonly organizationId: import("effect/Schema").String;
555
485
  readonly userId: import("effect/Schema").String;
556
486
  readonly role: import("effect/Schema").String;
557
487
  readonly createdAt: import("effect/Schema").DateFromString;
558
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
559
- readonly organizationList: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
560
- readonly responseMode?: Mode;
561
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
562
- readonly id: string;
563
- readonly name: string;
564
- readonly slug: string;
565
- readonly logo?: string | null | undefined;
566
- readonly metadata?: string | {
567
- readonly [x: string]: import("effect/Schema").Json;
568
- } | null | undefined;
569
- readonly userId?: string | null | undefined;
570
- readonly parentId?: string | null | undefined;
571
- readonly createdAt: Date;
572
- }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
573
- readonly organizationListInvitations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
574
- readonly query: {
575
- readonly organizationId?: string | undefined;
576
- };
577
- readonly responseMode?: Mode;
578
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
579
- readonly id: string;
580
- readonly email: string;
581
- readonly role: string;
582
- readonly organizationId: string;
583
- readonly organizationName?: string | null | undefined;
584
- readonly inviterId: string;
585
- readonly teamId?: string | null | undefined;
586
- readonly status: string;
587
- readonly expiresAt: Date;
588
- readonly createdAt?: Date | undefined;
589
- }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
590
- readonly organizationListMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
591
- readonly query: {
592
- readonly limit?: number | undefined;
593
- readonly offset?: number | undefined;
594
- readonly sortBy?: string | undefined;
595
- readonly sortDirection?: "asc" | "desc" | undefined;
596
- readonly filterField?: string | undefined;
597
- readonly filterValue?: string | undefined;
598
- readonly filterOperator?: string | undefined;
599
- readonly organizationId?: string | undefined;
600
- readonly organizationSlug?: string | undefined;
601
- };
602
- readonly responseMode?: Mode;
603
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
488
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
489
+ readonly organizationList: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
490
+ readonly id: import("effect/Schema").String;
491
+ readonly name: import("effect/Schema").String;
492
+ readonly slug: import("effect/Schema").String;
493
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
494
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
495
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
496
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
497
+ readonly createdAt: import("effect/Schema").DateFromString;
498
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
499
+ readonly organizationListInvitations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
500
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
501
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
502
+ readonly id: import("effect/Schema").String;
503
+ readonly email: import("effect/Schema").String;
504
+ readonly role: import("effect/Schema").String;
505
+ readonly organizationId: import("effect/Schema").String;
506
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
507
+ readonly inviterId: import("effect/Schema").String;
508
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
509
+ readonly status: import("effect/Schema").String;
510
+ readonly expiresAt: import("effect/Schema").DateFromString;
511
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
512
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
513
+ readonly organizationListMembers: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
514
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
515
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
516
+ readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
517
+ readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
518
+ readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
519
+ readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
520
+ readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
521
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
522
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
523
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
604
524
  readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
605
525
  readonly id: import("effect/Schema").String;
606
526
  readonly organizationId: import("effect/Schema").String;
@@ -624,28 +544,22 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
624
544
  }>;
625
545
  }>>;
626
546
  readonly total: import("effect/Schema").Number;
627
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
628
- readonly organizationListUserInvitations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
629
- readonly query: import("effect/Schema").Struct.ReadonlySide<{}, "Type">;
630
- readonly responseMode?: Mode;
631
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
632
- readonly id: string;
633
- readonly email: string;
634
- readonly role: string;
635
- readonly organizationId: string;
636
- readonly organizationName?: string | null | undefined;
637
- readonly inviterId: string;
638
- readonly teamId?: string | null | undefined;
639
- readonly status: string;
640
- readonly expiresAt: Date;
641
- readonly createdAt?: Date | undefined;
642
- }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
643
- readonly organizationRejectInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
644
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
645
- readonly invitationId: import("effect/Schema").String;
646
- }, "Type">;
647
- readonly responseMode?: Mode;
648
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
547
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
548
+ readonly organizationListUserInvitations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
549
+ readonly id: import("effect/Schema").String;
550
+ readonly email: import("effect/Schema").String;
551
+ readonly role: import("effect/Schema").String;
552
+ readonly organizationId: import("effect/Schema").String;
553
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
554
+ readonly inviterId: import("effect/Schema").String;
555
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
556
+ readonly status: import("effect/Schema").String;
557
+ readonly expiresAt: import("effect/Schema").DateFromString;
558
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
559
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
560
+ readonly organizationRejectInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
561
+ readonly invitationId: import("effect/Schema").String;
562
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
649
563
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
650
564
  readonly id: import("effect/Schema").String;
651
565
  readonly email: import("effect/Schema").String;
@@ -665,14 +579,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
665
579
  readonly role: import("effect/Schema").String;
666
580
  readonly createdAt: import("effect/Schema").DateFromString;
667
581
  }>>;
668
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
669
- readonly organizationRemoveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
670
- readonly payload: {
671
- readonly memberIdOrEmail: string;
672
- readonly organizationId?: string | undefined;
673
- };
674
- readonly responseMode?: Mode;
675
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
582
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
583
+ readonly organizationRemoveMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
584
+ readonly memberIdOrEmail: import("effect/Schema").String;
585
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
586
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
676
587
  readonly member: import("effect/Schema").Struct<{
677
588
  readonly id: import("effect/Schema").String;
678
589
  readonly organizationId: import("effect/Schema").String;
@@ -680,335 +591,271 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
680
591
  readonly role: import("effect/Schema").String;
681
592
  readonly createdAt: import("effect/Schema").DateFromString;
682
593
  }>;
683
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
684
- readonly organizationSetActive: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
685
- readonly payload: {
686
- readonly organizationId?: string | null | undefined;
687
- readonly organizationSlug?: string | undefined;
688
- };
689
- readonly responseMode?: Mode;
690
- }) => Effect.Effect<HttpApiClient.Client.Response<{
691
- readonly id: string;
692
- readonly name: string;
693
- readonly slug: string;
694
- readonly logo?: string | null | undefined;
695
- readonly metadata?: string | {
696
- readonly [x: string]: import("effect/Schema").Json;
697
- } | null | undefined;
698
- readonly userId?: string | null | undefined;
699
- readonly parentId?: string | null | undefined;
700
- readonly createdAt: Date;
701
- } | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
702
- readonly organizationUpdate: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
703
- readonly payload: {
704
- readonly organizationId?: string | undefined;
705
- readonly data: {
706
- readonly name?: string | undefined;
707
- readonly slug?: string | undefined;
708
- readonly logo?: string | null | undefined;
709
- readonly metadata?: {
710
- readonly [x: string]: import("effect/Schema").Json;
711
- } | undefined;
712
- readonly parentId?: string | null | undefined;
713
- };
714
- };
715
- readonly responseMode?: Mode;
716
- }) => Effect.Effect<HttpApiClient.Client.Response<{
717
- readonly id: string;
718
- readonly name: string;
719
- readonly slug: string;
720
- readonly logo?: string | null | undefined;
721
- readonly metadata?: string | {
722
- readonly [x: string]: import("effect/Schema").Json;
723
- } | null | undefined;
724
- readonly userId?: string | null | undefined;
725
- readonly parentId?: string | null | undefined;
726
- readonly createdAt: Date;
727
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
728
- readonly organizationUpdateMemberRole: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
729
- readonly payload: {
730
- readonly role: string | readonly string[];
731
- readonly memberId: string;
732
- readonly organizationId?: string | undefined;
733
- };
734
- readonly responseMode?: Mode;
735
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
594
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
595
+ readonly organizationSetActive: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
596
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
597
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
598
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
599
+ readonly id: import("effect/Schema").String;
600
+ readonly name: import("effect/Schema").String;
601
+ readonly slug: import("effect/Schema").String;
602
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
603
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
604
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
605
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
606
+ readonly createdAt: import("effect/Schema").DateFromString;
607
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
608
+ readonly organizationUpdate: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
609
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
610
+ readonly data: import("effect/Schema").Struct<{
611
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
612
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
613
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
614
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
615
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
616
+ }>;
617
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
618
+ readonly id: import("effect/Schema").String;
619
+ readonly name: import("effect/Schema").String;
620
+ readonly slug: import("effect/Schema").String;
621
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
622
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
623
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
624
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
625
+ readonly createdAt: import("effect/Schema").DateFromString;
626
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
627
+ readonly organizationUpdateMemberRole: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
628
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
629
+ readonly memberId: import("effect/Schema").String;
630
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
631
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
736
632
  readonly id: import("effect/Schema").String;
737
633
  readonly organizationId: import("effect/Schema").String;
738
634
  readonly userId: import("effect/Schema").String;
739
635
  readonly role: import("effect/Schema").String;
740
636
  readonly createdAt: import("effect/Schema").DateFromString;
741
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
742
- readonly requestPasswordReset: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
743
- readonly payload: {
744
- readonly email: string;
745
- readonly redirectTo?: string | undefined;
746
- };
747
- readonly responseMode?: Mode;
748
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
637
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
638
+ readonly requestPasswordReset: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
639
+ readonly email: import("effect/Schema").String;
640
+ readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
641
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
749
642
  readonly status: import("effect/Schema").Boolean;
750
643
  readonly message: import("effect/Schema").String;
751
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
752
- readonly resetPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
753
- readonly payload: {
754
- readonly newPassword: string;
755
- readonly token?: string | undefined;
756
- };
757
- readonly responseMode?: Mode;
758
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
644
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
645
+ readonly resetPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
646
+ readonly newPassword: import("effect/Schema").String;
647
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
648
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
759
649
  readonly status: import("effect/Schema").Boolean;
760
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
761
- readonly sendVerificationOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
762
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
763
- readonly email: import("effect/Schema").String;
764
- readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
765
- }, "Type">;
766
- readonly responseMode?: Mode;
767
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
650
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
651
+ readonly sendVerificationOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
652
+ readonly email: import("effect/Schema").String;
653
+ readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
654
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
768
655
  readonly success: import("effect/Schema").Boolean;
769
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
770
- readonly signInEmail: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
771
- readonly payload: {
772
- readonly email: string;
773
- readonly password: string;
774
- readonly callbackURL?: string | undefined;
775
- readonly rememberMe?: boolean | undefined;
776
- readonly oauth_query?: string | undefined;
777
- };
778
- readonly responseMode?: Mode;
779
- }) => Effect.Effect<HttpApiClient.Client.Response<{
780
- readonly redirect: boolean;
781
- readonly token: string;
782
- readonly url?: string | null | undefined;
783
- readonly user: {
784
- readonly id: string;
785
- readonly name: string;
786
- readonly email: string;
787
- readonly emailVerified: boolean;
788
- readonly image: string | null;
789
- readonly role: string | null;
790
- readonly banned: boolean | null;
791
- readonly banReason?: string | null | undefined;
792
- readonly banExpires?: Date | null | undefined;
793
- readonly twoFactorEnabled?: boolean | undefined;
794
- readonly lastLoginMethod?: string | null | undefined;
795
- readonly createdAt: Date;
796
- readonly updatedAt: Date;
797
- };
798
- } | {
799
- readonly twoFactorRedirect: true;
800
- readonly twoFactorMethods: readonly string[];
801
- readonly url?: string | null | undefined;
802
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
803
- readonly signInEmailOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
804
- readonly payload: {
805
- readonly email: string;
806
- readonly otp: string;
807
- readonly name?: string | undefined;
808
- readonly image?: string | undefined;
809
- };
810
- readonly responseMode?: Mode;
811
- }) => Effect.Effect<HttpApiClient.Client.Response<{
812
- readonly token?: string | undefined;
813
- readonly user: {
814
- readonly id: string;
815
- readonly name: string;
816
- readonly email: string;
817
- readonly emailVerified: boolean;
818
- readonly image: string | null;
819
- readonly role: string | null;
820
- readonly banned: boolean | null;
821
- readonly banReason?: string | null | undefined;
822
- readonly banExpires?: Date | null | undefined;
823
- readonly twoFactorEnabled?: boolean | undefined;
824
- readonly lastLoginMethod?: string | null | undefined;
825
- readonly createdAt: Date;
826
- readonly updatedAt: Date;
827
- };
828
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
829
- readonly signInSocial: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
830
- readonly payload: {
831
- readonly callbackURL?: string | undefined;
832
- readonly newUserCallbackURL?: string | undefined;
833
- readonly errorCallbackURL?: string | undefined;
834
- readonly provider: string;
835
- readonly disableRedirect?: boolean | undefined;
836
- readonly idToken?: {
837
- readonly token: string;
838
- readonly nonce?: string | undefined;
839
- readonly accessToken?: string | undefined;
840
- readonly refreshToken?: string | undefined;
841
- readonly expiresAt?: number | undefined;
842
- readonly user?: {
843
- readonly name?: {
844
- readonly firstName?: string | undefined;
845
- readonly lastName?: string | undefined;
846
- } | undefined;
847
- readonly email?: string | undefined;
848
- } | undefined;
849
- } | undefined;
850
- readonly scopes?: readonly string[] | undefined;
851
- readonly requestSignUp?: boolean | undefined;
852
- readonly loginHint?: string | undefined;
853
- readonly additionalData?: {
854
- readonly [x: string]: import("effect/Schema").Json;
855
- } | undefined;
856
- readonly oauth_query?: string | undefined;
857
- };
858
- readonly responseMode?: Mode;
859
- }) => Effect.Effect<HttpApiClient.Client.Response<{
860
- readonly url?: string | undefined;
861
- readonly redirect: boolean;
862
- readonly token?: string | undefined;
863
- readonly user?: {
864
- readonly id: string;
865
- readonly name: string;
866
- readonly email: string;
867
- readonly emailVerified: boolean;
868
- readonly image: string | null;
869
- readonly role: string | null;
870
- readonly banned: boolean | null;
871
- readonly banReason?: string | null | undefined;
872
- readonly banExpires?: Date | null | undefined;
873
- readonly twoFactorEnabled?: boolean | undefined;
874
- readonly lastLoginMethod?: string | null | undefined;
875
- readonly createdAt: Date;
876
- readonly updatedAt: Date;
877
- } | undefined;
878
- readonly status?: boolean | undefined;
879
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
880
- readonly signOut: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
881
- readonly responseMode?: Mode;
882
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
656
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
657
+ readonly signInEmail: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
658
+ readonly email: import("effect/Schema").String;
659
+ readonly password: import("effect/Schema").String;
660
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
661
+ readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
662
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
663
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
664
+ readonly redirect: import("effect/Schema").Boolean;
665
+ readonly token: import("effect/Schema").String;
666
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
667
+ readonly user: import("effect/Schema").Struct<{
668
+ readonly id: import("effect/Schema").String;
669
+ readonly name: import("effect/Schema").String;
670
+ readonly email: import("effect/Schema").String;
671
+ readonly emailVerified: import("effect/Schema").Boolean;
672
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
673
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
674
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
675
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
676
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
677
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
678
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
679
+ readonly createdAt: import("effect/Schema").DateFromString;
680
+ readonly updatedAt: import("effect/Schema").DateFromString;
681
+ }>;
682
+ }>, import("effect/Schema").Struct<{
683
+ readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
684
+ readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
685
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
686
+ }>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
687
+ readonly signInEmailOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
688
+ readonly email: import("effect/Schema").String;
689
+ readonly otp: import("effect/Schema").String;
690
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
691
+ readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
692
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
693
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
694
+ readonly user: import("effect/Schema").Struct<{
695
+ readonly id: import("effect/Schema").String;
696
+ readonly name: import("effect/Schema").String;
697
+ readonly email: import("effect/Schema").String;
698
+ readonly emailVerified: import("effect/Schema").Boolean;
699
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
700
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
701
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
702
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
703
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
704
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
705
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
706
+ readonly createdAt: import("effect/Schema").DateFromString;
707
+ readonly updatedAt: import("effect/Schema").DateFromString;
708
+ }>;
709
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
710
+ readonly signInSocial: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
711
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
712
+ readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
713
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
714
+ readonly provider: import("effect/Schema").String;
715
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
716
+ readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
717
+ readonly token: import("effect/Schema").String;
718
+ readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
719
+ readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
720
+ readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
721
+ readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
722
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
723
+ readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
724
+ readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
725
+ readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
726
+ }>>;
727
+ readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
728
+ }>>;
729
+ }>>;
730
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
731
+ readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
732
+ readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
733
+ readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
734
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
735
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
736
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
737
+ readonly redirect: import("effect/Schema").Boolean;
738
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
739
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
740
+ readonly id: import("effect/Schema").String;
741
+ readonly name: import("effect/Schema").String;
742
+ readonly email: import("effect/Schema").String;
743
+ readonly emailVerified: import("effect/Schema").Boolean;
744
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
745
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
746
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
747
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
748
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
749
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
750
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
751
+ readonly createdAt: import("effect/Schema").DateFromString;
752
+ readonly updatedAt: import("effect/Schema").DateFromString;
753
+ }>>;
754
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
755
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
756
+ readonly signOut: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
883
757
  readonly success: import("effect/Schema").Boolean;
884
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
885
- readonly twoFactorDisable: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
886
- readonly payload: {
887
- readonly password?: string | undefined;
888
- };
889
- readonly responseMode?: Mode;
890
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
758
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
759
+ readonly twoFactorDisable: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
760
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
761
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
891
762
  readonly status: import("effect/Schema").Boolean;
892
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
893
- readonly twoFactorEnable: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
894
- readonly payload: {
895
- readonly password?: string | undefined;
896
- readonly issuer?: string | undefined;
897
- };
898
- readonly responseMode?: Mode;
899
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
763
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
764
+ readonly twoFactorEnable: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
765
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
766
+ readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
767
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
900
768
  readonly totpURI: import("effect/Schema").String;
901
769
  readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
902
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
903
- readonly twoFactorSendOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
904
- readonly payload: {
905
- readonly trustDevice?: boolean | undefined;
906
- };
907
- readonly responseMode?: Mode;
908
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
770
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
771
+ readonly twoFactorSendOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
772
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
773
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
909
774
  readonly status: import("effect/Schema").Boolean;
910
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
911
- readonly twoFactorVerifyBackupCode: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
912
- readonly payload: {
913
- readonly code: string;
914
- readonly disableSession?: boolean | undefined;
915
- readonly trustDevice?: boolean | undefined;
916
- readonly oauth_query?: string | undefined;
917
- };
918
- readonly responseMode?: Mode;
919
- }) => Effect.Effect<HttpApiClient.Client.Response<{
920
- readonly token?: string | undefined;
921
- readonly user: {
922
- readonly id: string;
923
- readonly name: string;
924
- readonly email: string;
925
- readonly emailVerified: boolean;
926
- readonly image: string | null;
927
- readonly role: string | null;
928
- readonly banned: boolean | null;
929
- readonly banReason?: string | null | undefined;
930
- readonly banExpires?: Date | null | undefined;
931
- readonly twoFactorEnabled?: boolean | undefined;
932
- readonly lastLoginMethod?: string | null | undefined;
933
- readonly createdAt: Date;
934
- readonly updatedAt: Date;
935
- };
936
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
937
- readonly twoFactorVerifyOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
938
- readonly payload: {
939
- readonly code: string;
940
- readonly trustDevice?: boolean | undefined;
941
- readonly oauth_query?: string | undefined;
942
- };
943
- readonly responseMode?: Mode;
944
- }) => Effect.Effect<HttpApiClient.Client.Response<{
945
- readonly token?: string | undefined;
946
- readonly user: {
947
- readonly id: string;
948
- readonly name: string;
949
- readonly email: string;
950
- readonly emailVerified: boolean;
951
- readonly image: string | null;
952
- readonly role: string | null;
953
- readonly banned: boolean | null;
954
- readonly banReason?: string | null | undefined;
955
- readonly banExpires?: Date | null | undefined;
956
- readonly twoFactorEnabled?: boolean | undefined;
957
- readonly lastLoginMethod?: string | null | undefined;
958
- readonly createdAt: Date;
959
- readonly updatedAt: Date;
960
- };
961
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
962
- readonly twoFactorVerifyTotp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
963
- readonly payload: {
964
- readonly code: string;
965
- readonly trustDevice?: boolean | undefined;
966
- readonly oauth_query?: string | undefined;
967
- };
968
- readonly responseMode?: Mode;
969
- }) => Effect.Effect<HttpApiClient.Client.Response<{
970
- readonly token?: string | undefined;
971
- readonly user: {
972
- readonly id: string;
973
- readonly name: string;
974
- readonly email: string;
975
- readonly emailVerified: boolean;
976
- readonly image: string | null;
977
- readonly role: string | null;
978
- readonly banned: boolean | null;
979
- readonly banReason?: string | null | undefined;
980
- readonly banExpires?: Date | null | undefined;
981
- readonly twoFactorEnabled?: boolean | undefined;
982
- readonly lastLoginMethod?: string | null | undefined;
983
- readonly createdAt: Date;
984
- readonly updatedAt: Date;
985
- };
986
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
987
- readonly unlinkAccount: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
988
- readonly payload: {
989
- readonly providerId: string;
990
- readonly accountId?: string | undefined;
991
- };
992
- readonly responseMode?: Mode;
993
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
775
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
776
+ readonly twoFactorVerifyBackupCode: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
777
+ readonly code: import("effect/Schema").String;
778
+ readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
779
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
780
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
781
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
782
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
783
+ readonly user: import("effect/Schema").Struct<{
784
+ readonly id: import("effect/Schema").String;
785
+ readonly name: import("effect/Schema").String;
786
+ readonly email: import("effect/Schema").String;
787
+ readonly emailVerified: import("effect/Schema").Boolean;
788
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
789
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
790
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
791
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
792
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
793
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
794
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
795
+ readonly createdAt: import("effect/Schema").DateFromString;
796
+ readonly updatedAt: import("effect/Schema").DateFromString;
797
+ }>;
798
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
799
+ readonly twoFactorVerifyOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
800
+ readonly code: import("effect/Schema").String;
801
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
802
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
803
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
804
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
805
+ readonly user: import("effect/Schema").Struct<{
806
+ readonly id: import("effect/Schema").String;
807
+ readonly name: import("effect/Schema").String;
808
+ readonly email: import("effect/Schema").String;
809
+ readonly emailVerified: import("effect/Schema").Boolean;
810
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
811
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
812
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
813
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
814
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
815
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
816
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
817
+ readonly createdAt: import("effect/Schema").DateFromString;
818
+ readonly updatedAt: import("effect/Schema").DateFromString;
819
+ }>;
820
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
821
+ readonly twoFactorVerifyTotp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
822
+ readonly code: import("effect/Schema").String;
823
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
824
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
825
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
826
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
827
+ readonly user: import("effect/Schema").Struct<{
828
+ readonly id: import("effect/Schema").String;
829
+ readonly name: import("effect/Schema").String;
830
+ readonly email: import("effect/Schema").String;
831
+ readonly emailVerified: import("effect/Schema").Boolean;
832
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
833
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
834
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
835
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
836
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
837
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
838
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
839
+ readonly createdAt: import("effect/Schema").DateFromString;
840
+ readonly updatedAt: import("effect/Schema").DateFromString;
841
+ }>;
842
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
843
+ readonly unlinkAccount: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
844
+ readonly providerId: import("effect/Schema").String;
845
+ readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
846
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
994
847
  readonly status: import("effect/Schema").Boolean;
995
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
996
- readonly updateUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
997
- readonly payload: {
998
- readonly name?: string | undefined;
999
- readonly image?: string | null | undefined;
1000
- };
1001
- readonly responseMode?: Mode;
1002
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
848
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
849
+ readonly updateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
850
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
851
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
852
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1003
853
  readonly status: import("effect/Schema").Boolean;
1004
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1005
- readonly verifyEmailOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1006
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
1007
- readonly email: import("effect/Schema").String;
1008
- readonly otp: import("effect/Schema").String;
1009
- }, "Type">;
1010
- readonly responseMode?: Mode;
1011
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
854
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
855
+ readonly verifyEmailOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
856
+ readonly email: import("effect/Schema").String;
857
+ readonly otp: import("effect/Schema").String;
858
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1012
859
  readonly status: import("effect/Schema").Literal<true>;
1013
860
  readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
1014
861
  readonly user: import("effect/Schema").Struct<{
@@ -1026,90 +873,79 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1026
873
  readonly createdAt: import("effect/Schema").DateFromString;
1027
874
  readonly updatedAt: import("effect/Schema").DateFromString;
1028
875
  }>;
1029
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
876
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1030
877
  };
1031
878
  authExtra: {
1032
- readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1033
- readonly payload: {
1034
- readonly configId: "organization" | "service" | "user";
1035
- readonly name?: string | undefined;
1036
- readonly organizationId?: string | undefined;
1037
- readonly permissions?: {
1038
- readonly [x: string]: readonly string[];
1039
- } | undefined;
1040
- readonly referrers?: readonly string[] | undefined;
1041
- };
1042
- readonly responseMode?: Mode;
1043
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
879
+ readonly createApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
880
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
881
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
882
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
883
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
884
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
885
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1044
886
  readonly id: import("effect/Schema").String;
1045
887
  readonly key: import("effect/Schema").String;
1046
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1047
- readonly getOrganizationPublicProfile: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1048
- readonly query: {
1049
- readonly organizationId: string;
1050
- readonly locale?: "en" | "fr" | undefined;
1051
- };
1052
- readonly responseMode?: Mode;
1053
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1054
- readonly id: string;
1055
- readonly name: string;
1056
- readonly slug: string;
1057
- readonly displayName: string;
1058
- readonly contactEmail: string | null;
1059
- readonly emails?: readonly import("effect/Schema").Struct.ReadonlySide<{
888
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
889
+ readonly getOrganizationPublicProfile: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
890
+ readonly organizationId: import("effect/Schema").String;
891
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
892
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
893
+ readonly id: import("effect/Schema").String;
894
+ readonly name: import("effect/Schema").String;
895
+ readonly slug: import("effect/Schema").String;
896
+ readonly displayName: import("effect/Schema").String;
897
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
898
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1060
899
  readonly email: import("effect/Schema").NonEmptyString;
1061
900
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1062
901
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1063
902
  readonly label: import("effect/Schema").NonEmptyString;
1064
903
  }>>;
1065
- }, "Type">[] | undefined;
1066
- readonly phones?: readonly {
1067
- readonly number: string;
1068
- readonly extension?: string | undefined;
1069
- readonly translations: readonly import("effect/Schema").Struct.ReadonlySide<{
904
+ }>>>;
905
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
906
+ readonly number: import("effect/Schema").NonEmptyString;
907
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
908
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1070
909
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1071
910
  readonly label: import("effect/Schema").NonEmptyString;
1072
- }, "Type">[];
1073
- }[] | undefined;
1074
- readonly websites?: readonly import("effect/Schema").Struct.ReadonlySide<{
911
+ }>>;
912
+ }>>>;
913
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1075
914
  readonly url: import("effect/Schema").NonEmptyString;
1076
915
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1077
916
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1078
917
  readonly label: import("effect/Schema").NonEmptyString;
1079
918
  }>>;
1080
- }, "Type">[] | undefined;
1081
- readonly socials?: readonly import("effect/Schema").Struct.ReadonlySide<{
919
+ }>>>;
920
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1082
921
  readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1083
922
  readonly url: import("effect/Schema").NonEmptyString;
1084
923
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1085
924
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1086
925
  readonly label: import("effect/Schema").NonEmptyString;
1087
926
  }>>;
1088
- }, "Type">[] | undefined;
1089
- readonly addresses?: readonly {
1090
- readonly streetAddress?: string | undefined;
1091
- readonly locality?: string | undefined;
1092
- readonly region?: string | undefined;
1093
- readonly postalCode?: string | undefined;
1094
- readonly country?: string | undefined;
1095
- readonly translations: readonly import("effect/Schema").Struct.ReadonlySide<{
927
+ }>>>;
928
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
929
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
930
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
931
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
932
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
933
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
934
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1096
935
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1097
936
  readonly label: import("effect/Schema").NonEmptyString;
1098
- }, "Type">[];
1099
- readonly formatted: string;
1100
- }[] | undefined;
1101
- readonly logo: string | null;
1102
- readonly icon: string | null;
1103
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1104
- readonly getProjectPublicConfig: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1105
- readonly query: {
1106
- readonly projectId?: string | undefined;
1107
- readonly clientId?: string | undefined;
1108
- readonly host?: string | undefined;
1109
- readonly rootHost?: string | undefined;
1110
- };
1111
- readonly responseMode?: Mode;
1112
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
937
+ }>>;
938
+ readonly formatted: import("effect/Schema").String;
939
+ }>>>;
940
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
941
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
942
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
943
+ readonly getProjectPublicConfig: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
944
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
945
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
946
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
947
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
948
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1113
949
  readonly projectKey: import("effect/Schema").String;
1114
950
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1115
951
  readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -1121,45 +957,32 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1121
957
  readonly emailOtp: import("effect/Schema").Boolean;
1122
958
  readonly google: import("effect/Schema").Boolean;
1123
959
  }>;
1124
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1125
- readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1126
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
1127
- readonly newPassword: import("effect/Schema").NonEmptyString;
1128
- }, "Type">;
1129
- readonly responseMode?: Mode;
1130
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
960
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.InternalServerError>, never, never>, never, never>;
961
+ readonly setPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
962
+ readonly newPassword: import("effect/Schema").NonEmptyString;
963
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1131
964
  readonly ok: import("effect/Schema").Boolean;
1132
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1133
- readonly updateApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1134
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1135
- readonly keyId: import("effect/Schema").NonEmptyString;
1136
- }, "Type">;
1137
- readonly payload: {
1138
- readonly configId: "organization" | "service" | "user";
1139
- readonly name: string;
1140
- readonly enabled: boolean;
1141
- readonly permissions?: {
1142
- readonly [x: string]: readonly string[];
1143
- } | undefined;
1144
- readonly referrers?: readonly string[] | undefined;
1145
- };
1146
- readonly responseMode?: Mode;
1147
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
965
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
966
+ readonly updateApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
967
+ keyId: import("effect/Schema").NonEmptyString;
968
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
969
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
970
+ readonly name: import("effect/Schema").NonEmptyString;
971
+ readonly enabled: import("effect/Schema").Boolean;
972
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
973
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
974
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1148
975
  readonly ok: import("effect/Schema").Boolean;
1149
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1150
- readonly uploadUserImage: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1151
- readonly payload: FormData;
1152
- readonly responseMode?: Mode;
1153
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
976
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
977
+ readonly uploadUserImage: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
978
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
979
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1154
980
  readonly url: import("effect/Schema").String;
1155
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1156
- readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1157
- readonly payload: {
1158
- readonly key: string;
1159
- readonly configId?: "organization" | "service" | "user" | undefined;
1160
- };
1161
- readonly responseMode?: Mode;
1162
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
981
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
982
+ readonly verifyApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
983
+ readonly key: import("effect/Schema").NonEmptyString;
984
+ 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">]>>;
985
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1163
986
  readonly valid: import("effect/Schema").Boolean;
1164
987
  readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1165
988
  readonly message: import("effect/Schema").String;
@@ -1179,126 +1002,105 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1179
1002
  readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1180
1003
  readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1181
1004
  }>>;
1182
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1183
- readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1184
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
1185
- readonly password: import("effect/Schema").NonEmptyString;
1186
- }, "Type">;
1187
- readonly responseMode?: Mode;
1188
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1005
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
1006
+ readonly verifyPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1007
+ readonly password: import("effect/Schema").NonEmptyString;
1008
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1189
1009
  readonly ok: import("effect/Schema").Boolean;
1190
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1010
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
1191
1011
  };
1192
1012
  domains: {
1193
- readonly createDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1194
- readonly payload: {
1195
- readonly hostname: string;
1196
- readonly rootHostname: string;
1197
- readonly projectId?: string | null | undefined;
1198
- readonly organizationId?: string | null | undefined;
1199
- readonly managed: boolean;
1200
- };
1201
- readonly responseMode?: Mode;
1202
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1203
- readonly id: string;
1204
- readonly hostname: string;
1205
- readonly rootHostname: string;
1206
- readonly projectId: string | null;
1207
- readonly projectName?: string | null | undefined;
1208
- readonly projectLogo?: string | null | undefined;
1209
- readonly organizationId: string | null;
1210
- readonly organizationName?: string | null | undefined;
1211
- readonly organizationLogo?: string | null | undefined;
1212
- readonly hostnameId: string;
1213
- readonly managed: boolean;
1214
- readonly active: boolean;
1215
- readonly createdAt: Date;
1216
- readonly updatedAt: Date;
1217
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1218
- readonly deleteDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1219
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1220
- readonly id: import("effect/Schema").NonEmptyString;
1221
- }, "Type">;
1222
- readonly responseMode?: Mode;
1223
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1224
- readonly id: string;
1225
- readonly hostname: string;
1226
- readonly rootHostname: string;
1227
- readonly projectId: string | null;
1228
- readonly projectName?: string | null | undefined;
1229
- readonly projectLogo?: string | null | undefined;
1230
- readonly organizationId: string | null;
1231
- readonly organizationName?: string | null | undefined;
1232
- readonly organizationLogo?: string | null | undefined;
1233
- readonly hostnameId: string;
1234
- readonly managed: boolean;
1235
- readonly active: boolean;
1236
- readonly createdAt: Date;
1237
- readonly updatedAt: Date;
1238
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1239
- readonly getDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1240
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1241
- readonly id: import("effect/Schema").NonEmptyString;
1242
- }, "Type">;
1243
- readonly responseMode?: Mode;
1244
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1245
- readonly id: string;
1246
- readonly hostname: string;
1247
- readonly rootHostname: string;
1248
- readonly projectId: string | null;
1249
- readonly projectName?: string | null | undefined;
1250
- readonly projectLogo?: string | null | undefined;
1251
- readonly organizationId: string | null;
1252
- readonly organizationName?: string | null | undefined;
1253
- readonly organizationLogo?: string | null | undefined;
1254
- readonly hostnameId: string;
1255
- readonly managed: boolean;
1256
- readonly active: boolean;
1257
- readonly createdAt: Date;
1258
- readonly updatedAt: Date;
1259
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1260
- readonly getDomainByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1261
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1262
- readonly hostname: import("effect/Schema").NonEmptyString;
1263
- }, "Type">;
1264
- readonly responseMode?: Mode;
1265
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1266
- readonly id: string;
1267
- readonly hostname: string;
1268
- readonly rootHostname: string;
1269
- readonly projectId: string | null;
1270
- readonly projectName?: string | null | undefined;
1271
- readonly projectLogo?: string | null | undefined;
1272
- readonly organizationId: string | null;
1273
- readonly organizationName?: string | null | undefined;
1274
- readonly organizationLogo?: string | null | undefined;
1275
- readonly hostnameId: string;
1276
- readonly managed: boolean;
1277
- readonly active: boolean;
1278
- readonly createdAt: Date;
1279
- readonly updatedAt: Date;
1280
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1281
- readonly getDomainRecords: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1282
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1283
- readonly id: import("effect/Schema").NonEmptyString;
1284
- }, "Type">;
1285
- readonly responseMode?: Mode;
1286
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
1013
+ readonly createDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1014
+ readonly hostname: import("effect/Schema").NonEmptyString;
1015
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
1016
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1017
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1018
+ readonly managed: import("effect/Schema").Boolean;
1019
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1020
+ readonly id: import("effect/Schema").String;
1021
+ readonly hostname: import("effect/Schema").String;
1022
+ readonly rootHostname: import("effect/Schema").String;
1023
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1024
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1025
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1026
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1027
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1028
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1029
+ readonly hostnameId: import("effect/Schema").String;
1030
+ readonly managed: import("effect/Schema").Boolean;
1031
+ readonly active: import("effect/Schema").Boolean;
1032
+ readonly createdAt: import("effect/Schema").Date;
1033
+ readonly updatedAt: import("effect/Schema").Date;
1034
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1035
+ readonly deleteDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1036
+ readonly id: import("effect/Schema").NonEmptyString;
1037
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1038
+ readonly id: import("effect/Schema").String;
1039
+ readonly hostname: import("effect/Schema").String;
1040
+ readonly rootHostname: import("effect/Schema").String;
1041
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1042
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1043
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1044
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1045
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1046
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1047
+ readonly hostnameId: import("effect/Schema").String;
1048
+ readonly managed: import("effect/Schema").Boolean;
1049
+ readonly active: import("effect/Schema").Boolean;
1050
+ readonly createdAt: import("effect/Schema").Date;
1051
+ readonly updatedAt: import("effect/Schema").Date;
1052
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1053
+ readonly getDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1054
+ readonly id: import("effect/Schema").NonEmptyString;
1055
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1056
+ readonly id: import("effect/Schema").String;
1057
+ readonly hostname: import("effect/Schema").String;
1058
+ readonly rootHostname: import("effect/Schema").String;
1059
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1060
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1061
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1062
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1063
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1064
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1065
+ readonly hostnameId: import("effect/Schema").String;
1066
+ readonly managed: import("effect/Schema").Boolean;
1067
+ readonly active: import("effect/Schema").Boolean;
1068
+ readonly createdAt: import("effect/Schema").Date;
1069
+ readonly updatedAt: import("effect/Schema").Date;
1070
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1071
+ readonly getDomainByHost: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1072
+ readonly hostname: import("effect/Schema").NonEmptyString;
1073
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1074
+ readonly id: import("effect/Schema").String;
1075
+ readonly hostname: import("effect/Schema").String;
1076
+ readonly rootHostname: import("effect/Schema").String;
1077
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1078
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1079
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1080
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1081
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1082
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1083
+ readonly hostnameId: import("effect/Schema").String;
1084
+ readonly managed: import("effect/Schema").Boolean;
1085
+ readonly active: import("effect/Schema").Boolean;
1086
+ readonly createdAt: import("effect/Schema").Date;
1087
+ readonly updatedAt: import("effect/Schema").Date;
1088
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1089
+ readonly getDomainRecords: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1090
+ readonly id: import("effect/Schema").NonEmptyString;
1091
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1287
1092
  readonly required: import("effect/Schema").Boolean;
1288
1093
  readonly status: import("effect/Schema").String;
1289
1094
  readonly type: import("effect/Schema").String;
1290
1095
  readonly name: import("effect/Schema").String;
1291
1096
  readonly value: import("effect/Schema").String;
1292
- }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1097
+ }>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1293
1098
  };
1294
1099
  organizations: {
1295
- readonly getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1296
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1297
- readonly organizationId: import("effect/Schema").NonEmptyString;
1298
- readonly userId: import("effect/Schema").NonEmptyString;
1299
- }, "Type">;
1300
- readonly responseMode?: Mode;
1301
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1100
+ readonly getActiveMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1101
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1102
+ readonly userId: import("effect/Schema").NonEmptyString;
1103
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1302
1104
  readonly id: import("effect/Schema").String;
1303
1105
  readonly organizationId: import("effect/Schema").String;
1304
1106
  readonly userId: import("effect/Schema").String;
@@ -1316,13 +1118,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1316
1118
  readonly createdAt: import("effect/Schema").Date;
1317
1119
  readonly updatedAt: import("effect/Schema").Date;
1318
1120
  }>;
1319
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1320
- readonly getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1321
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1322
- readonly id: import("effect/Schema").NonEmptyString;
1323
- }, "Type">;
1324
- readonly responseMode?: Mode;
1325
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1121
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1122
+ readonly getOrganization: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1123
+ readonly id: import("effect/Schema").NonEmptyString;
1124
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1326
1125
  readonly id: import("effect/Schema").String;
1327
1126
  readonly name: import("effect/Schema").String;
1328
1127
  readonly slug: import("effect/Schema").String;
@@ -1380,13 +1179,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1380
1179
  }>, import("effect/Schema").Unknown, never, never>>;
1381
1180
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1382
1181
  readonly createdAt: import("effect/Schema").Date;
1383
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1384
- readonly getOrganizationChildren: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1385
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1386
- readonly organizationId: import("effect/Schema").NonEmptyString;
1387
- }, "Type">;
1388
- readonly responseMode?: Mode;
1389
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
1182
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1183
+ readonly getOrganizationChildren: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1184
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1185
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1390
1186
  readonly id: import("effect/Schema").String;
1391
1187
  readonly name: import("effect/Schema").String;
1392
1188
  readonly slug: import("effect/Schema").String;
@@ -1444,13 +1240,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1444
1240
  }>, import("effect/Schema").Unknown, never, never>>;
1445
1241
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1446
1242
  readonly createdAt: import("effect/Schema").Date;
1447
- }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1448
- readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1449
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1450
- readonly organizationId: import("effect/Schema").NonEmptyString;
1451
- }, "Type">;
1452
- readonly responseMode?: Mode;
1453
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
1243
+ }>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1244
+ readonly listOrganizationMembers: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1245
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1246
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1454
1247
  readonly id: import("effect/Schema").String;
1455
1248
  readonly organizationId: import("effect/Schema").String;
1456
1249
  readonly userId: import("effect/Schema").String;
@@ -1468,14 +1261,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1468
1261
  readonly createdAt: import("effect/Schema").Date;
1469
1262
  readonly updatedAt: import("effect/Schema").Date;
1470
1263
  }>;
1471
- }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1472
- readonly listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1473
- readonly query: {
1474
- readonly ids?: string | undefined;
1475
- readonly userId?: string | undefined;
1476
- };
1477
- readonly responseMode?: Mode;
1478
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1264
+ }>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1265
+ readonly listOrganizations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1266
+ readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1267
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1268
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1479
1269
  readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1480
1270
  readonly id: import("effect/Schema").String;
1481
1271
  readonly name: import("effect/Schema").String;
@@ -1536,40 +1326,31 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1536
1326
  readonly createdAt: import("effect/Schema").Date;
1537
1327
  }>>;
1538
1328
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1539
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1329
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1540
1330
  };
1541
1331
  users: {
1542
- readonly getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1543
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1544
- readonly id: import("effect/Schema").NonEmptyString;
1545
- }, "Type">;
1546
- readonly responseMode?: Mode;
1547
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1548
- readonly id: string;
1549
- readonly name: string;
1550
- readonly email: string;
1551
- readonly emailVerified: boolean;
1552
- readonly image: string | null;
1553
- readonly role: string | null;
1554
- readonly banned: boolean | null;
1555
- readonly lastLoginMethod?: string | null | undefined;
1556
- readonly createdAt: Date;
1557
- readonly updatedAt: Date;
1558
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1559
- readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1560
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
1561
- readonly userId: import("effect/Schema").NonEmptyString;
1562
- }, "Type">;
1563
- readonly responseMode?: Mode;
1564
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1332
+ readonly getUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1333
+ readonly id: import("effect/Schema").NonEmptyString;
1334
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1335
+ readonly id: import("effect/Schema").String;
1336
+ readonly name: import("effect/Schema").String;
1337
+ readonly email: import("effect/Schema").String;
1338
+ readonly emailVerified: import("effect/Schema").Boolean;
1339
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1340
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1341
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1342
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1343
+ readonly createdAt: import("effect/Schema").Date;
1344
+ readonly updatedAt: import("effect/Schema").Date;
1345
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1346
+ readonly getUserActiveOrganization: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1347
+ readonly userId: import("effect/Schema").NonEmptyString;
1348
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1565
1349
  readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
1566
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1567
- readonly listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1568
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
1569
- readonly ids: import("effect/Schema").NonEmptyString;
1570
- }, "Type">;
1571
- readonly responseMode?: Mode;
1572
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1350
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1351
+ readonly listUsersByIds: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1352
+ readonly ids: import("effect/Schema").NonEmptyString;
1353
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1573
1354
  readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1574
1355
  readonly id: import("effect/Schema").String;
1575
1356
  readonly name: import("effect/Schema").String;
@@ -1583,7 +1364,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1583
1364
  readonly updatedAt: import("effect/Schema").Date;
1584
1365
  }>>;
1585
1366
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1586
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
1367
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
1587
1368
  };
1588
1369
  }> & {
1589
1370
  readonly make: (options?: AuthServiceLayerOptions) => Effect.Effect<{
@@ -1597,14 +1378,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1597
1378
  readonly userId: string;
1598
1379
  }) => Effect.Effect<string, import("effect/unstable/http/HttpClientError").HttpClientError | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized, never>;
1599
1380
  auth: {
1600
- readonly adminBanUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1601
- readonly payload: {
1602
- readonly userId: string;
1603
- readonly banReason?: string | undefined;
1604
- readonly banExpiresIn?: number | undefined;
1605
- };
1606
- readonly responseMode?: Mode;
1607
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1381
+ readonly adminBanUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1382
+ readonly userId: import("effect/Schema").String;
1383
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
1384
+ readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
1385
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1608
1386
  readonly user: import("effect/Schema").Struct<{
1609
1387
  readonly id: import("effect/Schema").String;
1610
1388
  readonly name: import("effect/Schema").String;
@@ -1620,13 +1398,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1620
1398
  readonly createdAt: import("effect/Schema").DateFromString;
1621
1399
  readonly updatedAt: import("effect/Schema").DateFromString;
1622
1400
  }>;
1623
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1624
- readonly adminImpersonateUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1625
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
1626
- readonly userId: import("effect/Schema").String;
1627
- }, "Type">;
1628
- readonly responseMode?: Mode;
1629
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1401
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1402
+ readonly adminImpersonateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1403
+ readonly userId: import("effect/Schema").String;
1404
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1630
1405
  readonly session: import("effect/Schema").Struct<{
1631
1406
  readonly id: import("effect/Schema").String;
1632
1407
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -1655,10 +1430,8 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1655
1430
  readonly createdAt: import("effect/Schema").DateFromString;
1656
1431
  readonly updatedAt: import("effect/Schema").DateFromString;
1657
1432
  }>;
1658
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1659
- readonly adminStopImpersonating: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
1660
- readonly responseMode?: Mode;
1661
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1433
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1434
+ readonly adminStopImpersonating: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1662
1435
  readonly session: import("effect/Schema").Struct<{
1663
1436
  readonly id: import("effect/Schema").String;
1664
1437
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -1687,13 +1460,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1687
1460
  readonly createdAt: import("effect/Schema").DateFromString;
1688
1461
  readonly updatedAt: import("effect/Schema").DateFromString;
1689
1462
  }>;
1690
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1691
- readonly adminUnbanUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1692
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
1693
- readonly userId: import("effect/Schema").String;
1694
- }, "Type">;
1695
- readonly responseMode?: Mode;
1696
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1463
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1464
+ readonly adminUnbanUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1465
+ readonly userId: import("effect/Schema").String;
1466
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1697
1467
  readonly user: import("effect/Schema").Struct<{
1698
1468
  readonly id: import("effect/Schema").String;
1699
1469
  readonly name: import("effect/Schema").String;
@@ -1709,98 +1479,82 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1709
1479
  readonly createdAt: import("effect/Schema").DateFromString;
1710
1480
  readonly updatedAt: import("effect/Schema").DateFromString;
1711
1481
  }>;
1712
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1713
- readonly apiKeyDelete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1714
- readonly payload: {
1715
- readonly configId?: string | undefined;
1716
- readonly keyId: string;
1717
- };
1718
- readonly responseMode?: Mode;
1719
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1482
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1483
+ readonly apiKeyDelete: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1484
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
1485
+ readonly keyId: import("effect/Schema").String;
1486
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1720
1487
  readonly success: import("effect/Schema").Boolean;
1721
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1722
- readonly apiKeyList: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1723
- readonly query: {
1724
- readonly configId?: string | undefined;
1725
- readonly organizationId?: string | undefined;
1726
- readonly limit?: number | undefined;
1727
- readonly offset?: number | undefined;
1728
- readonly sortBy?: string | undefined;
1729
- readonly sortDirection?: "asc" | "desc" | undefined;
1730
- };
1731
- readonly responseMode?: Mode;
1732
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1733
- readonly apiKeys: readonly {
1734
- readonly id: string;
1735
- readonly name: string | null;
1736
- readonly start: string | null;
1737
- readonly prefix: string | null;
1738
- readonly userId?: string | undefined;
1739
- readonly referenceId: string;
1740
- readonly configId: string;
1741
- readonly refillInterval: number | null;
1742
- readonly refillAmount: number | null;
1743
- readonly lastRefillAt: Date | null;
1744
- readonly enabled: boolean;
1745
- readonly rateLimitEnabled: boolean;
1746
- readonly rateLimitTimeWindow: number | null;
1747
- readonly rateLimitMax: number | null;
1748
- readonly requestCount: number;
1749
- readonly remaining: number | null;
1750
- readonly lastRequest: Date | null;
1751
- readonly expiresAt: Date | null;
1752
- readonly createdAt: Date;
1753
- readonly updatedAt: Date;
1754
- readonly metadata: {
1755
- readonly [x: string]: import("effect/Schema").Json;
1756
- } | null;
1757
- readonly permissions?: {
1758
- readonly [x: string]: readonly string[];
1759
- } | null | undefined;
1760
- readonly referrers?: readonly string[] | null | undefined;
1761
- }[];
1762
- readonly total: number;
1763
- readonly limit?: number | null | undefined;
1764
- readonly offset?: number | null | undefined;
1765
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1766
- readonly changePassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1767
- readonly payload: {
1768
- readonly newPassword: string;
1769
- readonly currentPassword: string;
1770
- readonly revokeOtherSessions?: boolean | undefined;
1771
- };
1772
- readonly responseMode?: Mode;
1773
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1774
- readonly token?: string | null | undefined;
1775
- readonly user: {
1776
- readonly id: string;
1777
- readonly name: string;
1778
- readonly email: string;
1779
- readonly emailVerified: boolean;
1780
- readonly image: string | null;
1781
- readonly role: string | null;
1782
- readonly banned: boolean | null;
1783
- readonly banReason?: string | null | undefined;
1784
- readonly banExpires?: Date | null | undefined;
1785
- readonly twoFactorEnabled?: boolean | undefined;
1786
- readonly lastLoginMethod?: string | null | undefined;
1787
- readonly createdAt: Date;
1788
- readonly updatedAt: Date;
1789
- };
1790
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1791
- readonly getSession: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1792
- readonly query: {
1793
- readonly disableCookieCache?: string | undefined;
1794
- readonly disableRefresh?: string | undefined;
1795
- };
1796
- readonly responseMode?: Mode;
1797
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1798
- readonly session: import("effect/Schema").Struct<{
1488
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1489
+ readonly apiKeyList: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1490
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
1491
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1492
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1493
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1494
+ readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
1495
+ readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
1496
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1497
+ readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1799
1498
  readonly id: import("effect/Schema").String;
1800
- readonly expiresAt: import("effect/Schema").DateFromString;
1801
- readonly token: import("effect/Schema").String;
1802
- readonly createdAt: import("effect/Schema").DateFromString;
1803
- readonly updatedAt: import("effect/Schema").DateFromString;
1499
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1500
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
1501
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
1502
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
1503
+ readonly referenceId: import("effect/Schema").String;
1504
+ readonly configId: import("effect/Schema").String;
1505
+ readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1506
+ readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1507
+ readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
1508
+ readonly enabled: import("effect/Schema").Boolean;
1509
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
1510
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1511
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1512
+ readonly requestCount: import("effect/Schema").Number;
1513
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1514
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
1515
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
1516
+ readonly createdAt: import("effect/Schema").DateFromString;
1517
+ readonly updatedAt: import("effect/Schema").DateFromString;
1518
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1519
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
1520
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
1521
+ }>>;
1522
+ readonly total: import("effect/Schema").Number;
1523
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
1524
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
1525
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1526
+ readonly changePassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1527
+ readonly newPassword: import("effect/Schema").String;
1528
+ readonly currentPassword: import("effect/Schema").String;
1529
+ readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1530
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1531
+ readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1532
+ readonly user: import("effect/Schema").Struct<{
1533
+ readonly id: import("effect/Schema").String;
1534
+ readonly name: import("effect/Schema").String;
1535
+ readonly email: import("effect/Schema").String;
1536
+ readonly emailVerified: import("effect/Schema").Boolean;
1537
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1538
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1539
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1540
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1541
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1542
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1543
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1544
+ readonly createdAt: import("effect/Schema").DateFromString;
1545
+ readonly updatedAt: import("effect/Schema").DateFromString;
1546
+ }>;
1547
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1548
+ readonly getSession: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1549
+ readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
1550
+ readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
1551
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1552
+ readonly session: import("effect/Schema").Struct<{
1553
+ readonly id: import("effect/Schema").String;
1554
+ readonly expiresAt: import("effect/Schema").DateFromString;
1555
+ readonly token: import("effect/Schema").String;
1556
+ readonly createdAt: import("effect/Schema").DateFromString;
1557
+ readonly updatedAt: import("effect/Schema").DateFromString;
1804
1558
  readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1805
1559
  readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1806
1560
  readonly userId: import("effect/Schema").String;
@@ -1823,51 +1577,44 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1823
1577
  readonly createdAt: import("effect/Schema").DateFromString;
1824
1578
  readonly updatedAt: import("effect/Schema").DateFromString;
1825
1579
  }>;
1826
- }, "Type"> | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1827
- readonly linkSocial: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1828
- readonly payload: {
1829
- readonly callbackURL?: string | undefined;
1830
- readonly provider: string;
1831
- readonly idToken?: {
1832
- readonly token: string;
1833
- readonly nonce?: string | undefined;
1834
- readonly accessToken?: string | undefined;
1835
- readonly refreshToken?: string | undefined;
1836
- readonly scopes?: readonly string[] | undefined;
1837
- } | undefined;
1838
- readonly requestSignUp?: boolean | undefined;
1839
- readonly scopes?: readonly string[] | undefined;
1840
- readonly errorCallbackURL?: string | undefined;
1841
- readonly disableRedirect?: boolean | undefined;
1842
- readonly additionalData?: {
1843
- readonly [x: string]: import("effect/Schema").Json;
1844
- } | undefined;
1845
- };
1846
- readonly responseMode?: Mode;
1847
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1848
- readonly url?: string | undefined;
1849
- readonly redirect: boolean;
1850
- readonly token?: string | undefined;
1851
- readonly user?: {
1852
- readonly id: string;
1853
- readonly name: string;
1854
- readonly email: string;
1855
- readonly emailVerified: boolean;
1856
- readonly image: string | null;
1857
- readonly role: string | null;
1858
- readonly banned: boolean | null;
1859
- readonly banReason?: string | null | undefined;
1860
- readonly banExpires?: Date | null | undefined;
1861
- readonly twoFactorEnabled?: boolean | undefined;
1862
- readonly lastLoginMethod?: string | null | undefined;
1863
- readonly createdAt: Date;
1864
- readonly updatedAt: Date;
1865
- } | undefined;
1866
- readonly status?: boolean | undefined;
1867
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1868
- readonly listAccounts: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
1869
- readonly responseMode?: Mode;
1870
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
1580
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1581
+ readonly linkSocial: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1582
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1583
+ readonly provider: import("effect/Schema").String;
1584
+ readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
1585
+ readonly token: import("effect/Schema").String;
1586
+ readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1587
+ readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1588
+ readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
1589
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1590
+ }>>;
1591
+ readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1592
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1593
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1594
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1595
+ readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1596
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1597
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1598
+ readonly redirect: import("effect/Schema").Boolean;
1599
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1600
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1601
+ readonly id: import("effect/Schema").String;
1602
+ readonly name: import("effect/Schema").String;
1603
+ readonly email: import("effect/Schema").String;
1604
+ readonly emailVerified: import("effect/Schema").Boolean;
1605
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1606
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1607
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1608
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1609
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1610
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1611
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1612
+ readonly createdAt: import("effect/Schema").DateFromString;
1613
+ readonly updatedAt: import("effect/Schema").DateFromString;
1614
+ }>>;
1615
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1616
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1617
+ readonly listAccounts: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1871
1618
  readonly id: import("effect/Schema").String;
1872
1619
  readonly providerId: import("effect/Schema").String;
1873
1620
  readonly createdAt: import("effect/Schema").DateFromString;
@@ -1875,39 +1622,30 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1875
1622
  readonly accountId: import("effect/Schema").String;
1876
1623
  readonly userId: import("effect/Schema").String;
1877
1624
  readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
1878
- }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1879
- readonly oauthConsent: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1880
- readonly payload: {
1881
- readonly accept: boolean;
1882
- readonly scope?: string | undefined;
1883
- readonly oauth_query?: string | undefined;
1884
- };
1885
- readonly responseMode?: Mode;
1886
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1625
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1626
+ readonly oauthConsent: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1627
+ readonly accept: import("effect/Schema").Boolean;
1628
+ readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
1629
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1630
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1887
1631
  readonly redirect: import("effect/Schema").Boolean;
1888
1632
  readonly url: import("effect/Schema").String;
1889
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1890
- readonly oauthPublicClient: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1891
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
1892
- readonly client_id: import("effect/Schema").String;
1893
- }, "Type">;
1894
- readonly responseMode?: Mode;
1895
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1896
- readonly client_id: string;
1897
- readonly client_name?: string | undefined;
1898
- readonly client_uri?: string | undefined;
1899
- readonly logo_uri?: string | undefined;
1900
- readonly contacts?: readonly string[] | undefined;
1901
- readonly tos_uri?: string | undefined;
1902
- readonly policy_uri?: string | undefined;
1903
- readonly redirect_uris: readonly string[];
1904
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1905
- readonly organizationAcceptInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1906
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
1907
- readonly invitationId: import("effect/Schema").String;
1908
- }, "Type">;
1909
- readonly responseMode?: Mode;
1910
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1633
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1634
+ readonly oauthPublicClient: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1635
+ readonly client_id: import("effect/Schema").String;
1636
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1637
+ readonly client_id: import("effect/Schema").String;
1638
+ readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
1639
+ readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1640
+ readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1641
+ readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1642
+ readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1643
+ readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1644
+ readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
1645
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1646
+ readonly organizationAcceptInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1647
+ readonly invitationId: import("effect/Schema").String;
1648
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1911
1649
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1912
1650
  readonly id: import("effect/Schema").String;
1913
1651
  readonly email: import("effect/Schema").String;
@@ -1927,67 +1665,52 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1927
1665
  readonly role: import("effect/Schema").String;
1928
1666
  readonly createdAt: import("effect/Schema").DateFromString;
1929
1667
  }>>;
1930
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1931
- readonly organizationCancelInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1932
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
1933
- readonly invitationId: import("effect/Schema").String;
1934
- }, "Type">;
1935
- readonly responseMode?: Mode;
1936
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1937
- readonly id: string;
1938
- readonly email: string;
1939
- readonly role: string;
1940
- readonly organizationId: string;
1941
- readonly organizationName?: string | null | undefined;
1942
- readonly inviterId: string;
1943
- readonly teamId?: string | null | undefined;
1944
- readonly status: string;
1945
- readonly expiresAt: Date;
1946
- readonly createdAt?: Date | undefined;
1947
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1948
- readonly organizationCreate: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1949
- readonly payload: {
1950
- readonly name: string;
1951
- readonly slug: string;
1952
- readonly logo?: string | null | undefined;
1953
- readonly metadata?: {
1954
- readonly [x: string]: import("effect/Schema").Json;
1955
- } | undefined;
1956
- readonly parentId?: string | null | undefined;
1957
- readonly keepCurrentActiveOrganization?: boolean | undefined;
1958
- };
1959
- readonly responseMode?: Mode;
1960
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1961
- readonly id: string;
1962
- readonly name: string;
1963
- readonly slug: string;
1964
- readonly logo?: string | null | undefined;
1965
- readonly metadata?: string | {
1966
- readonly [x: string]: import("effect/Schema").Json;
1967
- } | null | undefined;
1968
- readonly userId?: string | null | undefined;
1969
- readonly parentId?: string | null | undefined;
1970
- readonly createdAt: Date;
1971
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
1972
- readonly organizationGetFull: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1973
- readonly query: {
1974
- readonly organizationId?: string | undefined;
1975
- readonly organizationSlug?: string | undefined;
1976
- readonly membersLimit?: number | undefined;
1977
- };
1978
- readonly responseMode?: Mode;
1979
- }) => Effect.Effect<HttpApiClient.Client.Response<{
1980
- readonly id: string;
1981
- readonly name: string;
1982
- readonly slug: string;
1983
- readonly logo?: string | null | undefined;
1984
- readonly metadata?: string | {
1985
- readonly [x: string]: import("effect/Schema").Json;
1986
- } | null | undefined;
1987
- readonly userId?: string | null | undefined;
1988
- readonly parentId?: string | null | undefined;
1989
- readonly createdAt: Date;
1990
- readonly members: readonly import("effect/Schema").Struct.ReadonlySide<{
1668
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1669
+ readonly organizationCancelInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1670
+ readonly invitationId: import("effect/Schema").String;
1671
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1672
+ readonly id: import("effect/Schema").String;
1673
+ readonly email: import("effect/Schema").String;
1674
+ readonly role: import("effect/Schema").String;
1675
+ readonly organizationId: import("effect/Schema").String;
1676
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1677
+ readonly inviterId: import("effect/Schema").String;
1678
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1679
+ readonly status: import("effect/Schema").String;
1680
+ readonly expiresAt: import("effect/Schema").DateFromString;
1681
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1682
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1683
+ readonly organizationCreate: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1684
+ readonly name: import("effect/Schema").NonEmptyString;
1685
+ readonly slug: import("effect/Schema").NonEmptyString;
1686
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1687
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1688
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1689
+ readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1690
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1691
+ readonly id: import("effect/Schema").String;
1692
+ readonly name: import("effect/Schema").String;
1693
+ readonly slug: import("effect/Schema").String;
1694
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1695
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1696
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1697
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1698
+ readonly createdAt: import("effect/Schema").DateFromString;
1699
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1700
+ readonly organizationGetFull: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1701
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1702
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1703
+ readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1704
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1705
+ readonly id: import("effect/Schema").String;
1706
+ readonly name: import("effect/Schema").String;
1707
+ readonly slug: import("effect/Schema").String;
1708
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1709
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1710
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1711
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1712
+ readonly createdAt: import("effect/Schema").DateFromString;
1713
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1991
1714
  readonly id: import("effect/Schema").String;
1992
1715
  readonly organizationId: import("effect/Schema").String;
1993
1716
  readonly userId: import("effect/Schema").String;
@@ -2008,48 +1731,42 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2008
1731
  readonly createdAt: import("effect/Schema").DateFromString;
2009
1732
  readonly updatedAt: import("effect/Schema").DateFromString;
2010
1733
  }>;
2011
- }, "Type">[];
2012
- readonly invitations: readonly {
2013
- readonly id: string;
2014
- readonly email: string;
2015
- readonly role: string;
2016
- readonly organizationId: string;
2017
- readonly organizationName?: string | null | undefined;
2018
- readonly inviterId: string;
2019
- readonly teamId?: string | null | undefined;
2020
- readonly status: string;
2021
- readonly expiresAt: Date;
2022
- readonly createdAt?: Date | undefined;
2023
- }[];
2024
- } | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2025
- readonly organizationGetInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2026
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
1734
+ }>>;
1735
+ readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2027
1736
  readonly id: import("effect/Schema").String;
2028
- }, "Type">;
2029
- readonly responseMode?: Mode;
2030
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2031
- readonly id: string;
2032
- readonly email: string;
2033
- readonly role: string;
2034
- readonly organizationId: string;
2035
- readonly inviterId: string;
2036
- readonly teamId?: string | null | undefined;
2037
- readonly status: string;
2038
- readonly expiresAt: Date;
2039
- readonly createdAt?: Date | undefined;
2040
- readonly organizationName: string;
2041
- readonly organizationSlug: string;
2042
- readonly inviterEmail: string;
2043
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2044
- readonly organizationImpersonateUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2045
- readonly payload: {
2046
- readonly organizationId: string;
2047
- readonly actorUserId: string;
2048
- readonly targetUserId: string;
2049
- readonly expiresInSeconds?: number | undefined;
2050
- };
2051
- readonly responseMode?: Mode;
2052
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1737
+ readonly email: import("effect/Schema").String;
1738
+ readonly role: import("effect/Schema").String;
1739
+ readonly organizationId: import("effect/Schema").String;
1740
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1741
+ readonly inviterId: import("effect/Schema").String;
1742
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1743
+ readonly status: import("effect/Schema").String;
1744
+ readonly expiresAt: import("effect/Schema").DateFromString;
1745
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1746
+ }>>;
1747
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1748
+ readonly organizationGetInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1749
+ readonly id: import("effect/Schema").String;
1750
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1751
+ readonly id: import("effect/Schema").String;
1752
+ readonly email: import("effect/Schema").String;
1753
+ readonly role: import("effect/Schema").String;
1754
+ readonly organizationId: import("effect/Schema").String;
1755
+ readonly inviterId: import("effect/Schema").String;
1756
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1757
+ readonly status: import("effect/Schema").String;
1758
+ readonly expiresAt: import("effect/Schema").DateFromString;
1759
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1760
+ readonly organizationName: import("effect/Schema").String;
1761
+ readonly organizationSlug: import("effect/Schema").String;
1762
+ readonly inviterEmail: import("effect/Schema").String;
1763
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1764
+ readonly organizationImpersonateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1765
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1766
+ readonly actorUserId: import("effect/Schema").NonEmptyString;
1767
+ readonly targetUserId: import("effect/Schema").NonEmptyString;
1768
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
1769
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2053
1770
  readonly session: import("effect/Schema").Struct<{
2054
1771
  readonly id: import("effect/Schema").String;
2055
1772
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -2078,85 +1795,69 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2078
1795
  readonly createdAt: import("effect/Schema").DateFromString;
2079
1796
  readonly updatedAt: import("effect/Schema").DateFromString;
2080
1797
  }>;
2081
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2082
- readonly organizationInviteMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2083
- readonly payload: {
2084
- readonly email: string;
2085
- readonly role: string | readonly string[];
2086
- readonly organizationId?: string | undefined;
2087
- readonly resend?: boolean | undefined;
2088
- readonly teamId?: string | readonly string[] | undefined;
2089
- };
2090
- readonly responseMode?: Mode;
2091
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2092
- readonly id: string;
2093
- readonly email: string;
2094
- readonly role: string;
2095
- readonly organizationId: string;
2096
- readonly organizationName?: string | null | undefined;
2097
- readonly inviterId: string;
2098
- readonly teamId?: string | null | undefined;
2099
- readonly status: string;
2100
- readonly expiresAt: Date;
2101
- readonly createdAt?: Date | undefined;
2102
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2103
- readonly organizationLeave: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2104
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
2105
- readonly organizationId: import("effect/Schema").String;
2106
- }, "Type">;
2107
- readonly responseMode?: Mode;
2108
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1798
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1799
+ readonly organizationInviteMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1800
+ readonly email: import("effect/Schema").String;
1801
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1802
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1803
+ readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1804
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
1805
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1806
+ readonly id: import("effect/Schema").String;
1807
+ readonly email: import("effect/Schema").String;
1808
+ readonly role: import("effect/Schema").String;
1809
+ readonly organizationId: import("effect/Schema").String;
1810
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1811
+ readonly inviterId: import("effect/Schema").String;
1812
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1813
+ readonly status: import("effect/Schema").String;
1814
+ readonly expiresAt: import("effect/Schema").DateFromString;
1815
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1816
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1817
+ readonly organizationLeave: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1818
+ readonly organizationId: import("effect/Schema").String;
1819
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2109
1820
  readonly id: import("effect/Schema").String;
2110
1821
  readonly organizationId: import("effect/Schema").String;
2111
1822
  readonly userId: import("effect/Schema").String;
2112
1823
  readonly role: import("effect/Schema").String;
2113
1824
  readonly createdAt: import("effect/Schema").DateFromString;
2114
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2115
- readonly organizationList: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
2116
- readonly responseMode?: Mode;
2117
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
2118
- readonly id: string;
2119
- readonly name: string;
2120
- readonly slug: string;
2121
- readonly logo?: string | null | undefined;
2122
- readonly metadata?: string | {
2123
- readonly [x: string]: import("effect/Schema").Json;
2124
- } | null | undefined;
2125
- readonly userId?: string | null | undefined;
2126
- readonly parentId?: string | null | undefined;
2127
- readonly createdAt: Date;
2128
- }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2129
- readonly organizationListInvitations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2130
- readonly query: {
2131
- readonly organizationId?: string | undefined;
2132
- };
2133
- readonly responseMode?: Mode;
2134
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
2135
- readonly id: string;
2136
- readonly email: string;
2137
- readonly role: string;
2138
- readonly organizationId: string;
2139
- readonly organizationName?: string | null | undefined;
2140
- readonly inviterId: string;
2141
- readonly teamId?: string | null | undefined;
2142
- readonly status: string;
2143
- readonly expiresAt: Date;
2144
- readonly createdAt?: Date | undefined;
2145
- }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2146
- readonly organizationListMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2147
- readonly query: {
2148
- readonly limit?: number | undefined;
2149
- readonly offset?: number | undefined;
2150
- readonly sortBy?: string | undefined;
2151
- readonly sortDirection?: "asc" | "desc" | undefined;
2152
- readonly filterField?: string | undefined;
2153
- readonly filterValue?: string | undefined;
2154
- readonly filterOperator?: string | undefined;
2155
- readonly organizationId?: string | undefined;
2156
- readonly organizationSlug?: string | undefined;
2157
- };
2158
- readonly responseMode?: Mode;
2159
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1825
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1826
+ readonly organizationList: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1827
+ readonly id: import("effect/Schema").String;
1828
+ readonly name: import("effect/Schema").String;
1829
+ readonly slug: import("effect/Schema").String;
1830
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1831
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1832
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1833
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1834
+ readonly createdAt: import("effect/Schema").DateFromString;
1835
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1836
+ readonly organizationListInvitations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1837
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1838
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1839
+ readonly id: import("effect/Schema").String;
1840
+ readonly email: import("effect/Schema").String;
1841
+ readonly role: import("effect/Schema").String;
1842
+ readonly organizationId: import("effect/Schema").String;
1843
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1844
+ readonly inviterId: import("effect/Schema").String;
1845
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1846
+ readonly status: import("effect/Schema").String;
1847
+ readonly expiresAt: import("effect/Schema").DateFromString;
1848
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1849
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1850
+ readonly organizationListMembers: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1851
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1852
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1853
+ readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
1854
+ readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
1855
+ readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
1856
+ readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
1857
+ readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
1858
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1859
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1860
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2160
1861
  readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2161
1862
  readonly id: import("effect/Schema").String;
2162
1863
  readonly organizationId: import("effect/Schema").String;
@@ -2180,28 +1881,22 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2180
1881
  }>;
2181
1882
  }>>;
2182
1883
  readonly total: import("effect/Schema").Number;
2183
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2184
- readonly organizationListUserInvitations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2185
- readonly query: import("effect/Schema").Struct.ReadonlySide<{}, "Type">;
2186
- readonly responseMode?: Mode;
2187
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
2188
- readonly id: string;
2189
- readonly email: string;
2190
- readonly role: string;
2191
- readonly organizationId: string;
2192
- readonly organizationName?: string | null | undefined;
2193
- readonly inviterId: string;
2194
- readonly teamId?: string | null | undefined;
2195
- readonly status: string;
2196
- readonly expiresAt: Date;
2197
- readonly createdAt?: Date | undefined;
2198
- }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2199
- readonly organizationRejectInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2200
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
2201
- readonly invitationId: import("effect/Schema").String;
2202
- }, "Type">;
2203
- readonly responseMode?: Mode;
2204
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1884
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1885
+ readonly organizationListUserInvitations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1886
+ readonly id: import("effect/Schema").String;
1887
+ readonly email: import("effect/Schema").String;
1888
+ readonly role: import("effect/Schema").String;
1889
+ readonly organizationId: import("effect/Schema").String;
1890
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1891
+ readonly inviterId: import("effect/Schema").String;
1892
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1893
+ readonly status: import("effect/Schema").String;
1894
+ readonly expiresAt: import("effect/Schema").DateFromString;
1895
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1896
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1897
+ readonly organizationRejectInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1898
+ readonly invitationId: import("effect/Schema").String;
1899
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2205
1900
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2206
1901
  readonly id: import("effect/Schema").String;
2207
1902
  readonly email: import("effect/Schema").String;
@@ -2221,14 +1916,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2221
1916
  readonly role: import("effect/Schema").String;
2222
1917
  readonly createdAt: import("effect/Schema").DateFromString;
2223
1918
  }>>;
2224
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2225
- readonly organizationRemoveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2226
- readonly payload: {
2227
- readonly memberIdOrEmail: string;
2228
- readonly organizationId?: string | undefined;
2229
- };
2230
- readonly responseMode?: Mode;
2231
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1919
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1920
+ readonly organizationRemoveMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1921
+ readonly memberIdOrEmail: import("effect/Schema").String;
1922
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1923
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2232
1924
  readonly member: import("effect/Schema").Struct<{
2233
1925
  readonly id: import("effect/Schema").String;
2234
1926
  readonly organizationId: import("effect/Schema").String;
@@ -2236,335 +1928,271 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2236
1928
  readonly role: import("effect/Schema").String;
2237
1929
  readonly createdAt: import("effect/Schema").DateFromString;
2238
1930
  }>;
2239
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2240
- readonly organizationSetActive: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2241
- readonly payload: {
2242
- readonly organizationId?: string | null | undefined;
2243
- readonly organizationSlug?: string | undefined;
2244
- };
2245
- readonly responseMode?: Mode;
2246
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2247
- readonly id: string;
2248
- readonly name: string;
2249
- readonly slug: string;
2250
- readonly logo?: string | null | undefined;
2251
- readonly metadata?: string | {
2252
- readonly [x: string]: import("effect/Schema").Json;
2253
- } | null | undefined;
2254
- readonly userId?: string | null | undefined;
2255
- readonly parentId?: string | null | undefined;
2256
- readonly createdAt: Date;
2257
- } | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2258
- readonly organizationUpdate: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2259
- readonly payload: {
2260
- readonly organizationId?: string | undefined;
2261
- readonly data: {
2262
- readonly name?: string | undefined;
2263
- readonly slug?: string | undefined;
2264
- readonly logo?: string | null | undefined;
2265
- readonly metadata?: {
2266
- readonly [x: string]: import("effect/Schema").Json;
2267
- } | undefined;
2268
- readonly parentId?: string | null | undefined;
2269
- };
2270
- };
2271
- readonly responseMode?: Mode;
2272
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2273
- readonly id: string;
2274
- readonly name: string;
2275
- readonly slug: string;
2276
- readonly logo?: string | null | undefined;
2277
- readonly metadata?: string | {
2278
- readonly [x: string]: import("effect/Schema").Json;
2279
- } | null | undefined;
2280
- readonly userId?: string | null | undefined;
2281
- readonly parentId?: string | null | undefined;
2282
- readonly createdAt: Date;
2283
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2284
- readonly organizationUpdateMemberRole: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2285
- readonly payload: {
2286
- readonly role: string | readonly string[];
2287
- readonly memberId: string;
2288
- readonly organizationId?: string | undefined;
2289
- };
2290
- readonly responseMode?: Mode;
2291
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1931
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1932
+ readonly organizationSetActive: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1933
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1934
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1935
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1936
+ readonly id: import("effect/Schema").String;
1937
+ readonly name: import("effect/Schema").String;
1938
+ readonly slug: import("effect/Schema").String;
1939
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1940
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1941
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1942
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1943
+ readonly createdAt: import("effect/Schema").DateFromString;
1944
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1945
+ readonly organizationUpdate: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1946
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1947
+ readonly data: import("effect/Schema").Struct<{
1948
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1949
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1950
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1951
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1952
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1953
+ }>;
1954
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1955
+ readonly id: import("effect/Schema").String;
1956
+ readonly name: import("effect/Schema").String;
1957
+ readonly slug: import("effect/Schema").String;
1958
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1959
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1960
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1961
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1962
+ readonly createdAt: import("effect/Schema").DateFromString;
1963
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1964
+ readonly organizationUpdateMemberRole: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1965
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1966
+ readonly memberId: import("effect/Schema").String;
1967
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1968
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2292
1969
  readonly id: import("effect/Schema").String;
2293
1970
  readonly organizationId: import("effect/Schema").String;
2294
1971
  readonly userId: import("effect/Schema").String;
2295
1972
  readonly role: import("effect/Schema").String;
2296
1973
  readonly createdAt: import("effect/Schema").DateFromString;
2297
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2298
- readonly requestPasswordReset: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2299
- readonly payload: {
2300
- readonly email: string;
2301
- readonly redirectTo?: string | undefined;
2302
- };
2303
- readonly responseMode?: Mode;
2304
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1974
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1975
+ readonly requestPasswordReset: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1976
+ readonly email: import("effect/Schema").String;
1977
+ readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
1978
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2305
1979
  readonly status: import("effect/Schema").Boolean;
2306
1980
  readonly message: import("effect/Schema").String;
2307
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2308
- readonly resetPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2309
- readonly payload: {
2310
- readonly newPassword: string;
2311
- readonly token?: string | undefined;
2312
- };
2313
- readonly responseMode?: Mode;
2314
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1981
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1982
+ readonly resetPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1983
+ readonly newPassword: import("effect/Schema").String;
1984
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1985
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2315
1986
  readonly status: import("effect/Schema").Boolean;
2316
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2317
- readonly sendVerificationOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2318
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
2319
- readonly email: import("effect/Schema").String;
2320
- readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
2321
- }, "Type">;
2322
- readonly responseMode?: Mode;
2323
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1987
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1988
+ readonly sendVerificationOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1989
+ readonly email: import("effect/Schema").String;
1990
+ readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
1991
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2324
1992
  readonly success: import("effect/Schema").Boolean;
2325
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2326
- readonly signInEmail: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2327
- readonly payload: {
2328
- readonly email: string;
2329
- readonly password: string;
2330
- readonly callbackURL?: string | undefined;
2331
- readonly rememberMe?: boolean | undefined;
2332
- readonly oauth_query?: string | undefined;
2333
- };
2334
- readonly responseMode?: Mode;
2335
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2336
- readonly redirect: boolean;
2337
- readonly token: string;
2338
- readonly url?: string | null | undefined;
2339
- readonly user: {
2340
- readonly id: string;
2341
- readonly name: string;
2342
- readonly email: string;
2343
- readonly emailVerified: boolean;
2344
- readonly image: string | null;
2345
- readonly role: string | null;
2346
- readonly banned: boolean | null;
2347
- readonly banReason?: string | null | undefined;
2348
- readonly banExpires?: Date | null | undefined;
2349
- readonly twoFactorEnabled?: boolean | undefined;
2350
- readonly lastLoginMethod?: string | null | undefined;
2351
- readonly createdAt: Date;
2352
- readonly updatedAt: Date;
2353
- };
2354
- } | {
2355
- readonly twoFactorRedirect: true;
2356
- readonly twoFactorMethods: readonly string[];
2357
- readonly url?: string | null | undefined;
2358
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2359
- readonly signInEmailOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2360
- readonly payload: {
2361
- readonly email: string;
2362
- readonly otp: string;
2363
- readonly name?: string | undefined;
2364
- readonly image?: string | undefined;
2365
- };
2366
- readonly responseMode?: Mode;
2367
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2368
- readonly token?: string | undefined;
2369
- readonly user: {
2370
- readonly id: string;
2371
- readonly name: string;
2372
- readonly email: string;
2373
- readonly emailVerified: boolean;
2374
- readonly image: string | null;
2375
- readonly role: string | null;
2376
- readonly banned: boolean | null;
2377
- readonly banReason?: string | null | undefined;
2378
- readonly banExpires?: Date | null | undefined;
2379
- readonly twoFactorEnabled?: boolean | undefined;
2380
- readonly lastLoginMethod?: string | null | undefined;
2381
- readonly createdAt: Date;
2382
- readonly updatedAt: Date;
2383
- };
2384
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2385
- readonly signInSocial: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2386
- readonly payload: {
2387
- readonly callbackURL?: string | undefined;
2388
- readonly newUserCallbackURL?: string | undefined;
2389
- readonly errorCallbackURL?: string | undefined;
2390
- readonly provider: string;
2391
- readonly disableRedirect?: boolean | undefined;
2392
- readonly idToken?: {
2393
- readonly token: string;
2394
- readonly nonce?: string | undefined;
2395
- readonly accessToken?: string | undefined;
2396
- readonly refreshToken?: string | undefined;
2397
- readonly expiresAt?: number | undefined;
2398
- readonly user?: {
2399
- readonly name?: {
2400
- readonly firstName?: string | undefined;
2401
- readonly lastName?: string | undefined;
2402
- } | undefined;
2403
- readonly email?: string | undefined;
2404
- } | undefined;
2405
- } | undefined;
2406
- readonly scopes?: readonly string[] | undefined;
2407
- readonly requestSignUp?: boolean | undefined;
2408
- readonly loginHint?: string | undefined;
2409
- readonly additionalData?: {
2410
- readonly [x: string]: import("effect/Schema").Json;
2411
- } | undefined;
2412
- readonly oauth_query?: string | undefined;
2413
- };
2414
- readonly responseMode?: Mode;
2415
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2416
- readonly url?: string | undefined;
2417
- readonly redirect: boolean;
2418
- readonly token?: string | undefined;
2419
- readonly user?: {
2420
- readonly id: string;
2421
- readonly name: string;
2422
- readonly email: string;
2423
- readonly emailVerified: boolean;
2424
- readonly image: string | null;
2425
- readonly role: string | null;
2426
- readonly banned: boolean | null;
2427
- readonly banReason?: string | null | undefined;
2428
- readonly banExpires?: Date | null | undefined;
2429
- readonly twoFactorEnabled?: boolean | undefined;
2430
- readonly lastLoginMethod?: string | null | undefined;
2431
- readonly createdAt: Date;
2432
- readonly updatedAt: Date;
2433
- } | undefined;
2434
- readonly status?: boolean | undefined;
2435
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2436
- readonly signOut: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
2437
- readonly responseMode?: Mode;
2438
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
1993
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
1994
+ readonly signInEmail: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1995
+ readonly email: import("effect/Schema").String;
1996
+ readonly password: import("effect/Schema").String;
1997
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1998
+ readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1999
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2000
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
2001
+ readonly redirect: import("effect/Schema").Boolean;
2002
+ readonly token: import("effect/Schema").String;
2003
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2004
+ readonly user: import("effect/Schema").Struct<{
2005
+ readonly id: import("effect/Schema").String;
2006
+ readonly name: import("effect/Schema").String;
2007
+ readonly email: import("effect/Schema").String;
2008
+ readonly emailVerified: import("effect/Schema").Boolean;
2009
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2010
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2011
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2012
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2013
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
2014
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2015
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2016
+ readonly createdAt: import("effect/Schema").DateFromString;
2017
+ readonly updatedAt: import("effect/Schema").DateFromString;
2018
+ }>;
2019
+ }>, import("effect/Schema").Struct<{
2020
+ readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
2021
+ readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
2022
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2023
+ }>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2024
+ readonly signInEmailOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2025
+ readonly email: import("effect/Schema").String;
2026
+ readonly otp: import("effect/Schema").String;
2027
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
2028
+ readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
2029
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2030
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2031
+ readonly user: import("effect/Schema").Struct<{
2032
+ readonly id: import("effect/Schema").String;
2033
+ readonly name: import("effect/Schema").String;
2034
+ readonly email: import("effect/Schema").String;
2035
+ readonly emailVerified: import("effect/Schema").Boolean;
2036
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2037
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2038
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2039
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2040
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
2041
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2042
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2043
+ readonly createdAt: import("effect/Schema").DateFromString;
2044
+ readonly updatedAt: import("effect/Schema").DateFromString;
2045
+ }>;
2046
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2047
+ readonly signInSocial: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2048
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2049
+ readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2050
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2051
+ readonly provider: import("effect/Schema").String;
2052
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2053
+ readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
2054
+ readonly token: import("effect/Schema").String;
2055
+ readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
2056
+ readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
2057
+ readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
2058
+ readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
2059
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
2060
+ readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
2061
+ readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
2062
+ readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
2063
+ }>>;
2064
+ readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
2065
+ }>>;
2066
+ }>>;
2067
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2068
+ readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2069
+ readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
2070
+ readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
2071
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2072
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2073
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
2074
+ readonly redirect: import("effect/Schema").Boolean;
2075
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2076
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
2077
+ readonly id: import("effect/Schema").String;
2078
+ readonly name: import("effect/Schema").String;
2079
+ readonly email: import("effect/Schema").String;
2080
+ readonly emailVerified: import("effect/Schema").Boolean;
2081
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2082
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2083
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2084
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2085
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
2086
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2087
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2088
+ readonly createdAt: import("effect/Schema").DateFromString;
2089
+ readonly updatedAt: import("effect/Schema").DateFromString;
2090
+ }>>;
2091
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2092
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2093
+ readonly signOut: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2439
2094
  readonly success: import("effect/Schema").Boolean;
2440
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2441
- readonly twoFactorDisable: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2442
- readonly payload: {
2443
- readonly password?: string | undefined;
2444
- };
2445
- readonly responseMode?: Mode;
2446
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2095
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2096
+ readonly twoFactorDisable: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2097
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
2098
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2447
2099
  readonly status: import("effect/Schema").Boolean;
2448
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2449
- readonly twoFactorEnable: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2450
- readonly payload: {
2451
- readonly password?: string | undefined;
2452
- readonly issuer?: string | undefined;
2453
- };
2454
- readonly responseMode?: Mode;
2455
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2100
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2101
+ readonly twoFactorEnable: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2102
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
2103
+ readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
2104
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2456
2105
  readonly totpURI: import("effect/Schema").String;
2457
2106
  readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
2458
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2459
- readonly twoFactorSendOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2460
- readonly payload: {
2461
- readonly trustDevice?: boolean | undefined;
2462
- };
2463
- readonly responseMode?: Mode;
2464
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2107
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2108
+ readonly twoFactorSendOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2109
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2110
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2465
2111
  readonly status: import("effect/Schema").Boolean;
2466
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2467
- readonly twoFactorVerifyBackupCode: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2468
- readonly payload: {
2469
- readonly code: string;
2470
- readonly disableSession?: boolean | undefined;
2471
- readonly trustDevice?: boolean | undefined;
2472
- readonly oauth_query?: string | undefined;
2473
- };
2474
- readonly responseMode?: Mode;
2475
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2476
- readonly token?: string | undefined;
2477
- readonly user: {
2478
- readonly id: string;
2479
- readonly name: string;
2480
- readonly email: string;
2481
- readonly emailVerified: boolean;
2482
- readonly image: string | null;
2483
- readonly role: string | null;
2484
- readonly banned: boolean | null;
2485
- readonly banReason?: string | null | undefined;
2486
- readonly banExpires?: Date | null | undefined;
2487
- readonly twoFactorEnabled?: boolean | undefined;
2488
- readonly lastLoginMethod?: string | null | undefined;
2489
- readonly createdAt: Date;
2490
- readonly updatedAt: Date;
2491
- };
2492
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2493
- readonly twoFactorVerifyOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2494
- readonly payload: {
2495
- readonly code: string;
2496
- readonly trustDevice?: boolean | undefined;
2497
- readonly oauth_query?: string | undefined;
2498
- };
2499
- readonly responseMode?: Mode;
2500
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2501
- readonly token?: string | undefined;
2502
- readonly user: {
2503
- readonly id: string;
2504
- readonly name: string;
2505
- readonly email: string;
2506
- readonly emailVerified: boolean;
2507
- readonly image: string | null;
2508
- readonly role: string | null;
2509
- readonly banned: boolean | null;
2510
- readonly banReason?: string | null | undefined;
2511
- readonly banExpires?: Date | null | undefined;
2512
- readonly twoFactorEnabled?: boolean | undefined;
2513
- readonly lastLoginMethod?: string | null | undefined;
2514
- readonly createdAt: Date;
2515
- readonly updatedAt: Date;
2516
- };
2517
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2518
- readonly twoFactorVerifyTotp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2519
- readonly payload: {
2520
- readonly code: string;
2521
- readonly trustDevice?: boolean | undefined;
2522
- readonly oauth_query?: string | undefined;
2523
- };
2524
- readonly responseMode?: Mode;
2525
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2526
- readonly token?: string | undefined;
2527
- readonly user: {
2528
- readonly id: string;
2529
- readonly name: string;
2530
- readonly email: string;
2531
- readonly emailVerified: boolean;
2532
- readonly image: string | null;
2533
- readonly role: string | null;
2534
- readonly banned: boolean | null;
2535
- readonly banReason?: string | null | undefined;
2536
- readonly banExpires?: Date | null | undefined;
2537
- readonly twoFactorEnabled?: boolean | undefined;
2538
- readonly lastLoginMethod?: string | null | undefined;
2539
- readonly createdAt: Date;
2540
- readonly updatedAt: Date;
2541
- };
2542
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2543
- readonly unlinkAccount: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2544
- readonly payload: {
2545
- readonly providerId: string;
2546
- readonly accountId?: string | undefined;
2547
- };
2548
- readonly responseMode?: Mode;
2549
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2112
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2113
+ readonly twoFactorVerifyBackupCode: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2114
+ readonly code: import("effect/Schema").String;
2115
+ readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2116
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2117
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2118
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2119
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2120
+ readonly user: import("effect/Schema").Struct<{
2121
+ readonly id: import("effect/Schema").String;
2122
+ readonly name: import("effect/Schema").String;
2123
+ readonly email: import("effect/Schema").String;
2124
+ readonly emailVerified: import("effect/Schema").Boolean;
2125
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2126
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2127
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2128
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2129
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
2130
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2131
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2132
+ readonly createdAt: import("effect/Schema").DateFromString;
2133
+ readonly updatedAt: import("effect/Schema").DateFromString;
2134
+ }>;
2135
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2136
+ readonly twoFactorVerifyOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2137
+ readonly code: import("effect/Schema").String;
2138
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2139
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2140
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2141
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2142
+ readonly user: import("effect/Schema").Struct<{
2143
+ readonly id: import("effect/Schema").String;
2144
+ readonly name: import("effect/Schema").String;
2145
+ readonly email: import("effect/Schema").String;
2146
+ readonly emailVerified: import("effect/Schema").Boolean;
2147
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2148
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2149
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2150
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2151
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
2152
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2153
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2154
+ readonly createdAt: import("effect/Schema").DateFromString;
2155
+ readonly updatedAt: import("effect/Schema").DateFromString;
2156
+ }>;
2157
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2158
+ readonly twoFactorVerifyTotp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2159
+ readonly code: import("effect/Schema").String;
2160
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2161
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2162
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2163
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2164
+ readonly user: import("effect/Schema").Struct<{
2165
+ readonly id: import("effect/Schema").String;
2166
+ readonly name: import("effect/Schema").String;
2167
+ readonly email: import("effect/Schema").String;
2168
+ readonly emailVerified: import("effect/Schema").Boolean;
2169
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2170
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2171
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2172
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2173
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
2174
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2175
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2176
+ readonly createdAt: import("effect/Schema").DateFromString;
2177
+ readonly updatedAt: import("effect/Schema").DateFromString;
2178
+ }>;
2179
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2180
+ readonly unlinkAccount: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2181
+ readonly providerId: import("effect/Schema").String;
2182
+ readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
2183
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2550
2184
  readonly status: import("effect/Schema").Boolean;
2551
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2552
- readonly updateUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2553
- readonly payload: {
2554
- readonly name?: string | undefined;
2555
- readonly image?: string | null | undefined;
2556
- };
2557
- readonly responseMode?: Mode;
2558
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2185
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2186
+ readonly updateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2187
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
2188
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2189
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2559
2190
  readonly status: import("effect/Schema").Boolean;
2560
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2561
- readonly verifyEmailOtp: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2562
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
2563
- readonly email: import("effect/Schema").String;
2564
- readonly otp: import("effect/Schema").String;
2565
- }, "Type">;
2566
- readonly responseMode?: Mode;
2567
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2191
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2192
+ readonly verifyEmailOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2193
+ readonly email: import("effect/Schema").String;
2194
+ readonly otp: import("effect/Schema").String;
2195
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2568
2196
  readonly status: import("effect/Schema").Literal<true>;
2569
2197
  readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
2570
2198
  readonly user: import("effect/Schema").Struct<{
@@ -2582,90 +2210,79 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2582
2210
  readonly createdAt: import("effect/Schema").DateFromString;
2583
2211
  readonly updatedAt: import("effect/Schema").DateFromString;
2584
2212
  }>;
2585
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2213
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
2586
2214
  };
2587
2215
  authExtra: {
2588
- readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2589
- readonly payload: {
2590
- readonly configId: "organization" | "service" | "user";
2591
- readonly name?: string | undefined;
2592
- readonly organizationId?: string | undefined;
2593
- readonly permissions?: {
2594
- readonly [x: string]: readonly string[];
2595
- } | undefined;
2596
- readonly referrers?: readonly string[] | undefined;
2597
- };
2598
- readonly responseMode?: Mode;
2599
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2216
+ readonly createApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2217
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
2218
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2219
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2220
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2221
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2222
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2600
2223
  readonly id: import("effect/Schema").String;
2601
2224
  readonly key: import("effect/Schema").String;
2602
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2603
- readonly getOrganizationPublicProfile: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2604
- readonly query: {
2605
- readonly organizationId: string;
2606
- readonly locale?: "en" | "fr" | undefined;
2607
- };
2608
- readonly responseMode?: Mode;
2609
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2610
- readonly id: string;
2611
- readonly name: string;
2612
- readonly slug: string;
2613
- readonly displayName: string;
2614
- readonly contactEmail: string | null;
2615
- readonly emails?: readonly import("effect/Schema").Struct.ReadonlySide<{
2225
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
2226
+ readonly getOrganizationPublicProfile: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2227
+ readonly organizationId: import("effect/Schema").String;
2228
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
2229
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2230
+ readonly id: import("effect/Schema").String;
2231
+ readonly name: import("effect/Schema").String;
2232
+ readonly slug: import("effect/Schema").String;
2233
+ readonly displayName: import("effect/Schema").String;
2234
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
2235
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2616
2236
  readonly email: import("effect/Schema").NonEmptyString;
2617
2237
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2618
2238
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2619
2239
  readonly label: import("effect/Schema").NonEmptyString;
2620
2240
  }>>;
2621
- }, "Type">[] | undefined;
2622
- readonly phones?: readonly {
2623
- readonly number: string;
2624
- readonly extension?: string | undefined;
2625
- readonly translations: readonly import("effect/Schema").Struct.ReadonlySide<{
2241
+ }>>>;
2242
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2243
+ readonly number: import("effect/Schema").NonEmptyString;
2244
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
2245
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2626
2246
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2627
2247
  readonly label: import("effect/Schema").NonEmptyString;
2628
- }, "Type">[];
2629
- }[] | undefined;
2630
- readonly websites?: readonly import("effect/Schema").Struct.ReadonlySide<{
2248
+ }>>;
2249
+ }>>>;
2250
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2631
2251
  readonly url: import("effect/Schema").NonEmptyString;
2632
2252
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2633
2253
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2634
2254
  readonly label: import("effect/Schema").NonEmptyString;
2635
2255
  }>>;
2636
- }, "Type">[] | undefined;
2637
- readonly socials?: readonly import("effect/Schema").Struct.ReadonlySide<{
2256
+ }>>>;
2257
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2638
2258
  readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
2639
2259
  readonly url: import("effect/Schema").NonEmptyString;
2640
2260
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2641
2261
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2642
2262
  readonly label: import("effect/Schema").NonEmptyString;
2643
2263
  }>>;
2644
- }, "Type">[] | undefined;
2645
- readonly addresses?: readonly {
2646
- readonly streetAddress?: string | undefined;
2647
- readonly locality?: string | undefined;
2648
- readonly region?: string | undefined;
2649
- readonly postalCode?: string | undefined;
2650
- readonly country?: string | undefined;
2651
- readonly translations: readonly import("effect/Schema").Struct.ReadonlySide<{
2264
+ }>>>;
2265
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2266
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
2267
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
2268
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
2269
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
2270
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
2271
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2652
2272
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2653
2273
  readonly label: import("effect/Schema").NonEmptyString;
2654
- }, "Type">[];
2655
- readonly formatted: string;
2656
- }[] | undefined;
2657
- readonly logo: string | null;
2658
- readonly icon: string | null;
2659
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2660
- readonly getProjectPublicConfig: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2661
- readonly query: {
2662
- readonly projectId?: string | undefined;
2663
- readonly clientId?: string | undefined;
2664
- readonly host?: string | undefined;
2665
- readonly rootHost?: string | undefined;
2666
- };
2667
- readonly responseMode?: Mode;
2668
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2274
+ }>>;
2275
+ readonly formatted: import("effect/Schema").String;
2276
+ }>>>;
2277
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
2278
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
2279
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2280
+ readonly getProjectPublicConfig: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2281
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
2282
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
2283
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
2284
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
2285
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2669
2286
  readonly projectKey: import("effect/Schema").String;
2670
2287
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2671
2288
  readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -2677,45 +2294,32 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2677
2294
  readonly emailOtp: import("effect/Schema").Boolean;
2678
2295
  readonly google: import("effect/Schema").Boolean;
2679
2296
  }>;
2680
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2681
- readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2682
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
2683
- readonly newPassword: import("effect/Schema").NonEmptyString;
2684
- }, "Type">;
2685
- readonly responseMode?: Mode;
2686
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2297
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2298
+ readonly setPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2299
+ readonly newPassword: import("effect/Schema").NonEmptyString;
2300
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2687
2301
  readonly ok: import("effect/Schema").Boolean;
2688
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2689
- readonly updateApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2690
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
2691
- readonly keyId: import("effect/Schema").NonEmptyString;
2692
- }, "Type">;
2693
- readonly payload: {
2694
- readonly configId: "organization" | "service" | "user";
2695
- readonly name: string;
2696
- readonly enabled: boolean;
2697
- readonly permissions?: {
2698
- readonly [x: string]: readonly string[];
2699
- } | undefined;
2700
- readonly referrers?: readonly string[] | undefined;
2701
- };
2702
- readonly responseMode?: Mode;
2703
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2302
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
2303
+ readonly updateApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2304
+ keyId: import("effect/Schema").NonEmptyString;
2305
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2306
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
2307
+ readonly name: import("effect/Schema").NonEmptyString;
2308
+ readonly enabled: import("effect/Schema").Boolean;
2309
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2310
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2311
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2704
2312
  readonly ok: import("effect/Schema").Boolean;
2705
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2706
- readonly uploadUserImage: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2707
- readonly payload: FormData;
2708
- readonly responseMode?: Mode;
2709
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2313
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
2314
+ readonly uploadUserImage: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
2315
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
2316
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2710
2317
  readonly url: import("effect/Schema").String;
2711
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2712
- readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2713
- readonly payload: {
2714
- readonly key: string;
2715
- readonly configId?: "organization" | "service" | "user" | undefined;
2716
- };
2717
- readonly responseMode?: Mode;
2718
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2318
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
2319
+ readonly verifyApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2320
+ readonly key: import("effect/Schema").NonEmptyString;
2321
+ 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">]>>;
2322
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2719
2323
  readonly valid: import("effect/Schema").Boolean;
2720
2324
  readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2721
2325
  readonly message: import("effect/Schema").String;
@@ -2735,126 +2339,105 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2735
2339
  readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2736
2340
  readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
2737
2341
  }>>;
2738
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
2739
- readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2740
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
2741
- readonly password: import("effect/Schema").NonEmptyString;
2742
- }, "Type">;
2743
- readonly responseMode?: Mode;
2744
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2342
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
2343
+ readonly verifyPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2344
+ readonly password: import("effect/Schema").NonEmptyString;
2345
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2745
2346
  readonly ok: import("effect/Schema").Boolean;
2746
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema.js").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2347
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
2747
2348
  };
2748
2349
  domains: {
2749
- readonly createDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2750
- readonly payload: {
2751
- readonly hostname: string;
2752
- readonly rootHostname: string;
2753
- readonly projectId?: string | null | undefined;
2754
- readonly organizationId?: string | null | undefined;
2755
- readonly managed: boolean;
2756
- };
2757
- readonly responseMode?: Mode;
2758
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2759
- readonly id: string;
2760
- readonly hostname: string;
2761
- readonly rootHostname: string;
2762
- readonly projectId: string | null;
2763
- readonly projectName?: string | null | undefined;
2764
- readonly projectLogo?: string | null | undefined;
2765
- readonly organizationId: string | null;
2766
- readonly organizationName?: string | null | undefined;
2767
- readonly organizationLogo?: string | null | undefined;
2768
- readonly hostnameId: string;
2769
- readonly managed: boolean;
2770
- readonly active: boolean;
2771
- readonly createdAt: Date;
2772
- readonly updatedAt: Date;
2773
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2774
- readonly deleteDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2775
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
2776
- readonly id: import("effect/Schema").NonEmptyString;
2777
- }, "Type">;
2778
- readonly responseMode?: Mode;
2779
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2780
- readonly id: string;
2781
- readonly hostname: string;
2782
- readonly rootHostname: string;
2783
- readonly projectId: string | null;
2784
- readonly projectName?: string | null | undefined;
2785
- readonly projectLogo?: string | null | undefined;
2786
- readonly organizationId: string | null;
2787
- readonly organizationName?: string | null | undefined;
2788
- readonly organizationLogo?: string | null | undefined;
2789
- readonly hostnameId: string;
2790
- readonly managed: boolean;
2791
- readonly active: boolean;
2792
- readonly createdAt: Date;
2793
- readonly updatedAt: Date;
2794
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2795
- readonly getDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2796
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
2797
- readonly id: import("effect/Schema").NonEmptyString;
2798
- }, "Type">;
2799
- readonly responseMode?: Mode;
2800
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2801
- readonly id: string;
2802
- readonly hostname: string;
2803
- readonly rootHostname: string;
2804
- readonly projectId: string | null;
2805
- readonly projectName?: string | null | undefined;
2806
- readonly projectLogo?: string | null | undefined;
2807
- readonly organizationId: string | null;
2808
- readonly organizationName?: string | null | undefined;
2809
- readonly organizationLogo?: string | null | undefined;
2810
- readonly hostnameId: string;
2811
- readonly managed: boolean;
2812
- readonly active: boolean;
2813
- readonly createdAt: Date;
2814
- readonly updatedAt: Date;
2815
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2816
- readonly getDomainByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2817
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
2818
- readonly hostname: import("effect/Schema").NonEmptyString;
2819
- }, "Type">;
2820
- readonly responseMode?: Mode;
2821
- }) => Effect.Effect<HttpApiClient.Client.Response<{
2822
- readonly id: string;
2823
- readonly hostname: string;
2824
- readonly rootHostname: string;
2825
- readonly projectId: string | null;
2826
- readonly projectName?: string | null | undefined;
2827
- readonly projectLogo?: string | null | undefined;
2828
- readonly organizationId: string | null;
2829
- readonly organizationName?: string | null | undefined;
2830
- readonly organizationLogo?: string | null | undefined;
2831
- readonly hostnameId: string;
2832
- readonly managed: boolean;
2833
- readonly active: boolean;
2834
- readonly createdAt: Date;
2835
- readonly updatedAt: Date;
2836
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2837
- readonly getDomainRecords: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2838
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
2839
- readonly id: import("effect/Schema").NonEmptyString;
2840
- }, "Type">;
2841
- readonly responseMode?: Mode;
2842
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
2350
+ readonly createDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2351
+ readonly hostname: import("effect/Schema").NonEmptyString;
2352
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
2353
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2354
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2355
+ readonly managed: import("effect/Schema").Boolean;
2356
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2357
+ readonly id: import("effect/Schema").String;
2358
+ readonly hostname: import("effect/Schema").String;
2359
+ readonly rootHostname: import("effect/Schema").String;
2360
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2361
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2362
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2363
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2364
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2365
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2366
+ readonly hostnameId: import("effect/Schema").String;
2367
+ readonly managed: import("effect/Schema").Boolean;
2368
+ readonly active: import("effect/Schema").Boolean;
2369
+ readonly createdAt: import("effect/Schema").Date;
2370
+ readonly updatedAt: import("effect/Schema").Date;
2371
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2372
+ readonly deleteDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2373
+ readonly id: import("effect/Schema").NonEmptyString;
2374
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2375
+ readonly id: import("effect/Schema").String;
2376
+ readonly hostname: import("effect/Schema").String;
2377
+ readonly rootHostname: import("effect/Schema").String;
2378
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2379
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2380
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2381
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2382
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2383
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2384
+ readonly hostnameId: import("effect/Schema").String;
2385
+ readonly managed: import("effect/Schema").Boolean;
2386
+ readonly active: import("effect/Schema").Boolean;
2387
+ readonly createdAt: import("effect/Schema").Date;
2388
+ readonly updatedAt: import("effect/Schema").Date;
2389
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2390
+ readonly getDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2391
+ readonly id: import("effect/Schema").NonEmptyString;
2392
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2393
+ readonly id: import("effect/Schema").String;
2394
+ readonly hostname: import("effect/Schema").String;
2395
+ readonly rootHostname: import("effect/Schema").String;
2396
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2397
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2398
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2399
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2400
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2401
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2402
+ readonly hostnameId: import("effect/Schema").String;
2403
+ readonly managed: import("effect/Schema").Boolean;
2404
+ readonly active: import("effect/Schema").Boolean;
2405
+ readonly createdAt: import("effect/Schema").Date;
2406
+ readonly updatedAt: import("effect/Schema").Date;
2407
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2408
+ readonly getDomainByHost: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2409
+ readonly hostname: import("effect/Schema").NonEmptyString;
2410
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2411
+ readonly id: import("effect/Schema").String;
2412
+ readonly hostname: import("effect/Schema").String;
2413
+ readonly rootHostname: import("effect/Schema").String;
2414
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2415
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2416
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2417
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2418
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2419
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2420
+ readonly hostnameId: import("effect/Schema").String;
2421
+ readonly managed: import("effect/Schema").Boolean;
2422
+ readonly active: import("effect/Schema").Boolean;
2423
+ readonly createdAt: import("effect/Schema").Date;
2424
+ readonly updatedAt: import("effect/Schema").Date;
2425
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2426
+ readonly getDomainRecords: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2427
+ readonly id: import("effect/Schema").NonEmptyString;
2428
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2843
2429
  readonly required: import("effect/Schema").Boolean;
2844
2430
  readonly status: import("effect/Schema").String;
2845
2431
  readonly type: import("effect/Schema").String;
2846
2432
  readonly name: import("effect/Schema").String;
2847
2433
  readonly value: import("effect/Schema").String;
2848
- }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2434
+ }>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2849
2435
  };
2850
2436
  organizations: {
2851
- readonly getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2852
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
2853
- readonly organizationId: import("effect/Schema").NonEmptyString;
2854
- readonly userId: import("effect/Schema").NonEmptyString;
2855
- }, "Type">;
2856
- readonly responseMode?: Mode;
2857
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2437
+ readonly getActiveMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2438
+ readonly organizationId: import("effect/Schema").NonEmptyString;
2439
+ readonly userId: import("effect/Schema").NonEmptyString;
2440
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2858
2441
  readonly id: import("effect/Schema").String;
2859
2442
  readonly organizationId: import("effect/Schema").String;
2860
2443
  readonly userId: import("effect/Schema").String;
@@ -2872,13 +2455,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2872
2455
  readonly createdAt: import("effect/Schema").Date;
2873
2456
  readonly updatedAt: import("effect/Schema").Date;
2874
2457
  }>;
2875
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2876
- readonly getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2877
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
2878
- readonly id: import("effect/Schema").NonEmptyString;
2879
- }, "Type">;
2880
- readonly responseMode?: Mode;
2881
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2458
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2459
+ readonly getOrganization: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2460
+ readonly id: import("effect/Schema").NonEmptyString;
2461
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2882
2462
  readonly id: import("effect/Schema").String;
2883
2463
  readonly name: import("effect/Schema").String;
2884
2464
  readonly slug: import("effect/Schema").String;
@@ -2936,13 +2516,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2936
2516
  }>, import("effect/Schema").Unknown, never, never>>;
2937
2517
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
2938
2518
  readonly createdAt: import("effect/Schema").Date;
2939
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2940
- readonly getOrganizationChildren: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
2941
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
2942
- readonly organizationId: import("effect/Schema").NonEmptyString;
2943
- }, "Type">;
2944
- readonly responseMode?: Mode;
2945
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
2519
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2520
+ readonly getOrganizationChildren: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2521
+ readonly organizationId: import("effect/Schema").NonEmptyString;
2522
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2946
2523
  readonly id: import("effect/Schema").String;
2947
2524
  readonly name: import("effect/Schema").String;
2948
2525
  readonly slug: import("effect/Schema").String;
@@ -3000,13 +2577,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
3000
2577
  }>, import("effect/Schema").Unknown, never, never>>;
3001
2578
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
3002
2579
  readonly createdAt: import("effect/Schema").Date;
3003
- }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
3004
- readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
3005
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
3006
- readonly organizationId: import("effect/Schema").NonEmptyString;
3007
- }, "Type">;
3008
- readonly responseMode?: Mode;
3009
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
2580
+ }>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2581
+ readonly listOrganizationMembers: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2582
+ readonly organizationId: import("effect/Schema").NonEmptyString;
2583
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3010
2584
  readonly id: import("effect/Schema").String;
3011
2585
  readonly organizationId: import("effect/Schema").String;
3012
2586
  readonly userId: import("effect/Schema").String;
@@ -3024,14 +2598,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
3024
2598
  readonly createdAt: import("effect/Schema").Date;
3025
2599
  readonly updatedAt: import("effect/Schema").Date;
3026
2600
  }>;
3027
- }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
3028
- readonly listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
3029
- readonly query: {
3030
- readonly ids?: string | undefined;
3031
- readonly userId?: string | undefined;
3032
- };
3033
- readonly responseMode?: Mode;
3034
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2601
+ }>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2602
+ readonly listOrganizations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2603
+ readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2604
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2605
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3035
2606
  readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3036
2607
  readonly id: import("effect/Schema").String;
3037
2608
  readonly name: import("effect/Schema").String;
@@ -3092,40 +2663,31 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
3092
2663
  readonly createdAt: import("effect/Schema").Date;
3093
2664
  }>>;
3094
2665
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
3095
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2666
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
3096
2667
  };
3097
2668
  users: {
3098
- readonly getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
3099
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
3100
- readonly id: import("effect/Schema").NonEmptyString;
3101
- }, "Type">;
3102
- readonly responseMode?: Mode;
3103
- }) => Effect.Effect<HttpApiClient.Client.Response<{
3104
- readonly id: string;
3105
- readonly name: string;
3106
- readonly email: string;
3107
- readonly emailVerified: boolean;
3108
- readonly image: string | null;
3109
- readonly role: string | null;
3110
- readonly banned: boolean | null;
3111
- readonly lastLoginMethod?: string | null | undefined;
3112
- readonly createdAt: Date;
3113
- readonly updatedAt: Date;
3114
- }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
3115
- readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
3116
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
3117
- readonly userId: import("effect/Schema").NonEmptyString;
3118
- }, "Type">;
3119
- readonly responseMode?: Mode;
3120
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2669
+ readonly getUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2670
+ readonly id: import("effect/Schema").NonEmptyString;
2671
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2672
+ readonly id: import("effect/Schema").String;
2673
+ readonly name: import("effect/Schema").String;
2674
+ readonly email: import("effect/Schema").String;
2675
+ readonly emailVerified: import("effect/Schema").Boolean;
2676
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2677
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2678
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2679
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2680
+ readonly createdAt: import("effect/Schema").Date;
2681
+ readonly updatedAt: import("effect/Schema").Date;
2682
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2683
+ readonly getUserActiveOrganization: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2684
+ readonly userId: import("effect/Schema").NonEmptyString;
2685
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3121
2686
  readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
3122
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
3123
- readonly listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
3124
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
3125
- readonly ids: import("effect/Schema").NonEmptyString;
3126
- }, "Type">;
3127
- readonly responseMode?: Mode;
3128
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
2687
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
2688
+ readonly listUsersByIds: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2689
+ readonly ids: import("effect/Schema").NonEmptyString;
2690
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3129
2691
  readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3130
2692
  readonly id: import("effect/Schema").String;
3131
2693
  readonly name: import("effect/Schema").String;
@@ -3139,7 +2701,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
3139
2701
  readonly updatedAt: import("effect/Schema").Date;
3140
2702
  }>>;
3141
2703
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
3142
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
2704
+ }>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
3143
2705
  };
3144
2706
  }, never, AuthClientConfig | HttpClient.HttpClient>;
3145
2707
  };