@krak-stack/auth 0.1.45 → 0.1.47

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