@krak-stack/auth 0.1.43 → 0.1.45

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
@@ -39,32 +39,68 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
39
39
  auth: {
40
40
  readonly getSession: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
41
41
  readonly responseMode?: Mode;
42
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
43
- readonly session: import("effect/Schema").Struct<{
44
- readonly id: import("effect/Schema").String;
45
- readonly expiresAt: import("effect/Schema").Date;
46
- readonly token: import("effect/Schema").String;
47
- readonly createdAt: import("effect/Schema").Date;
48
- readonly updatedAt: import("effect/Schema").Date;
49
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
50
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
51
- readonly userId: import("effect/Schema").String;
52
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
53
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
54
- }>;
55
- readonly user: import("effect/Schema").Struct<{
56
- readonly id: import("effect/Schema").String;
57
- readonly name: import("effect/Schema").String;
58
- readonly email: import("effect/Schema").String;
59
- readonly emailVerified: import("effect/Schema").Boolean;
60
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
61
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
62
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
63
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
64
- readonly createdAt: import("effect/Schema").Date;
65
- readonly updatedAt: import("effect/Schema").Date;
66
- }>;
67
- }, "Type"> | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | import("./better-auth/schema").TooManyRequests | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
42
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
43
+ readonly session: {
44
+ readonly id: string;
45
+ readonly expiresAt: Date;
46
+ readonly token: string;
47
+ readonly createdAt: Date;
48
+ readonly updatedAt: Date;
49
+ readonly ipAddress?: string | null | undefined;
50
+ readonly userAgent?: string | null | undefined;
51
+ readonly userId: string;
52
+ readonly impersonatedBy?: string | null | undefined;
53
+ readonly impersonatedByOrganizationId?: string | null | undefined;
54
+ readonly activeOrganizationId?: string | null | undefined;
55
+ };
56
+ readonly user: {
57
+ readonly id: string;
58
+ readonly name: string;
59
+ readonly email: string;
60
+ readonly emailVerified: boolean;
61
+ readonly image: string | null;
62
+ readonly role: string | null;
63
+ readonly banned: boolean | null;
64
+ readonly lastLoginMethod?: string | null | undefined;
65
+ readonly createdAt: Date;
66
+ readonly updatedAt: Date;
67
+ };
68
+ } | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | import("./better-auth/schema").TooManyRequests | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
69
+ readonly organizationImpersonateUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
70
+ readonly payload: {
71
+ readonly organizationId: string;
72
+ readonly actorUserId: string;
73
+ readonly targetUserId: string;
74
+ readonly expiresInSeconds?: number | undefined;
75
+ };
76
+ readonly responseMode?: Mode;
77
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
78
+ readonly session: {
79
+ readonly id: string;
80
+ readonly expiresAt: Date;
81
+ readonly token: string;
82
+ readonly createdAt: Date;
83
+ readonly updatedAt: Date;
84
+ readonly ipAddress?: string | null | undefined;
85
+ readonly userAgent?: string | null | undefined;
86
+ readonly userId: string;
87
+ readonly impersonatedBy?: string | null | undefined;
88
+ readonly impersonatedByOrganizationId?: string | null | undefined;
89
+ readonly activeOrganizationId?: string | null | undefined;
90
+ };
91
+ readonly user: {
92
+ readonly id: string;
93
+ readonly name: string;
94
+ readonly email: string;
95
+ readonly emailVerified: boolean;
96
+ readonly image: string | null;
97
+ readonly role: string | null;
98
+ readonly banned: boolean | null;
99
+ readonly lastLoginMethod?: string | null | undefined;
100
+ readonly createdAt: Date;
101
+ readonly updatedAt: Date;
102
+ };
103
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
68
104
  };
69
105
  authExtra: {
70
106
  readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
@@ -77,10 +113,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
77
113
  } | undefined;
78
114
  };
79
115
  readonly responseMode?: Mode;
80
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
81
- readonly id: import("effect/Schema").String;
82
- readonly key: import("effect/Schema").String;
83
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
116
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
117
+ readonly id: string;
118
+ readonly key: string;
119
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
84
120
  readonly getProjectPublicConfig: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
85
121
  readonly query: {
86
122
  readonly projectId?: string | undefined;
@@ -89,35 +125,35 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
89
125
  readonly rootHost?: string | undefined;
90
126
  };
91
127
  readonly responseMode?: Mode;
