@krak-stack/auth 0.1.25 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +252 -0
- package/dist/api.js +12 -0
- package/dist/better-auth/api.d.ts +4 -4
- package/dist/better-auth/api.js +1 -1
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/components/api-key.d.ts +4 -0
- package/dist/components/api-key.js +20 -0
- package/dist/components/auth-api-client.d.ts +252 -0
- package/dist/components/auth-api-client.js +29 -0
- package/dist/components/organization-switcher.d.ts +2 -0
- package/dist/components/organization-switcher.js +71 -71
- package/dist/components/user-button.js +26 -39
- package/dist/extra/api.d.ts +37 -37
- package/dist/extra/api.js +1 -1
- package/dist/extra/index.d.ts +22 -22
- package/dist/extra/index.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/server/api.d.ts +141 -133
- package/dist/server/api.js +3 -3
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/schema.d.ts +9 -1
- package/dist/server/schema.js +21 -1
- package/dist/service.d.ts +694 -0
- package/dist/service.js +67 -0
- package/package.json +11 -1
- package/dist/client.d.ts +0 -1352
- package/dist/client.js +0 -105
|
@@ -0,0 +1,694 @@
|
|
|
1
|
+
import { Context, Effect, Layer } from "effect";
|
|
2
|
+
import { HttpClient } from "effect/unstable/http";
|
|
3
|
+
import { HttpApiClient } from "effect/unstable/httpapi";
|
|
4
|
+
import { AuthClientConfig, type ClientConfig } from "./config";
|
|
5
|
+
export type AuthServiceLayerOptions = Partial<ClientConfig> & {
|
|
6
|
+
readonly headers?: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/auth/AuthService", {
|
|
9
|
+
auth: {
|
|
10
|
+
getSession: () => Effect.Effect<{
|
|
11
|
+
readonly session: {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly expiresAt: Date;
|
|
14
|
+
readonly token: string;
|
|
15
|
+
readonly createdAt: Date;
|
|
16
|
+
readonly updatedAt: Date;
|
|
17
|
+
readonly ipAddress?: string | null | undefined;
|
|
18
|
+
readonly userAgent?: string | null | undefined;
|
|
19
|
+
readonly userId: string;
|
|
20
|
+
readonly impersonatedBy?: string | null | undefined;
|
|
21
|
+
readonly activeOrganizationId?: string | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly user: {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly email: string;
|
|
27
|
+
readonly emailVerified: boolean;
|
|
28
|
+
readonly image: string | null;
|
|
29
|
+
readonly role: string | null;
|
|
30
|
+
readonly banned: boolean | null;
|
|
31
|
+
readonly createdAt: Date;
|
|
32
|
+
readonly updatedAt: Date;
|
|
33
|
+
};
|
|
34
|
+
} | null, unknown, never>;
|
|
35
|
+
};
|
|
36
|
+
authExtra: {
|
|
37
|
+
readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
38
|
+
readonly payload: {
|
|
39
|
+
readonly configId: "organization" | "service" | "user";
|
|
40
|
+
readonly name?: string | undefined;
|
|
41
|
+
readonly organizationId?: string | undefined;
|
|
42
|
+
readonly permissions?: {
|
|
43
|
+
readonly [x: string]: readonly string[];
|
|
44
|
+
} | undefined;
|
|
45
|
+
};
|
|
46
|
+
readonly responseMode?: Mode;
|
|
47
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
48
|
+
readonly id: string;
|
|
49
|
+
readonly key: string;
|
|
50
|
+
}, 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>;
|
|
51
|
+
readonly presign: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
52
|
+
readonly payload: {
|
|
53
|
+
readonly fileName: string;
|
|
54
|
+
readonly contentType: string;
|
|
55
|
+
};
|
|
56
|
+
readonly responseMode?: Mode;
|
|
57
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
58
|
+
readonly uploadUrl: string;
|
|
59
|
+
readonly url: string;
|
|
60
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Forbidden | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
61
|
+
readonly presignUserImageUpload: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
62
|
+
readonly payload: {
|
|
63
|
+
readonly fileName: string;
|
|
64
|
+
readonly contentType: string;
|
|
65
|
+
};
|
|
66
|
+
readonly responseMode?: Mode;
|
|
67
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
68
|
+
readonly uploadUrl: string;
|
|
69
|
+
readonly url: string;
|
|
70
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra").ExtraBadRequest | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
71
|
+
readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
72
|
+
readonly payload: {
|
|
73
|
+
readonly newPassword: string;
|
|
74
|
+
};
|
|
75
|
+
readonly responseMode?: Mode;
|
|
76
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
77
|
+
readonly ok: boolean;
|
|
78
|
+
}, 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>;
|
|
79
|
+
readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
80
|
+
readonly payload: {
|
|
81
|
+
readonly key: string;
|
|
82
|
+
readonly configId?: "organization" | "service" | "user" | undefined;
|
|
83
|
+
readonly permissions?: {
|
|
84
|
+
readonly [x: string]: readonly string[];
|
|
85
|
+
} | undefined;
|
|
86
|
+
};
|
|
87
|
+
readonly responseMode?: Mode;
|
|
88
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
89
|
+
readonly valid: boolean;
|
|
90
|
+
readonly error: {
|
|
91
|
+
readonly message: string;
|
|
92
|
+
readonly code: string;
|
|
93
|
+
} | null;
|
|
94
|
+
readonly key: {
|
|
95
|
+
readonly id: string;
|
|
96
|
+
readonly configId: string;
|
|
97
|
+
readonly name: string | null;
|
|
98
|
+
readonly start: string | null;
|
|
99
|
+
readonly prefix: string | null;
|
|
100
|
+
readonly referenceId: string;
|
|
101
|
+
readonly enabled: boolean | null;
|
|
102
|
+
readonly expiresAt: Date | null;
|
|
103
|
+
readonly createdAt: Date;
|
|
104
|
+
readonly updatedAt: Date;
|
|
105
|
+
readonly permissions: {
|
|
106
|
+
readonly [x: string]: readonly string[];
|
|
107
|
+
} | null;
|
|
108
|
+
readonly metadata: unknown;
|
|
109
|
+
} | null;
|
|
110
|
+
}, 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>;
|
|
111
|
+
readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
112
|
+
readonly payload: {
|
|
113
|
+
readonly password: string;
|
|
114
|
+
};
|
|
115
|
+
readonly responseMode?: Mode;
|
|
116
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
117
|
+
readonly ok: boolean;
|
|
118
|
+
}, 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>;
|
|
119
|
+
};
|
|
120
|
+
domains: {
|
|
121
|
+
readonly createDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
122
|
+
readonly payload: {
|
|
123
|
+
readonly hostname: string;
|
|
124
|
+
readonly rootHostname: string;
|
|
125
|
+
readonly projectId?: string | null | undefined;
|
|
126
|
+
readonly organizationId?: string | null | undefined;
|
|
127
|
+
readonly managed: boolean;
|
|
128
|
+
};
|
|
129
|
+
readonly responseMode?: Mode;
|
|
130
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
131
|
+
readonly id: string;
|
|
132
|
+
readonly hostname: string;
|
|
133
|
+
readonly rootHostname: string;
|
|
134
|
+
readonly projectId: string | null;
|
|
135
|
+
readonly organizationId: string | null;
|
|
136
|
+
readonly hostnameId: string;
|
|
137
|
+
readonly managed: boolean;
|
|
138
|
+
readonly active: boolean;
|
|
139
|
+
readonly createdAt: Date;
|
|
140
|
+
readonly updatedAt: Date;
|
|
141
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
142
|
+
readonly deleteDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
143
|
+
readonly params: {
|
|
144
|
+
readonly id: string;
|
|
145
|
+
};
|
|
146
|
+
readonly responseMode?: Mode;
|
|
147
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
148
|
+
readonly id: string;
|
|
149
|
+
readonly hostname: string;
|
|
150
|
+
readonly rootHostname: string;
|
|
151
|
+
readonly projectId: string | null;
|
|
152
|
+
readonly organizationId: string | null;
|
|
153
|
+
readonly hostnameId: string;
|
|
154
|
+
readonly managed: boolean;
|
|
155
|
+
readonly active: boolean;
|
|
156
|
+
readonly createdAt: Date;
|
|
157
|
+
readonly updatedAt: Date;
|
|
158
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
159
|
+
readonly getDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
160
|
+
readonly params: {
|
|
161
|
+
readonly id: string;
|
|
162
|
+
};
|
|
163
|
+
readonly responseMode?: Mode;
|
|
164
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
165
|
+
readonly id: string;
|
|
166
|
+
readonly hostname: string;
|
|
167
|
+
readonly rootHostname: string;
|
|
168
|
+
readonly projectId: string | null;
|
|
169
|
+
readonly organizationId: string | null;
|
|
170
|
+
readonly hostnameId: string;
|
|
171
|
+
readonly managed: boolean;
|
|
172
|
+
readonly active: boolean;
|
|
173
|
+
readonly createdAt: Date;
|
|
174
|
+
readonly updatedAt: Date;
|
|
175
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
176
|
+
readonly getDomainByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
177
|
+
readonly params: {
|
|
178
|
+
readonly hostname: string;
|
|
179
|
+
};
|
|
180
|
+
readonly responseMode?: Mode;
|
|
181
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
182
|
+
readonly id: string;
|
|
183
|
+
readonly hostname: string;
|
|
184
|
+
readonly rootHostname: string;
|
|
185
|
+
readonly projectId: string | null;
|
|
186
|
+
readonly organizationId: string | null;
|
|
187
|
+
readonly hostnameId: string;
|
|
188
|
+
readonly managed: boolean;
|
|
189
|
+
readonly active: boolean;
|
|
190
|
+
readonly createdAt: Date;
|
|
191
|
+
readonly updatedAt: Date;
|
|
192
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
193
|
+
readonly getDomainRecords: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
194
|
+
readonly params: {
|
|
195
|
+
readonly id: string;
|
|
196
|
+
};
|
|
197
|
+
readonly responseMode?: Mode;
|
|
198
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
199
|
+
readonly required: boolean;
|
|
200
|
+
readonly status: string;
|
|
201
|
+
readonly type: string;
|
|
202
|
+
readonly name: string;
|
|
203
|
+
readonly value: string;
|
|
204
|
+
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
205
|
+
};
|
|
206
|
+
organizations: {
|
|
207
|
+
readonly getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
208
|
+
readonly params: {
|
|
209
|
+
readonly organizationId: string;
|
|
210
|
+
readonly userId: string;
|
|
211
|
+
};
|
|
212
|
+
readonly responseMode?: Mode;
|
|
213
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
214
|
+
readonly id: string;
|
|
215
|
+
readonly organizationId: string;
|
|
216
|
+
readonly userId: string;
|
|
217
|
+
readonly role: string;
|
|
218
|
+
readonly createdAt: Date;
|
|
219
|
+
readonly user: {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
readonly name: string;
|
|
222
|
+
readonly email: string;
|
|
223
|
+
readonly emailVerified: boolean;
|
|
224
|
+
readonly image: string | null;
|
|
225
|
+
readonly role: string | null;
|
|
226
|
+
readonly banned: boolean | null;
|
|
227
|
+
readonly createdAt: Date;
|
|
228
|
+
readonly updatedAt: Date;
|
|
229
|
+
};
|
|
230
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
231
|
+
readonly getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
232
|
+
readonly params: {
|
|
233
|
+
readonly id: string;
|
|
234
|
+
};
|
|
235
|
+
readonly responseMode?: Mode;
|
|
236
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
237
|
+
readonly id: string;
|
|
238
|
+
readonly name: string;
|
|
239
|
+
readonly slug: string;
|
|
240
|
+
readonly logo: string | null;
|
|
241
|
+
readonly metadata: {
|
|
242
|
+
readonly translations: readonly {
|
|
243
|
+
readonly locale: "en" | "fr";
|
|
244
|
+
readonly name: string;
|
|
245
|
+
readonly logo?: string | null | undefined;
|
|
246
|
+
readonly icon?: string | null | undefined;
|
|
247
|
+
readonly contactEmail?: string | null | undefined;
|
|
248
|
+
readonly location?: string | null | undefined;
|
|
249
|
+
}[];
|
|
250
|
+
} | null;
|
|
251
|
+
readonly createdAt: Date;
|
|
252
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
253
|
+
readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
254
|
+
readonly params: {
|
|
255
|
+
readonly organizationId: string;
|
|
256
|
+
};
|
|
257
|
+
readonly responseMode?: Mode;
|
|
258
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
259
|
+
readonly id: string;
|
|
260
|
+
readonly organizationId: string;
|
|
261
|
+
readonly userId: string;
|
|
262
|
+
readonly role: string;
|
|
263
|
+
readonly createdAt: Date;
|
|
264
|
+
readonly user: {
|
|
265
|
+
readonly id: string;
|
|
266
|
+
readonly name: string;
|
|
267
|
+
readonly email: string;
|
|
268
|
+
readonly emailVerified: boolean;
|
|
269
|
+
readonly image: string | null;
|
|
270
|
+
readonly role: string | null;
|
|
271
|
+
readonly banned: boolean | null;
|
|
272
|
+
readonly createdAt: Date;
|
|
273
|
+
readonly updatedAt: Date;
|
|
274
|
+
};
|
|
275
|
+
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
276
|
+
readonly listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
277
|
+
readonly query: {
|
|
278
|
+
readonly ids?: string | undefined;
|
|
279
|
+
readonly userId?: string | undefined;
|
|
280
|
+
};
|
|
281
|
+
readonly responseMode?: Mode;
|
|
282
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
283
|
+
readonly data: readonly {
|
|
284
|
+
readonly id: string;
|
|
285
|
+
readonly name: string;
|
|
286
|
+
readonly slug: string;
|
|
287
|
+
readonly logo: string | null;
|
|
288
|
+
readonly metadata: {
|
|
289
|
+
readonly translations: readonly {
|
|
290
|
+
readonly locale: "en" | "fr";
|
|
291
|
+
readonly name: string;
|
|
292
|
+
readonly logo?: string | null | undefined;
|
|
293
|
+
readonly icon?: string | null | undefined;
|
|
294
|
+
readonly contactEmail?: string | null | undefined;
|
|
295
|
+
readonly location?: string | null | undefined;
|
|
296
|
+
}[];
|
|
297
|
+
} | null;
|
|
298
|
+
readonly createdAt: Date;
|
|
299
|
+
}[];
|
|
300
|
+
readonly missingIds: readonly string[];
|
|
301
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
302
|
+
};
|
|
303
|
+
users: {
|
|
304
|
+
readonly getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
305
|
+
readonly params: {
|
|
306
|
+
readonly id: string;
|
|
307
|
+
};
|
|
308
|
+
readonly responseMode?: Mode;
|
|
309
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
310
|
+
readonly id: string;
|
|
311
|
+
readonly name: string;
|
|
312
|
+
readonly email: string;
|
|
313
|
+
readonly emailVerified: boolean;
|
|
314
|
+
readonly image: string | null;
|
|
315
|
+
readonly role: string | null;
|
|
316
|
+
readonly banned: boolean | null;
|
|
317
|
+
readonly createdAt: Date;
|
|
318
|
+
readonly updatedAt: Date;
|
|
319
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
320
|
+
readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
321
|
+
readonly params: {
|
|
322
|
+
readonly userId: string;
|
|
323
|
+
};
|
|
324
|
+
readonly responseMode?: Mode;
|
|
325
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
326
|
+
readonly id: string | null;
|
|
327
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
328
|
+
readonly listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
329
|
+
readonly query: {
|
|
330
|
+
readonly ids: string;
|
|
331
|
+
};
|
|
332
|
+
readonly responseMode?: Mode;
|
|
333
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
334
|
+
readonly data: readonly {
|
|
335
|
+
readonly id: string;
|
|
336
|
+
readonly name: string;
|
|
337
|
+
readonly email: string;
|
|
338
|
+
readonly emailVerified: boolean;
|
|
339
|
+
readonly image: string | null;
|
|
340
|
+
readonly role: string | null;
|
|
341
|
+
readonly banned: boolean | null;
|
|
342
|
+
readonly createdAt: Date;
|
|
343
|
+
readonly updatedAt: Date;
|
|
344
|
+
}[];
|
|
345
|
+
readonly missingIds: readonly string[];
|
|
346
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
347
|
+
};
|
|
348
|
+
}> & {
|
|
349
|
+
readonly make: (headers?: Record<string, string>) => Effect.Effect<{
|
|
350
|
+
auth: {
|
|
351
|
+
getSession: () => Effect.Effect<{
|
|
352
|
+
readonly session: {
|
|
353
|
+
readonly id: string;
|
|
354
|
+
readonly expiresAt: Date;
|
|
355
|
+
readonly token: string;
|
|
356
|
+
readonly createdAt: Date;
|
|
357
|
+
readonly updatedAt: Date;
|
|
358
|
+
readonly ipAddress?: string | null | undefined;
|
|
359
|
+
readonly userAgent?: string | null | undefined;
|
|
360
|
+
readonly userId: string;
|
|
361
|
+
readonly impersonatedBy?: string | null | undefined;
|
|
362
|
+
readonly activeOrganizationId?: string | null | undefined;
|
|
363
|
+
};
|
|
364
|
+
readonly user: {
|
|
365
|
+
readonly id: string;
|
|
366
|
+
readonly name: string;
|
|
367
|
+
readonly email: string;
|
|
368
|
+
readonly emailVerified: boolean;
|
|
369
|
+
readonly image: string | null;
|
|
370
|
+
readonly role: string | null;
|
|
371
|
+
readonly banned: boolean | null;
|
|
372
|
+
readonly createdAt: Date;
|
|
373
|
+
readonly updatedAt: Date;
|
|
374
|
+
};
|
|
375
|
+
} | null, unknown, never>;
|
|
376
|
+
};
|
|
377
|
+
authExtra: {
|
|
378
|
+
readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
379
|
+
readonly payload: {
|
|
380
|
+
readonly configId: "organization" | "service" | "user";
|
|
381
|
+
readonly name?: string | undefined;
|
|
382
|
+
readonly organizationId?: string | undefined;
|
|
383
|
+
readonly permissions?: {
|
|
384
|
+
readonly [x: string]: readonly string[];
|
|
385
|
+
} | undefined;
|
|
386
|
+
};
|
|
387
|
+
readonly responseMode?: Mode;
|
|
388
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
389
|
+
readonly id: string;
|
|
390
|
+
readonly key: string;
|
|
391
|
+
}, 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>;
|
|
392
|
+
readonly presign: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
393
|
+
readonly payload: {
|
|
394
|
+
readonly fileName: string;
|
|
395
|
+
readonly contentType: string;
|
|
396
|
+
};
|
|
397
|
+
readonly responseMode?: Mode;
|
|
398
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
399
|
+
readonly uploadUrl: string;
|
|
400
|
+
readonly url: string;
|
|
401
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Forbidden | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
402
|
+
readonly presignUserImageUpload: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
403
|
+
readonly payload: {
|
|
404
|
+
readonly fileName: string;
|
|
405
|
+
readonly contentType: string;
|
|
406
|
+
};
|
|
407
|
+
readonly responseMode?: Mode;
|
|
408
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
409
|
+
readonly uploadUrl: string;
|
|
410
|
+
readonly url: string;
|
|
411
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra").ExtraBadRequest | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
412
|
+
readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
413
|
+
readonly payload: {
|
|
414
|
+
readonly newPassword: string;
|
|
415
|
+
};
|
|
416
|
+
readonly responseMode?: Mode;
|
|
417
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
418
|
+
readonly ok: boolean;
|
|
419
|
+
}, 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>;
|
|
420
|
+
readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
421
|
+
readonly payload: {
|
|
422
|
+
readonly key: string;
|
|
423
|
+
readonly configId?: "organization" | "service" | "user" | undefined;
|
|
424
|
+
readonly permissions?: {
|
|
425
|
+
readonly [x: string]: readonly string[];
|
|
426
|
+
} | undefined;
|
|
427
|
+
};
|
|
428
|
+
readonly responseMode?: Mode;
|
|
429
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
430
|
+
readonly valid: boolean;
|
|
431
|
+
readonly error: {
|
|
432
|
+
readonly message: string;
|
|
433
|
+
readonly code: string;
|
|
434
|
+
} | null;
|
|
435
|
+
readonly key: {
|
|
436
|
+
readonly id: string;
|
|
437
|
+
readonly configId: string;
|
|
438
|
+
readonly name: string | null;
|
|
439
|
+
readonly start: string | null;
|
|
440
|
+
readonly prefix: string | null;
|
|
441
|
+
readonly referenceId: string;
|
|
442
|
+
readonly enabled: boolean | null;
|
|
443
|
+
readonly expiresAt: Date | null;
|
|
444
|
+
readonly createdAt: Date;
|
|
445
|
+
readonly updatedAt: Date;
|
|
446
|
+
readonly permissions: {
|
|
447
|
+
readonly [x: string]: readonly string[];
|
|
448
|
+
} | null;
|
|
449
|
+
readonly metadata: unknown;
|
|
450
|
+
} | null;
|
|
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>;
|
|
452
|
+
readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
453
|
+
readonly payload: {
|
|
454
|
+
readonly password: string;
|
|
455
|
+
};
|
|
456
|
+
readonly responseMode?: Mode;
|
|
457
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
458
|
+
readonly ok: boolean;
|
|
459
|
+
}, 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>;
|
|
460
|
+
};
|
|
461
|
+
domains: {
|
|
462
|
+
readonly createDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
463
|
+
readonly payload: {
|
|
464
|
+
readonly hostname: string;
|
|
465
|
+
readonly rootHostname: string;
|
|
466
|
+
readonly projectId?: string | null | undefined;
|
|
467
|
+
readonly organizationId?: string | null | undefined;
|
|
468
|
+
readonly managed: boolean;
|
|
469
|
+
};
|
|
470
|
+
readonly responseMode?: Mode;
|
|
471
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
472
|
+
readonly id: string;
|
|
473
|
+
readonly hostname: string;
|
|
474
|
+
readonly rootHostname: string;
|
|
475
|
+
readonly projectId: string | null;
|
|
476
|
+
readonly organizationId: string | null;
|
|
477
|
+
readonly hostnameId: string;
|
|
478
|
+
readonly managed: boolean;
|
|
479
|
+
readonly active: boolean;
|
|
480
|
+
readonly createdAt: Date;
|
|
481
|
+
readonly updatedAt: Date;
|
|
482
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
483
|
+
readonly deleteDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
484
|
+
readonly params: {
|
|
485
|
+
readonly id: string;
|
|
486
|
+
};
|
|
487
|
+
readonly responseMode?: Mode;
|
|
488
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
489
|
+
readonly id: string;
|
|
490
|
+
readonly hostname: string;
|
|
491
|
+
readonly rootHostname: string;
|
|
492
|
+
readonly projectId: string | null;
|
|
493
|
+
readonly organizationId: string | null;
|
|
494
|
+
readonly hostnameId: string;
|
|
495
|
+
readonly managed: boolean;
|
|
496
|
+
readonly active: boolean;
|
|
497
|
+
readonly createdAt: Date;
|
|
498
|
+
readonly updatedAt: Date;
|
|
499
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
500
|
+
readonly getDomain: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
501
|
+
readonly params: {
|
|
502
|
+
readonly id: string;
|
|
503
|
+
};
|
|
504
|
+
readonly responseMode?: Mode;
|
|
505
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
506
|
+
readonly id: string;
|
|
507
|
+
readonly hostname: string;
|
|
508
|
+
readonly rootHostname: string;
|
|
509
|
+
readonly projectId: string | null;
|
|
510
|
+
readonly organizationId: string | null;
|
|
511
|
+
readonly hostnameId: string;
|
|
512
|
+
readonly managed: boolean;
|
|
513
|
+
readonly active: boolean;
|
|
514
|
+
readonly createdAt: Date;
|
|
515
|
+
readonly updatedAt: Date;
|
|
516
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
517
|
+
readonly getDomainByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
518
|
+
readonly params: {
|
|
519
|
+
readonly hostname: string;
|
|
520
|
+
};
|
|
521
|
+
readonly responseMode?: Mode;
|
|
522
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
523
|
+
readonly id: string;
|
|
524
|
+
readonly hostname: string;
|
|
525
|
+
readonly rootHostname: string;
|
|
526
|
+
readonly projectId: string | null;
|
|
527
|
+
readonly organizationId: string | null;
|
|
528
|
+
readonly hostnameId: string;
|
|
529
|
+
readonly managed: boolean;
|
|
530
|
+
readonly active: boolean;
|
|
531
|
+
readonly createdAt: Date;
|
|
532
|
+
readonly updatedAt: Date;
|
|
533
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
534
|
+
readonly getDomainRecords: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
535
|
+
readonly params: {
|
|
536
|
+
readonly id: string;
|
|
537
|
+
};
|
|
538
|
+
readonly responseMode?: Mode;
|
|
539
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
540
|
+
readonly required: boolean;
|
|
541
|
+
readonly status: string;
|
|
542
|
+
readonly type: string;
|
|
543
|
+
readonly name: string;
|
|
544
|
+
readonly value: string;
|
|
545
|
+
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
546
|
+
};
|
|
547
|
+
organizations: {
|
|
548
|
+
readonly getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
549
|
+
readonly params: {
|
|
550
|
+
readonly organizationId: string;
|
|
551
|
+
readonly userId: string;
|
|
552
|
+
};
|
|
553
|
+
readonly responseMode?: Mode;
|
|
554
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
555
|
+
readonly id: string;
|
|
556
|
+
readonly organizationId: string;
|
|
557
|
+
readonly userId: string;
|
|
558
|
+
readonly role: string;
|
|
559
|
+
readonly createdAt: Date;
|
|
560
|
+
readonly user: {
|
|
561
|
+
readonly id: string;
|
|
562
|
+
readonly name: string;
|
|
563
|
+
readonly email: string;
|
|
564
|
+
readonly emailVerified: boolean;
|
|
565
|
+
readonly image: string | null;
|
|
566
|
+
readonly role: string | null;
|
|
567
|
+
readonly banned: boolean | null;
|
|
568
|
+
readonly createdAt: Date;
|
|
569
|
+
readonly updatedAt: Date;
|
|
570
|
+
};
|
|
571
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
572
|
+
readonly getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
573
|
+
readonly params: {
|
|
574
|
+
readonly id: string;
|
|
575
|
+
};
|
|
576
|
+
readonly responseMode?: Mode;
|
|
577
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
578
|
+
readonly id: string;
|
|
579
|
+
readonly name: string;
|
|
580
|
+
readonly slug: string;
|
|
581
|
+
readonly logo: string | null;
|
|
582
|
+
readonly metadata: {
|
|
583
|
+
readonly translations: readonly {
|
|
584
|
+
readonly locale: "en" | "fr";
|
|
585
|
+
readonly name: string;
|
|
586
|
+
readonly logo?: string | null | undefined;
|
|
587
|
+
readonly icon?: string | null | undefined;
|
|
588
|
+
readonly contactEmail?: string | null | undefined;
|
|
589
|
+
readonly location?: string | null | undefined;
|
|
590
|
+
}[];
|
|
591
|
+
} | null;
|
|
592
|
+
readonly createdAt: Date;
|
|
593
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
594
|
+
readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
595
|
+
readonly params: {
|
|
596
|
+
readonly organizationId: string;
|
|
597
|
+
};
|
|
598
|
+
readonly responseMode?: Mode;
|
|
599
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
600
|
+
readonly id: string;
|
|
601
|
+
readonly organizationId: string;
|
|
602
|
+
readonly userId: string;
|
|
603
|
+
readonly role: string;
|
|
604
|
+
readonly createdAt: Date;
|
|
605
|
+
readonly user: {
|
|
606
|
+
readonly id: string;
|
|
607
|
+
readonly name: string;
|
|
608
|
+
readonly email: string;
|
|
609
|
+
readonly emailVerified: boolean;
|
|
610
|
+
readonly image: string | null;
|
|
611
|
+
readonly role: string | null;
|
|
612
|
+
readonly banned: boolean | null;
|
|
613
|
+
readonly createdAt: Date;
|
|
614
|
+
readonly updatedAt: Date;
|
|
615
|
+
};
|
|
616
|
+
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
617
|
+
readonly listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
618
|
+
readonly query: {
|
|
619
|
+
readonly ids?: string | undefined;
|
|
620
|
+
readonly userId?: string | undefined;
|
|
621
|
+
};
|
|
622
|
+
readonly responseMode?: Mode;
|
|
623
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
624
|
+
readonly data: readonly {
|
|
625
|
+
readonly id: string;
|
|
626
|
+
readonly name: string;
|
|
627
|
+
readonly slug: string;
|
|
628
|
+
readonly logo: string | null;
|
|
629
|
+
readonly metadata: {
|
|
630
|
+
readonly translations: readonly {
|
|
631
|
+
readonly locale: "en" | "fr";
|
|
632
|
+
readonly name: string;
|
|
633
|
+
readonly logo?: string | null | undefined;
|
|
634
|
+
readonly icon?: string | null | undefined;
|
|
635
|
+
readonly contactEmail?: string | null | undefined;
|
|
636
|
+
readonly location?: string | null | undefined;
|
|
637
|
+
}[];
|
|
638
|
+
} | null;
|
|
639
|
+
readonly createdAt: Date;
|
|
640
|
+
}[];
|
|
641
|
+
readonly missingIds: readonly string[];
|
|
642
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
643
|
+
};
|
|
644
|
+
users: {
|
|
645
|
+
readonly getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
646
|
+
readonly params: {
|
|
647
|
+
readonly id: string;
|
|
648
|
+
};
|
|
649
|
+
readonly responseMode?: Mode;
|
|
650
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
651
|
+
readonly id: string;
|
|
652
|
+
readonly name: string;
|
|
653
|
+
readonly email: string;
|
|
654
|
+
readonly emailVerified: boolean;
|
|
655
|
+
readonly image: string | null;
|
|
656
|
+
readonly role: string | null;
|
|
657
|
+
readonly banned: boolean | null;
|
|
658
|
+
readonly createdAt: Date;
|
|
659
|
+
readonly updatedAt: Date;
|
|
660
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
661
|
+
readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
662
|
+
readonly params: {
|
|
663
|
+
readonly userId: string;
|
|
664
|
+
};
|
|
665
|
+
readonly responseMode?: Mode;
|
|
666
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
667
|
+
readonly id: string | null;
|
|
668
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
669
|
+
readonly listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
670
|
+
readonly query: {
|
|
671
|
+
readonly ids: string;
|
|
672
|
+
};
|
|
673
|
+
readonly responseMode?: Mode;
|
|
674
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
675
|
+
readonly data: readonly {
|
|
676
|
+
readonly id: string;
|
|
677
|
+
readonly name: string;
|
|
678
|
+
readonly email: string;
|
|
679
|
+
readonly emailVerified: boolean;
|
|
680
|
+
readonly image: string | null;
|
|
681
|
+
readonly role: string | null;
|
|
682
|
+
readonly banned: boolean | null;
|
|
683
|
+
readonly createdAt: Date;
|
|
684
|
+
readonly updatedAt: Date;
|
|
685
|
+
}[];
|
|
686
|
+
readonly missingIds: readonly string[];
|
|
687
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
688
|
+
};
|
|
689
|
+
}, never, AuthClientConfig | HttpClient.HttpClient>;
|
|
690
|
+
};
|
|
691
|
+
export declare class AuthService extends AuthService_base {
|
|
692
|
+
static readonly layer: (options?: AuthServiceLayerOptions) => Layer.Layer<AuthService, import("effect/Config").ConfigError, never>;
|
|
693
|
+
}
|
|
694
|
+
export {};
|