@krak-stack/auth 0.1.39 → 0.1.41

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