92
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
93
- readonly projectKey: import("effect/Schema").String;
94
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
95
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
96
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
97
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
98
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
99
- readonly authOptions: import("effect/Schema").Struct<{
100
- readonly emailPassword: import("effect/Schema").Boolean;
101
- readonly emailOtp: import("effect/Schema").Boolean;
102
- readonly google: import("effect/Schema").Boolean;
103
- readonly signUp: import("effect/Schema").Boolean;
104
- readonly signUpName: import("effect/Schema").Boolean;
105
- }>;
106
- }, "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>;
128
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
129
+ readonly projectKey: string;
130
+ readonly name: string | null;
131
+ readonly logoUrl: string | null;
132
+ readonly authDomain: string | null;
133
+ readonly rootDomain: string | null;
134
+ readonly themeCss: string | null;
135
+ readonly authOptions: {
136
+ readonly emailPassword: boolean;
137
+ readonly emailOtp: boolean;
138
+ readonly google: boolean;
139
+ readonly signUp: boolean;
140
+ readonly signUpName: boolean;
141
+ };
142
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
107
143
  readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
108
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
109
- readonly newPassword: import("effect/Schema").NonEmptyString;
110
- }, "Type">;
144
+ readonly payload: {
145
+ readonly newPassword: string;
146
+ };
111
147
  readonly responseMode?: Mode;
112
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
113
- readonly ok: import("effect/Schema").Boolean;
114
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
148
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
149
+ readonly ok: boolean;
150
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
115
151
  readonly uploadUserImage: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
116
152
  readonly payload: FormData;
117
153
  readonly responseMode?: Mode;
118
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
119
- readonly url: import("effect/Schema").String;
120
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
154
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
155
+ readonly url: string;
156
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
121
157
  readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
122
158
  readonly payload: {
123
159
  readonly key: string;
@@ -127,35 +163,37 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
127
163
  } | undefined;
128
164
  };
129
165
  readonly responseMode?: Mode;
130
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
131
- readonly valid: import("effect/Schema").Boolean;
132
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
133
- readonly message: import("effect/Schema").String;
134
- readonly code: import("effect/Schema").String;
135
- }>>;
136
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
137
- readonly id: import("effect/Schema").String;
138
- readonly configId: import("effect/Schema").String;
139
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
140
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
141
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
142
- readonly referenceId: import("effect/Schema").String;
143
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
144
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
145
- readonly createdAt: import("effect/Schema").Date;
146
- readonly updatedAt: import("effect/Schema").Date;
147
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
148
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
149
- }>>;
150
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
166
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
167
+ readonly valid: boolean;
168
+ readonly error: {
169
+ readonly message: string;
170
+ readonly code: string;
171
+ } | null;
172
+ readonly key: {
173
+ readonly id: string;
174
+ readonly configId: string;
175
+ readonly name: string | null;
176
+ readonly start: string | null;
177
+ readonly prefix: string | null;
178
+ readonly referenceId: string;
179
+ readonly enabled: boolean | null;
180
+ readonly expiresAt: Date | null;
181
+ readonly createdAt: Date;
182
+ readonly updatedAt: Date;
183
+ readonly permissions: {
184
+ readonly [x: string]: readonly string[];
185
+ } | null;
186
+ readonly metadata: unknown;
187
+ } | null;
188
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
151
189
  readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
152
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
153
- readonly password: import("effect/Schema").NonEmptyString;
154
- }, "Type">;
190
+ readonly payload: {
191
+ readonly password: string;
192
+ };
155
193
  readonly responseMode?: Mode;
156
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
157
- readonly ok: import("effect/Schema").Boolean;
158
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
194
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
195
+ readonly ok: boolean;
196
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
159
197
  };
160
198
  domains: {
161
199
  readonly createDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
@@ -184,9 +222,9 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
184
222
  readonly updatedAt: Date;
185
223
  }, 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>;
186
224
  readonly deleteDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
187
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
188
- readonly id: import("effect/Schema").NonEmptyString;
189
- }, "Type">;
225
+ readonly params: {
226
+ readonly id: string;
227
+ };
190
228
  readonly responseMode?: Mode;
191
229
  }) => Effect.Effect<HttpApiClient.Client.Response<{
192
230
  readonly id: string;
@@ -205,9 +243,9 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
205
243
  readonly updatedAt: Date;
206
244
  }, 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>;
207
245
  readonly getDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
208
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
209
- readonly id: import("effect/Schema").NonEmptyString;
210
- }, "Type">;
246
+ readonly params: {
247
+ readonly id: string;
248
+ };
211
249
  readonly responseMode?: Mode;
212
250
  }) => Effect.Effect<HttpApiClient.Client.Response<{
213
251
  readonly id: string;
@@ -226,9 +264,9 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
226
264
  readonly updatedAt: Date;
227
265
  }, 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>;
228
266
  readonly getDomainByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
229
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
230
- readonly hostname: import("effect/Schema").NonEmptyString;
231
- }, "Type">;
267
+ readonly params: {
268
+ readonly hostname: string;
269
+ };
232
270
  readonly responseMode?: Mode;
233
271
  }) => Effect.Effect<HttpApiClient.Client.Response<{
234
272
  readonly id: string;
@@ -247,122 +285,122 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
247
285
  readonly updatedAt: Date;
248
286
  }, 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>;
249
287
  readonly getDomainRecords: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
250
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
251
- readonly id: import("effect/Schema").NonEmptyString;
252
- }, "Type">;
288
+ readonly params: {
289
+ readonly id: string;
290
+ };
253
291
  readonly responseMode?: Mode;
254
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
255
- readonly required: import("effect/Schema").Boolean;
256
- readonly status: import("effect/Schema").String;
257
- readonly type: import("effect/Schema").String;
258
- readonly name: import("effect/Schema").String;
259
- readonly value: import("effect/Schema").String;
260
- }, "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>;
292
+ }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
293
+ readonly required: boolean;
294
+ readonly status: string;
295
+ readonly type: string;
296
+ readonly name: string;
297
+ readonly value: string;
298
+ }[], 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>;
261
299
  };
262
300
  organizations: {
263
301
  readonly getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
264
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
265
- readonly organizationId: import("effect/Schema").NonEmptyString;
266
- readonly userId: import("effect/Schema").NonEmptyString;
267
- }, "Type">;
302
+ readonly params: {
303
+ readonly organizationId: string;
304
+ readonly userId: string;
305
+ };
268
306
  readonly responseMode?: Mode;
269
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
270
- readonly id: import("effect/Schema").String;
271
- readonly organizationId: import("effect/Schema").String;
272
- readonly userId: import("effect/Schema").String;
273
- readonly role: import("effect/Schema").String;
274
- readonly createdAt: import("effect/Schema").Date;
275
- readonly user: import("effect/Schema").Struct<{
276
- readonly id: import("effect/Schema").String;
277
- readonly name: import("effect/Schema").String;
278
- readonly email: import("effect/Schema").String;
279
- readonly emailVerified: import("effect/Schema").Boolean;
280
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
281
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
282
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
283
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
284
- readonly createdAt: import("effect/Schema").Date;
285
- readonly updatedAt: import("effect/Schema").Date;
286
- }>;
287
- }, "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>;
307
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
308
+ readonly id: string;
309
+ readonly organizationId: string;
310
+ readonly userId: string;
311
+ readonly role: string;
312
+ readonly createdAt: Date;
313
+ readonly user: {
314
+ readonly id: string;
315
+ readonly name: string;
316
+ readonly email: string;
317
+ readonly emailVerified: boolean;
318
+ readonly image: string | null;
319
+ readonly role: string | null;
320
+ readonly banned: boolean | null;
321
+ readonly lastLoginMethod?: string | null | undefined;
322
+ readonly createdAt: Date;
323
+ readonly updatedAt: Date;
324
+ };
325
+ }, 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>;
288
326
  readonly getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
289
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
290
- readonly id: import("effect/Schema").NonEmptyString;
291
- }, "Type">;
327
+ readonly params: {
328
+ readonly id: string;
329
+ };
292
330
  readonly responseMode?: Mode;
293
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
294
- readonly id: import("effect/Schema").String;
295
- readonly name: import("effect/Schema").String;
296
- readonly slug: import("effect/Schema").String;
297
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
298
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
299
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
300
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
301
- readonly name: import("effect/Schema").String;
302
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
303
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
304
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
305
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
306
- }>>;
307
- }>>;
308
- readonly createdAt: import("effect/Schema").Date;
309
- }, "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>;
331
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
332
+ readonly id: string;
333
+ readonly name: string;
334
+ readonly slug: string;
335
+ readonly logo: string | null;
336
+ readonly metadata: {
337
+ readonly translations: readonly {
338
+ readonly locale: "en" | "fr";
339
+ readonly name: string;
340
+ readonly logo?: string | null | undefined;
341
+ readonly icon?: string | null | undefined;
342
+ readonly contactEmail?: string | null | undefined;
343
+ readonly location?: string | null | undefined;
344
+ }[];
345
+ } | null;
346
+ readonly createdAt: Date;
347
+ }, 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>;
310
348
  readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
311
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
312
- readonly organizationId: import("effect/Schema").NonEmptyString;
313
- }, "Type">;
349
+ readonly params: {
350
+ readonly organizationId: string;
351
+ };
314
352
  readonly responseMode?: Mode;
315
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
316
- readonly id: import("effect/Schema").String;
317
- readonly organizationId: import("effect/Schema").String;
318
- readonly userId: import("effect/Schema").String;
319
- readonly role: import("effect/Schema").String;
320
- readonly createdAt: import("effect/Schema").Date;
321
- readonly user: import("effect/Schema").Struct<{
322
- readonly id: import("effect/Schema").String;
323
- readonly name: import("effect/Schema").String;
324
- readonly email: import("effect/Schema").String;
325
- readonly emailVerified: import("effect/Schema").Boolean;
326
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
327
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
328
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
329
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
330
- readonly createdAt: import("effect/Schema").Date;
331
- readonly updatedAt: import("effect/Schema").Date;
332
- }>;
333
- }, "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>;
353
+ }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
354
+ readonly id: string;
355
+ readonly organizationId: string;
356
+ readonly userId: string;
357
+ readonly role: string;
358
+ readonly createdAt: Date;
359
+ readonly user: {
360
+ readonly id: string;
361
+ readonly name: string;
362
+ readonly email: string;
363
+ readonly emailVerified: boolean;
364
+ readonly image: string | null;
365
+ readonly role: string | null;
366
+ readonly banned: boolean | null;
367
+ readonly lastLoginMethod?: string | null | undefined;
368
+ readonly createdAt: Date;
369
+ readonly updatedAt: Date;
370
+ };
371
+ }[], 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>;
334
372
  readonly listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
335
373
  readonly query: {
336
374
  readonly ids?: string | undefined;
337
375
  readonly userId?: string | undefined;
338
376
  };
339
377
  readonly responseMode?: Mode;
340
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
341
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
342
- readonly id: import("effect/Schema").String;
343
- readonly name: import("effect/Schema").String;
344
- readonly slug: import("effect/Schema").String;
345
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
346
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
347
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
348
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
349
- readonly name: import("effect/Schema").String;
350
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
351
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
352
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
353
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
354
- }>>;
355
- }>>;
356
- readonly createdAt: import("effect/Schema").Date;
357
- }>>;
358
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
359
- }, "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>;
378
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
379
+ readonly data: readonly {
380
+ readonly id: string;
381
+ readonly name: string;
382
+ readonly slug: string;
383
+ readonly logo: string | null;
384
+ readonly metadata: {
385
+ readonly translations: readonly {
386
+ readonly locale: "en" | "fr";
387
+ readonly name: string;
388
+ readonly logo?: string | null | undefined;
389
+ readonly icon?: string | null | undefined;
390
+ readonly contactEmail?: string | null | undefined;
391
+ readonly location?: string | null | undefined;
392
+ }[];
393
+ } | null;
394
+ readonly createdAt: Date;
395
+ }[];
396
+ readonly missingIds: readonly string[];
397
+ }, 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>;
360
398
  };
361
399
  users: {
362
400
  readonly getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
363
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
364
- readonly id: import("effect/Schema").NonEmptyString;
365
- }, "Type">;
401
+ readonly params: {
402
+ readonly id: string;
403
+ };
366
404
  readonly responseMode?: Mode;
367
405
  }) => Effect.Effect<HttpApiClient.Client.Response<{
368
406
  readonly id: string;
@@ -377,33 +415,33 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
377
415
  readonly updatedAt: Date;
378
416
  }, 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>;
379
417
  readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
380
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
381
- readonly userId: import("effect/Schema").NonEmptyString;
382
- }, "Type">;
418
+ readonly params: {
419
+ readonly userId: string;
420
+ };
383
421
  readonly responseMode?: Mode;
384
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
385
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
386
- }, "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>;
422
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
423
+ readonly id: string | null;
424
+ }, 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>;
387
425
  readonly listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
388
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
389
- readonly ids: import("effect/Schema").NonEmptyString;
390
- }, "Type">;
426
+ readonly query: {
427
+ readonly ids: string;
428
+ };
391
429
  readonly responseMode?: Mode;
392
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
393
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
394
- readonly id: import("effect/Schema").String;
395
- readonly name: import("effect/Schema").String;
396
- readonly email: import("effect/Schema").String;
397
- readonly emailVerified: import("effect/Schema").Boolean;
398
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
399
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
400
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
401
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
402
- readonly createdAt: import("effect/Schema").Date;
403
- readonly updatedAt: import("effect/Schema").Date;
404
- }>>;
405
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
406
- }, "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>;
430
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
431
+ readonly data: readonly {
432
+ readonly id: string;
433
+ readonly name: string;
434
+ readonly email: string;
435
+ readonly emailVerified: boolean;
436
+ readonly image: string | null;
437
+ readonly role: string | null;
438
+ readonly banned: boolean | null;
439
+ readonly lastLoginMethod?: string | null | undefined;
440
+ readonly createdAt: Date;
441
+ readonly updatedAt: Date;
442
+ }[];
443
+ readonly missingIds: readonly string[];
444
+ }, 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>;
407
445
  };
408
446
  }> & {
409
447
  readonly make: (options?: AuthServiceLayerOptions) => Effect.Effect<{
@@ -415,32 +453,68 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
415
453
  auth: {
416
454
  readonly getSession: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
417
455
  readonly responseMode?: Mode;
418
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
419
- readonly session: import("effect/Schema").Struct<{
420
- readonly id: import("effect/Schema").String;
421
- readonly expiresAt: import("effect/Schema").Date;
422
- readonly token: import("effect/Schema").String;
423
- readonly createdAt: import("effect/Schema").Date;
424
- readonly updatedAt: import("effect/Schema").Date;
425
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
426
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
427
- readonly userId: import("effect/Schema").String;
428
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
429
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
430
- }>;
431
- readonly user: import("effect/Schema").Struct<{
432
- readonly id: import("effect/Schema").String;
433
- readonly name: import("effect/Schema").String;
434
- readonly email: import("effect/Schema").String;
435
- readonly emailVerified: import("effect/Schema").Boolean;
436
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
437
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
438
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
439
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
440
- readonly createdAt: import("effect/Schema").Date;
441
- readonly updatedAt: import("effect/Schema").Date;
442
- }>;
443
- }, "Type"> | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | import("./better-auth/schema").TooManyRequests | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
456
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
457
+ readonly session: {
458
+ readonly id: string;
459
+ readonly expiresAt: Date;
460
+ readonly token: string;
461
+ readonly createdAt: Date;
462
+ readonly updatedAt: Date;
463
+ readonly ipAddress?: string | null | undefined;
464
+ readonly userAgent?: string | null | undefined;
465
+ readonly userId: string;
466
+ readonly impersonatedBy?: string | null | undefined;
467
+ readonly impersonatedByOrganizationId?: string | null | undefined;
468
+ readonly activeOrganizationId?: string | null | undefined;
469
+ };
470
+ readonly user: {
471
+ readonly id: string;
472
+ readonly name: string;
473
+ readonly email: string;
474
+ readonly emailVerified: boolean;
475
+ readonly image: string | null;
476
+ readonly role: string | null;
477
+ readonly banned: boolean | null;
478
+ readonly lastLoginMethod?: string | null | undefined;
479
+ readonly createdAt: Date;
480
+ readonly updatedAt: Date;
481
+ };
482
+ } | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | import("./better-auth/schema").TooManyRequests | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
483
+ readonly organizationImpersonateUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
484
+ readonly payload: {
485
+ readonly organizationId: string;
486
+ readonly actorUserId: string;
487
+ readonly targetUserId: string;
488
+ readonly expiresInSeconds?: number | undefined;
489
+ };
490
+ readonly responseMode?: Mode;
491
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
492
+ readonly session: {
493
+ readonly id: string;
494
+ readonly expiresAt: Date;
495
+ readonly token: string;
496
+ readonly createdAt: Date;
497
+ readonly updatedAt: Date;
498
+ readonly ipAddress?: string | null | undefined;
499
+ readonly userAgent?: string | null | undefined;
500
+ readonly userId: string;
501
+ readonly impersonatedBy?: string | null | undefined;
502
+ readonly impersonatedByOrganizationId?: string | null | undefined;
503
+ readonly activeOrganizationId?: string | null | undefined;
504
+ };
505
+ readonly user: {
506
+ readonly id: string;
507
+ readonly name: string;
508
+ readonly email: string;
509
+ readonly emailVerified: boolean;
510
+ readonly image: string | null;
511
+ readonly role: string | null;
512
+ readonly banned: boolean | null;
513
+ readonly lastLoginMethod?: string | null | undefined;
514
+ readonly createdAt: Date;
515
+ readonly updatedAt: Date;
516
+ };
517
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.BadRequest | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
444
518
  };
445
519
  authExtra: {
446
520
  readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
@@ -453,10 +527,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
453
527
  } | undefined;
454
528
  };
455
529
  readonly responseMode?: Mode;
456
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
457
- readonly id: import("effect/Schema").String;
458
- readonly key: import("effect/Schema").String;
459
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
530
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
531
+ readonly id: string;
532
+ readonly key: string;
533
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
460
534
  readonly getProjectPublicConfig: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
461
535
  readonly query: {
462
536
  readonly projectId?: string | undefined;
@@ -465,35 +539,35 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
465
539
  readonly rootHost?: string | undefined;
466
540
  };
467
541
  readonly responseMode?: Mode;
468
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
469
- readonly projectKey: import("effect/Schema").String;
470
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
471
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
472
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
473
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
474
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
475
- readonly authOptions: import("effect/Schema").Struct<{
476
- readonly emailPassword: import("effect/Schema").Boolean;
477
- readonly emailOtp: import("effect/Schema").Boolean;
478
- readonly google: import("effect/Schema").Boolean;
479
- readonly signUp: import("effect/Schema").Boolean;
480
- readonly signUpName: import("effect/Schema").Boolean;
481
- }>;
482
- }, "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>;
542
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
543
+ readonly projectKey: string;
544
+ readonly name: string | null;
545
+ readonly logoUrl: string | null;
546
+ readonly authDomain: string | null;
547
+ readonly rootDomain: string | null;
548
+ readonly themeCss: string | null;
549
+ readonly authOptions: {
550
+ readonly emailPassword: boolean;
551
+ readonly emailOtp: boolean;
552
+ readonly google: boolean;
553
+ readonly signUp: boolean;
554
+ readonly signUpName: boolean;
555
+ };
556
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
483
557
  readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
484
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
485
- readonly newPassword: import("effect/Schema").NonEmptyString;
486
- }, "Type">;
558
+ readonly payload: {
559
+ readonly newPassword: string;
560
+ };
487
561
  readonly responseMode?: Mode;
488
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
489
- readonly ok: import("effect/Schema").Boolean;
490
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
562
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
563
+ readonly ok: boolean;
564
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
491
565
  readonly uploadUserImage: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
492
566
  readonly payload: FormData;
493
567
  readonly responseMode?: Mode;
494
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
495
- readonly url: import("effect/Schema").String;
496
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
568
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
569
+ readonly url: string;
570
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
497
571
  readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
498
572
  readonly payload: {
499
573
  readonly key: string;
@@ -503,35 +577,37 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
503
577
  } | undefined;
504
578
  };
505
579
  readonly responseMode?: Mode;
506
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
507
- readonly valid: import("effect/Schema").Boolean;
508
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
509
- readonly message: import("effect/Schema").String;
510
- readonly code: import("effect/Schema").String;
511
- }>>;
512
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
513
- readonly id: import("effect/Schema").String;
514
- readonly configId: import("effect/Schema").String;
515
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
516
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
517
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
518
- readonly referenceId: import("effect/Schema").String;
519
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
520
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
521
- readonly createdAt: import("effect/Schema").Date;
522
- readonly updatedAt: import("effect/Schema").Date;
523
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
524
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
525
- }>>;
526
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
580
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
581
+ readonly valid: boolean;
582
+ readonly error: {
583
+ readonly message: string;
584
+ readonly code: string;
585
+ } | null;
586
+ readonly key: {
587
+ readonly id: string;
588
+ readonly configId: string;
589
+ readonly name: string | null;
590
+ readonly start: string | null;
591
+ readonly prefix: string | null;
592
+ readonly referenceId: string;
593
+ readonly enabled: boolean | null;
594
+ readonly expiresAt: Date | null;
595
+ readonly createdAt: Date;
596
+ readonly updatedAt: Date;
597
+ readonly permissions: {
598
+ readonly [x: string]: readonly string[];
599
+ } | null;
600
+ readonly metadata: unknown;
601
+ } | null;
602
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
527
603
  readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
528
- readonly payload: import("effect/Schema").Struct.ReadonlySide<{
529
- readonly password: import("effect/Schema").NonEmptyString;
530
- }, "Type">;
604
+ readonly payload: {
605
+ readonly password: string;
606
+ };
531
607
  readonly responseMode?: Mode;
532
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
533
- readonly ok: import("effect/Schema").Boolean;
534
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
608
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
609
+ readonly ok: boolean;
610
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
535
611
  };
536
612
  domains: {
537
613
  readonly createDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
@@ -560,9 +636,9 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
560
636
  readonly updatedAt: Date;
561
637
  }, 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>;
562
638
  readonly deleteDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
563
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
564
- readonly id: import("effect/Schema").NonEmptyString;
565
- }, "Type">;
639
+ readonly params: {
640
+ readonly id: string;
641
+ };
566
642
  readonly responseMode?: Mode;
567
643
  }) => Effect.Effect<HttpApiClient.Client.Response<{
568
644
  readonly id: string;
@@ -581,9 +657,9 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
581
657
  readonly updatedAt: Date;
582
658
  }, 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>;
583
659
  readonly getDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
584
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
585
- readonly id: import("effect/Schema").NonEmptyString;
586
- }, "Type">;
660
+ readonly params: {
661
+ readonly id: string;
662
+ };
587
663
  readonly responseMode?: Mode;
588
664
  }) => Effect.Effect<HttpApiClient.Client.Response<{
589
665
  readonly id: string;
@@ -602,9 +678,9 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
602
678
  readonly updatedAt: Date;
603
679
  }, 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>;
604
680
  readonly getDomainByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
605
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
606
- readonly hostname: import("effect/Schema").NonEmptyString;
607
- }, "Type">;
681
+ readonly params: {
682
+ readonly hostname: string;
683
+ };
608
684
  readonly responseMode?: Mode;
609
685
  }) => Effect.Effect<HttpApiClient.Client.Response<{
610
686
  readonly id: string;
@@ -623,122 +699,122 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
623
699
  readonly updatedAt: Date;
624
700
  }, 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>;
625
701
  readonly getDomainRecords: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
626
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
627
- readonly id: import("effect/Schema").NonEmptyString;
628
- }, "Type">;
702
+ readonly params: {
703
+ readonly id: string;
704
+ };
629
705
  readonly responseMode?: Mode;
630
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
631
- readonly required: import("effect/Schema").Boolean;
632
- readonly status: import("effect/Schema").String;
633
- readonly type: import("effect/Schema").String;
634
- readonly name: import("effect/Schema").String;
635
- readonly value: import("effect/Schema").String;
636
- }, "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>;
706
+ }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
707
+ readonly required: boolean;
708
+ readonly status: string;
709
+ readonly type: string;
710
+ readonly name: string;
711
+ readonly value: string;
712
+ }[], 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>;
637
713
  };
638
714
  organizations: {
639
715
  readonly getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
640
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
641
- readonly organizationId: import("effect/Schema").NonEmptyString;
642
- readonly userId: import("effect/Schema").NonEmptyString;
643
- }, "Type">;
716
+ readonly params: {
717
+ readonly organizationId: string;
718
+ readonly userId: string;
719
+ };
644
720
  readonly responseMode?: Mode;
645
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
646
- readonly id: import("effect/Schema").String;
647
- readonly organizationId: import("effect/Schema").String;
648
- readonly userId: import("effect/Schema").String;
649
- readonly role: import("effect/Schema").String;
650
- readonly createdAt: import("effect/Schema").Date;
651
- readonly user: import("effect/Schema").Struct<{
652
- readonly id: import("effect/Schema").String;
653
- readonly name: import("effect/Schema").String;
654
- readonly email: import("effect/Schema").String;
655
- readonly emailVerified: import("effect/Schema").Boolean;
656
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
657
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
658
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
659
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
660
- readonly createdAt: import("effect/Schema").Date;
661
- readonly updatedAt: import("effect/Schema").Date;
662
- }>;
663
- }, "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>;
721
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
722
+ readonly id: string;
723
+ readonly organizationId: string;
724
+ readonly userId: string;
725
+ readonly role: string;
726
+ readonly createdAt: Date;
727
+ readonly user: {
728
+ readonly id: string;
729
+ readonly name: string;
730
+ readonly email: string;
731
+ readonly emailVerified: boolean;
732
+ readonly image: string | null;
733
+ readonly role: string | null;
734
+ readonly banned: boolean | null;
735
+ readonly lastLoginMethod?: string | null | undefined;
736
+ readonly createdAt: Date;
737
+ readonly updatedAt: Date;
738
+ };
739
+ }, 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>;
664
740
  readonly getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
665
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
666
- readonly id: import("effect/Schema").NonEmptyString;
667
- }, "Type">;
741
+ readonly params: {
742
+ readonly id: string;
743
+ };
668
744
  readonly responseMode?: Mode;
669
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
670
- readonly id: import("effect/Schema").String;
671
- readonly name: import("effect/Schema").String;
672
- readonly slug: import("effect/Schema").String;
673
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
674
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
675
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
676
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
677
- readonly name: import("effect/Schema").String;
678
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
679
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
680
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
681
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
682
- }>>;
683
- }>>;
684
- readonly createdAt: import("effect/Schema").Date;
685
- }, "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>;
745
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
746
+ readonly id: string;
747
+ readonly name: string;
748
+ readonly slug: string;
749
+ readonly logo: string | null;
750
+ readonly metadata: {
751
+ readonly translations: readonly {
752
+ readonly locale: "en" | "fr";
753
+ readonly name: string;
754
+ readonly logo?: string | null | undefined;
755
+ readonly icon?: string | null | undefined;
756
+ readonly contactEmail?: string | null | undefined;
757
+ readonly location?: string | null | undefined;
758
+ }[];
759
+ } | null;
760
+ readonly createdAt: Date;
761
+ }, 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>;
686
762
  readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
687
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
688
- readonly organizationId: import("effect/Schema").NonEmptyString;
689
- }, "Type">;
763
+ readonly params: {
764
+ readonly organizationId: string;
765
+ };
690
766
  readonly responseMode?: Mode;
691
- }) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
692
- readonly id: import("effect/Schema").String;
693
- readonly organizationId: import("effect/Schema").String;
694
- readonly userId: import("effect/Schema").String;
695
- readonly role: import("effect/Schema").String;
696
- readonly createdAt: import("effect/Schema").Date;
697
- readonly user: import("effect/Schema").Struct<{
698
- readonly id: import("effect/Schema").String;
699
- readonly name: import("effect/Schema").String;
700
- readonly email: import("effect/Schema").String;
701
- readonly emailVerified: import("effect/Schema").Boolean;
702
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
703
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
704
- readonly banned: import("effect/Schema").NullOr<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").Date;
707
- readonly updatedAt: import("effect/Schema").Date;
708
- }>;
709
- }, "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>;
767
+ }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
768
+ readonly id: string;
769
+ readonly organizationId: string;
770
+ readonly userId: string;
771
+ readonly role: string;
772
+ readonly createdAt: Date;
773
+ readonly user: {
774
+ readonly id: string;
775
+ readonly name: string;
776
+ readonly email: string;
777
+ readonly emailVerified: boolean;
778
+ readonly image: string | null;
779
+ readonly role: string | null;
780
+ readonly banned: boolean | null;
781
+ readonly lastLoginMethod?: string | null | undefined;
782
+ readonly createdAt: Date;
783
+ readonly updatedAt: Date;
784
+ };
785
+ }[], 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>;
710
786
  readonly listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
711
787
  readonly query: {
712
788
  readonly ids?: string | undefined;
713
789
  readonly userId?: string | undefined;
714
790
  };
715
791
  readonly responseMode?: Mode;
716
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
717
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
718
- readonly id: import("effect/Schema").String;
719
- readonly name: import("effect/Schema").String;
720
- readonly slug: import("effect/Schema").String;
721
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
722
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
723
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
724
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
725
- readonly name: import("effect/Schema").String;
726
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
727
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
728
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
729
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
730
- }>>;
731
- }>>;
732
- readonly createdAt: import("effect/Schema").Date;
733
- }>>;
734
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
735
- }, "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>;
792
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
793
+ readonly data: readonly {
794
+ readonly id: string;
795
+ readonly name: string;
796
+ readonly slug: string;
797
+ readonly logo: string | null;
798
+ readonly metadata: {
799
+ readonly translations: readonly {
800
+ readonly locale: "en" | "fr";
801
+ readonly name: string;
802
+ readonly logo?: string | null | undefined;
803
+ readonly icon?: string | null | undefined;
804
+ readonly contactEmail?: string | null | undefined;
805
+ readonly location?: string | null | undefined;
806
+ }[];
807
+ } | null;
808
+ readonly createdAt: Date;
809
+ }[];
810
+ readonly missingIds: readonly string[];
811
+ }, 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>;
736
812
  };
737
813
  users: {
738
814
  readonly getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
739
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
740
- readonly id: import("effect/Schema").NonEmptyString;
741
- }, "Type">;
815
+ readonly params: {
816
+ readonly id: string;
817
+ };
742
818
  readonly responseMode?: Mode;
743
819
  }) => Effect.Effect<HttpApiClient.Client.Response<{
744
820
  readonly id: string;
@@ -753,33 +829,33 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
753
829
  readonly updatedAt: Date;
754
830
  }, 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>;
755
831
  readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
756
- readonly params: import("effect/Schema").Struct.ReadonlySide<{
757
- readonly userId: import("effect/Schema").NonEmptyString;
758
- }, "Type">;
832
+ readonly params: {
833
+ readonly userId: string;
834
+ };
759
835
  readonly responseMode?: Mode;
760
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
761
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
762
- }, "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>;
836
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
837
+ readonly id: string | null;
838
+ }, 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>;
763
839
  readonly listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
764
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
765
- readonly ids: import("effect/Schema").NonEmptyString;
766
- }, "Type">;
840
+ readonly query: {
841
+ readonly ids: string;
842
+ };
767
843
  readonly responseMode?: Mode;
768
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
769
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
770
- readonly id: import("effect/Schema").String;
771
- readonly name: import("effect/Schema").String;
772
- readonly email: import("effect/Schema").String;
773
- readonly emailVerified: import("effect/Schema").Boolean;
774
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
775
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
776
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
777
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
778
- readonly createdAt: import("effect/Schema").Date;
779
- readonly updatedAt: import("effect/Schema").Date;
780
- }>>;
781
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
782
- }, "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>;
844
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
845
+ readonly data: readonly {
846
+ readonly id: string;
847
+ readonly name: string;
848
+ readonly email: string;
849
+ readonly emailVerified: boolean;
850
+ readonly image: string | null;
851
+ readonly role: string | null;
852
+ readonly banned: boolean | null;
853
+ readonly lastLoginMethod?: string | null | undefined;
854
+ readonly createdAt: Date;
855
+ readonly updatedAt: Date;
856
+ }[];
857
+ readonly missingIds: readonly string[];
858
+ }, 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>;
783
859
  };
784
860
  }, never, AuthClientConfig | HttpClient.HttpClient>;
785
861
  };