@krak-stack/auth 0.1.25 → 0.1.27
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/organization-switcher.d.ts +2 -0
- package/dist/components/organization-switcher.js +86 -60
- package/dist/components/user-button.js +14 -23
- 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 +181 -173
- 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
package/dist/client.d.ts
DELETED
|
@@ -1,1352 +0,0 @@
|
|
|
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 AuthClientLayerOptions = Partial<ClientConfig> & {
|
|
6
|
-
readonly headers?: Record<string, string>;
|
|
7
|
-
};
|
|
8
|
-
declare const AuthApiClients_base: Context.ServiceClass<AuthApiClients, "@krak-stack/auth/AuthApiClients", {
|
|
9
|
-
server: {
|
|
10
|
-
domains: {
|
|
11
|
-
create: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
12
|
-
readonly payload: {
|
|
13
|
-
readonly hostname: string;
|
|
14
|
-
readonly rootHostname: string;
|
|
15
|
-
readonly projectId?: string | null | undefined;
|
|
16
|
-
readonly organizationId?: string | null | undefined;
|
|
17
|
-
readonly managed?: boolean | undefined;
|
|
18
|
-
};
|
|
19
|
-
readonly responseMode?: Mode;
|
|
20
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
21
|
-
readonly id: string;
|
|
22
|
-
readonly hostname: string;
|
|
23
|
-
readonly rootHostname: string;
|
|
24
|
-
readonly projectId: string | null;
|
|
25
|
-
readonly organizationId: string | null;
|
|
26
|
-
readonly hostnameId: string;
|
|
27
|
-
readonly active: boolean;
|
|
28
|
-
readonly createdAt: Date;
|
|
29
|
-
readonly updatedAt: Date;
|
|
30
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
31
|
-
get: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
32
|
-
readonly params: {
|
|
33
|
-
readonly id: string;
|
|
34
|
-
};
|
|
35
|
-
readonly responseMode?: Mode;
|
|
36
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
37
|
-
readonly id: string;
|
|
38
|
-
readonly hostname: string;
|
|
39
|
-
readonly rootHostname: string;
|
|
40
|
-
readonly projectId: string | null;
|
|
41
|
-
readonly organizationId: string | null;
|
|
42
|
-
readonly hostnameId: string;
|
|
43
|
-
readonly active: boolean;
|
|
44
|
-
readonly createdAt: Date;
|
|
45
|
-
readonly updatedAt: Date;
|
|
46
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
47
|
-
getByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
48
|
-
readonly params: {
|
|
49
|
-
readonly hostname: string;
|
|
50
|
-
};
|
|
51
|
-
readonly responseMode?: Mode;
|
|
52
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
53
|
-
readonly id: string;
|
|
54
|
-
readonly hostname: string;
|
|
55
|
-
readonly rootHostname: string;
|
|
56
|
-
readonly projectId: string | null;
|
|
57
|
-
readonly organizationId: string | null;
|
|
58
|
-
readonly hostnameId: string;
|
|
59
|
-
readonly active: boolean;
|
|
60
|
-
readonly createdAt: Date;
|
|
61
|
-
readonly updatedAt: Date;
|
|
62
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
63
|
-
records: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
64
|
-
readonly params: {
|
|
65
|
-
readonly id: string;
|
|
66
|
-
};
|
|
67
|
-
readonly responseMode?: Mode;
|
|
68
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
69
|
-
readonly required: boolean;
|
|
70
|
-
readonly status: string;
|
|
71
|
-
readonly type: string;
|
|
72
|
-
readonly name: string;
|
|
73
|
-
readonly value: string;
|
|
74
|
-
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
75
|
-
delete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
76
|
-
readonly params: {
|
|
77
|
-
readonly id: string;
|
|
78
|
-
};
|
|
79
|
-
readonly responseMode?: Mode;
|
|
80
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
81
|
-
readonly id: string;
|
|
82
|
-
readonly hostname: string;
|
|
83
|
-
readonly rootHostname: string;
|
|
84
|
-
readonly projectId: string | null;
|
|
85
|
-
readonly organizationId: string | null;
|
|
86
|
-
readonly hostnameId: string;
|
|
87
|
-
readonly active: boolean;
|
|
88
|
-
readonly createdAt: Date;
|
|
89
|
-
readonly updatedAt: Date;
|
|
90
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
91
|
-
};
|
|
92
|
-
listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
93
|
-
readonly query: {
|
|
94
|
-
readonly ids?: string | undefined;
|
|
95
|
-
readonly userId?: string | undefined;
|
|
96
|
-
};
|
|
97
|
-
readonly responseMode?: Mode;
|
|
98
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
99
|
-
readonly data: readonly {
|
|
100
|
-
readonly id: string;
|
|
101
|
-
readonly name: string;
|
|
102
|
-
readonly slug: string;
|
|
103
|
-
readonly logo: string | null;
|
|
104
|
-
readonly metadata: {
|
|
105
|
-
readonly translations: readonly {
|
|
106
|
-
readonly locale: "en" | "fr";
|
|
107
|
-
readonly name: string;
|
|
108
|
-
readonly logo?: string | null | undefined;
|
|
109
|
-
readonly icon?: string | null | undefined;
|
|
110
|
-
readonly contactEmail?: string | null | undefined;
|
|
111
|
-
readonly location?: string | null | undefined;
|
|
112
|
-
}[];
|
|
113
|
-
} | null;
|
|
114
|
-
readonly createdAt: Date;
|
|
115
|
-
}[];
|
|
116
|
-
readonly missingIds: readonly string[];
|
|
117
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
118
|
-
getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
119
|
-
readonly params: {
|
|
120
|
-
readonly id: string;
|
|
121
|
-
};
|
|
122
|
-
readonly responseMode?: Mode;
|
|
123
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
124
|
-
readonly id: string;
|
|
125
|
-
readonly name: string;
|
|
126
|
-
readonly slug: string;
|
|
127
|
-
readonly logo: string | null;
|
|
128
|
-
readonly metadata: {
|
|
129
|
-
readonly translations: readonly {
|
|
130
|
-
readonly locale: "en" | "fr";
|
|
131
|
-
readonly name: string;
|
|
132
|
-
readonly logo?: string | null | undefined;
|
|
133
|
-
readonly icon?: string | null | undefined;
|
|
134
|
-
readonly contactEmail?: string | null | undefined;
|
|
135
|
-
readonly location?: string | null | undefined;
|
|
136
|
-
}[];
|
|
137
|
-
} | null;
|
|
138
|
-
readonly createdAt: Date;
|
|
139
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
140
|
-
getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
141
|
-
readonly params: {
|
|
142
|
-
readonly organizationId: string;
|
|
143
|
-
readonly userId: string;
|
|
144
|
-
};
|
|
145
|
-
readonly responseMode?: Mode;
|
|
146
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
147
|
-
readonly id: string;
|
|
148
|
-
readonly organizationId: string;
|
|
149
|
-
readonly userId: string;
|
|
150
|
-
readonly role: string;
|
|
151
|
-
readonly createdAt: Date;
|
|
152
|
-
readonly user: {
|
|
153
|
-
readonly id: string;
|
|
154
|
-
readonly name: string;
|
|
155
|
-
readonly email: string;
|
|
156
|
-
readonly emailVerified: boolean;
|
|
157
|
-
readonly image: string | null;
|
|
158
|
-
readonly role: string | null;
|
|
159
|
-
readonly banned: boolean | null;
|
|
160
|
-
readonly createdAt: Date;
|
|
161
|
-
readonly updatedAt: Date;
|
|
162
|
-
};
|
|
163
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
164
|
-
listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
165
|
-
readonly params: {
|
|
166
|
-
readonly organizationId: string;
|
|
167
|
-
};
|
|
168
|
-
readonly responseMode?: Mode;
|
|
169
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
170
|
-
readonly id: string;
|
|
171
|
-
readonly organizationId: string;
|
|
172
|
-
readonly userId: string;
|
|
173
|
-
readonly role: string;
|
|
174
|
-
readonly createdAt: Date;
|
|
175
|
-
readonly user: {
|
|
176
|
-
readonly id: string;
|
|
177
|
-
readonly name: string;
|
|
178
|
-
readonly email: string;
|
|
179
|
-
readonly emailVerified: boolean;
|
|
180
|
-
readonly image: string | null;
|
|
181
|
-
readonly role: string | null;
|
|
182
|
-
readonly banned: boolean | null;
|
|
183
|
-
readonly createdAt: Date;
|
|
184
|
-
readonly updatedAt: Date;
|
|
185
|
-
};
|
|
186
|
-
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
187
|
-
listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
188
|
-
readonly query: {
|
|
189
|
-
readonly ids: string;
|
|
190
|
-
};
|
|
191
|
-
readonly responseMode?: Mode;
|
|
192
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
193
|
-
readonly data: readonly {
|
|
194
|
-
readonly id: string;
|
|
195
|
-
readonly name: string;
|
|
196
|
-
readonly email: string;
|
|
197
|
-
readonly emailVerified: boolean;
|
|
198
|
-
readonly image: string | null;
|
|
199
|
-
readonly role: string | null;
|
|
200
|
-
readonly banned: boolean | null;
|
|
201
|
-
readonly createdAt: Date;
|
|
202
|
-
readonly updatedAt: Date;
|
|
203
|
-
}[];
|
|
204
|
-
readonly missingIds: readonly string[];
|
|
205
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
206
|
-
getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
207
|
-
readonly params: {
|
|
208
|
-
readonly id: string;
|
|
209
|
-
};
|
|
210
|
-
readonly responseMode?: Mode;
|
|
211
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
212
|
-
readonly id: string;
|
|
213
|
-
readonly name: string;
|
|
214
|
-
readonly email: string;
|
|
215
|
-
readonly emailVerified: boolean;
|
|
216
|
-
readonly image: string | null;
|
|
217
|
-
readonly role: string | null;
|
|
218
|
-
readonly banned: boolean | null;
|
|
219
|
-
readonly createdAt: Date;
|
|
220
|
-
readonly updatedAt: Date;
|
|
221
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
222
|
-
getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
223
|
-
readonly params: {
|
|
224
|
-
readonly userId: string;
|
|
225
|
-
};
|
|
226
|
-
readonly responseMode?: Mode;
|
|
227
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
228
|
-
readonly id: string | null;
|
|
229
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
230
|
-
};
|
|
231
|
-
extra: {
|
|
232
|
-
readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
233
|
-
readonly payload: {
|
|
234
|
-
readonly newPassword: string;
|
|
235
|
-
};
|
|
236
|
-
readonly responseMode?: Mode;
|
|
237
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
238
|
-
readonly ok: boolean;
|
|
239
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
240
|
-
readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
241
|
-
readonly payload: {
|
|
242
|
-
readonly password: string;
|
|
243
|
-
};
|
|
244
|
-
readonly responseMode?: Mode;
|
|
245
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
246
|
-
readonly ok: boolean;
|
|
247
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
248
|
-
readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
249
|
-
readonly payload: {
|
|
250
|
-
readonly configId: "user" | "organization" | "service";
|
|
251
|
-
readonly name?: string | undefined;
|
|
252
|
-
readonly organizationId?: string | undefined;
|
|
253
|
-
readonly permissions?: {
|
|
254
|
-
readonly [x: string]: readonly string[];
|
|
255
|
-
} | undefined;
|
|
256
|
-
};
|
|
257
|
-
readonly responseMode?: Mode;
|
|
258
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
259
|
-
readonly id: string;
|
|
260
|
-
readonly key: string;
|
|
261
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
262
|
-
readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
263
|
-
readonly payload: {
|
|
264
|
-
readonly key: string;
|
|
265
|
-
readonly configId?: "user" | "organization" | "service" | undefined;
|
|
266
|
-
readonly permissions?: {
|
|
267
|
-
readonly [x: string]: readonly string[];
|
|
268
|
-
} | undefined;
|
|
269
|
-
};
|
|
270
|
-
readonly responseMode?: Mode;
|
|
271
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
272
|
-
readonly valid: boolean;
|
|
273
|
-
readonly error: {
|
|
274
|
-
readonly message: string;
|
|
275
|
-
readonly code: string;
|
|
276
|
-
} | null;
|
|
277
|
-
readonly key: {
|
|
278
|
-
readonly id: string;
|
|
279
|
-
readonly configId: string;
|
|
280
|
-
readonly name: string | null;
|
|
281
|
-
readonly start: string | null;
|
|
282
|
-
readonly prefix: string | null;
|
|
283
|
-
readonly referenceId: string;
|
|
284
|
-
readonly enabled: boolean | null;
|
|
285
|
-
readonly expiresAt: Date | null;
|
|
286
|
-
readonly createdAt: Date;
|
|
287
|
-
readonly updatedAt: Date;
|
|
288
|
-
readonly permissions: {
|
|
289
|
-
readonly [x: string]: readonly string[];
|
|
290
|
-
} | null;
|
|
291
|
-
readonly metadata: unknown;
|
|
292
|
-
} | null;
|
|
293
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
294
|
-
readonly presignUserImageUpload: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
295
|
-
readonly payload: {
|
|
296
|
-
readonly fileName: string;
|
|
297
|
-
readonly contentType: string;
|
|
298
|
-
};
|
|
299
|
-
readonly responseMode?: Mode;
|
|
300
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
301
|
-
readonly uploadUrl: string;
|
|
302
|
-
readonly url: string;
|
|
303
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
304
|
-
readonly presign: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
305
|
-
readonly payload: {
|
|
306
|
-
readonly fileName: string;
|
|
307
|
-
readonly contentType: string;
|
|
308
|
-
};
|
|
309
|
-
readonly responseMode?: Mode;
|
|
310
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
311
|
-
readonly uploadUrl: string;
|
|
312
|
-
readonly url: string;
|
|
313
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").Forbidden | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
314
|
-
};
|
|
315
|
-
getSession: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
316
|
-
readonly responseMode?: Mode;
|
|
317
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
318
|
-
readonly session: {
|
|
319
|
-
readonly id: string;
|
|
320
|
-
readonly expiresAt: Date;
|
|
321
|
-
readonly token: string;
|
|
322
|
-
readonly createdAt: Date;
|
|
323
|
-
readonly updatedAt: Date;
|
|
324
|
-
readonly userId: string;
|
|
325
|
-
readonly ipAddress?: string | null | undefined;
|
|
326
|
-
readonly userAgent?: string | null | undefined;
|
|
327
|
-
readonly impersonatedBy?: string | null | undefined;
|
|
328
|
-
readonly activeOrganizationId?: string | null | undefined;
|
|
329
|
-
};
|
|
330
|
-
readonly user: {
|
|
331
|
-
readonly id: string;
|
|
332
|
-
readonly name: string;
|
|
333
|
-
readonly email: string;
|
|
334
|
-
readonly emailVerified: boolean;
|
|
335
|
-
readonly image: string | null;
|
|
336
|
-
readonly role: string | null;
|
|
337
|
-
readonly banned: boolean | null;
|
|
338
|
-
readonly createdAt: Date;
|
|
339
|
-
readonly updatedAt: Date;
|
|
340
|
-
};
|
|
341
|
-
} | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./better-auth").TooManyRequests | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").Forbidden | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
342
|
-
}> & {
|
|
343
|
-
readonly make: Effect.Effect<{
|
|
344
|
-
server: {
|
|
345
|
-
domains: {
|
|
346
|
-
create: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
347
|
-
readonly payload: {
|
|
348
|
-
readonly hostname: string;
|
|
349
|
-
readonly rootHostname: string;
|
|
350
|
-
readonly projectId?: string | null | undefined;
|
|
351
|
-
readonly organizationId?: string | null | undefined;
|
|
352
|
-
readonly managed?: boolean | undefined;
|
|
353
|
-
};
|
|
354
|
-
readonly responseMode?: Mode;
|
|
355
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
356
|
-
readonly id: string;
|
|
357
|
-
readonly hostname: string;
|
|
358
|
-
readonly rootHostname: string;
|
|
359
|
-
readonly projectId: string | null;
|
|
360
|
-
readonly organizationId: string | null;
|
|
361
|
-
readonly hostnameId: string;
|
|
362
|
-
readonly active: boolean;
|
|
363
|
-
readonly createdAt: Date;
|
|
364
|
-
readonly updatedAt: Date;
|
|
365
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
366
|
-
get: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
367
|
-
readonly params: {
|
|
368
|
-
readonly id: string;
|
|
369
|
-
};
|
|
370
|
-
readonly responseMode?: Mode;
|
|
371
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
372
|
-
readonly id: string;
|
|
373
|
-
readonly hostname: string;
|
|
374
|
-
readonly rootHostname: string;
|
|
375
|
-
readonly projectId: string | null;
|
|
376
|
-
readonly organizationId: string | null;
|
|
377
|
-
readonly hostnameId: string;
|
|
378
|
-
readonly active: boolean;
|
|
379
|
-
readonly createdAt: Date;
|
|
380
|
-
readonly updatedAt: Date;
|
|
381
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
382
|
-
getByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
383
|
-
readonly params: {
|
|
384
|
-
readonly hostname: string;
|
|
385
|
-
};
|
|
386
|
-
readonly responseMode?: Mode;
|
|
387
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
388
|
-
readonly id: string;
|
|
389
|
-
readonly hostname: string;
|
|
390
|
-
readonly rootHostname: string;
|
|
391
|
-
readonly projectId: string | null;
|
|
392
|
-
readonly organizationId: string | null;
|
|
393
|
-
readonly hostnameId: string;
|
|
394
|
-
readonly active: boolean;
|
|
395
|
-
readonly createdAt: Date;
|
|
396
|
-
readonly updatedAt: Date;
|
|
397
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
398
|
-
records: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
399
|
-
readonly params: {
|
|
400
|
-
readonly id: string;
|
|
401
|
-
};
|
|
402
|
-
readonly responseMode?: Mode;
|
|
403
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
404
|
-
readonly required: boolean;
|
|
405
|
-
readonly status: string;
|
|
406
|
-
readonly type: string;
|
|
407
|
-
readonly name: string;
|
|
408
|
-
readonly value: string;
|
|
409
|
-
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
410
|
-
delete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
411
|
-
readonly params: {
|
|
412
|
-
readonly id: string;
|
|
413
|
-
};
|
|
414
|
-
readonly responseMode?: Mode;
|
|
415
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
416
|
-
readonly id: string;
|
|
417
|
-
readonly hostname: string;
|
|
418
|
-
readonly rootHostname: string;
|
|
419
|
-
readonly projectId: string | null;
|
|
420
|
-
readonly organizationId: string | null;
|
|
421
|
-
readonly hostnameId: string;
|
|
422
|
-
readonly active: boolean;
|
|
423
|
-
readonly createdAt: Date;
|
|
424
|
-
readonly updatedAt: Date;
|
|
425
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
426
|
-
};
|
|
427
|
-
listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
428
|
-
readonly query: {
|
|
429
|
-
readonly ids?: string | undefined;
|
|
430
|
-
readonly userId?: string | undefined;
|
|
431
|
-
};
|
|
432
|
-
readonly responseMode?: Mode;
|
|
433
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
434
|
-
readonly data: readonly {
|
|
435
|
-
readonly id: string;
|
|
436
|
-
readonly name: string;
|
|
437
|
-
readonly slug: string;
|
|
438
|
-
readonly logo: string | null;
|
|
439
|
-
readonly metadata: {
|
|
440
|
-
readonly translations: readonly {
|
|
441
|
-
readonly locale: "en" | "fr";
|
|
442
|
-
readonly name: string;
|
|
443
|
-
readonly logo?: string | null | undefined;
|
|
444
|
-
readonly icon?: string | null | undefined;
|
|
445
|
-
readonly contactEmail?: string | null | undefined;
|
|
446
|
-
readonly location?: string | null | undefined;
|
|
447
|
-
}[];
|
|
448
|
-
} | null;
|
|
449
|
-
readonly createdAt: Date;
|
|
450
|
-
}[];
|
|
451
|
-
readonly missingIds: readonly string[];
|
|
452
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
453
|
-
getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
454
|
-
readonly params: {
|
|
455
|
-
readonly id: string;
|
|
456
|
-
};
|
|
457
|
-
readonly responseMode?: Mode;
|
|
458
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
459
|
-
readonly id: string;
|
|
460
|
-
readonly name: string;
|
|
461
|
-
readonly slug: string;
|
|
462
|
-
readonly logo: string | null;
|
|
463
|
-
readonly metadata: {
|
|
464
|
-
readonly translations: readonly {
|
|
465
|
-
readonly locale: "en" | "fr";
|
|
466
|
-
readonly name: string;
|
|
467
|
-
readonly logo?: string | null | undefined;
|
|
468
|
-
readonly icon?: string | null | undefined;
|
|
469
|
-
readonly contactEmail?: string | null | undefined;
|
|
470
|
-
readonly location?: string | null | undefined;
|
|
471
|
-
}[];
|
|
472
|
-
} | null;
|
|
473
|
-
readonly createdAt: Date;
|
|
474
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
475
|
-
getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
476
|
-
readonly params: {
|
|
477
|
-
readonly organizationId: string;
|
|
478
|
-
readonly userId: string;
|
|
479
|
-
};
|
|
480
|
-
readonly responseMode?: Mode;
|
|
481
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
482
|
-
readonly id: string;
|
|
483
|
-
readonly organizationId: string;
|
|
484
|
-
readonly userId: string;
|
|
485
|
-
readonly role: string;
|
|
486
|
-
readonly createdAt: Date;
|
|
487
|
-
readonly user: {
|
|
488
|
-
readonly id: string;
|
|
489
|
-
readonly name: string;
|
|
490
|
-
readonly email: string;
|
|
491
|
-
readonly emailVerified: boolean;
|
|
492
|
-
readonly image: string | null;
|
|
493
|
-
readonly role: string | null;
|
|
494
|
-
readonly banned: boolean | null;
|
|
495
|
-
readonly createdAt: Date;
|
|
496
|
-
readonly updatedAt: Date;
|
|
497
|
-
};
|
|
498
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
499
|
-
listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
500
|
-
readonly params: {
|
|
501
|
-
readonly organizationId: string;
|
|
502
|
-
};
|
|
503
|
-
readonly responseMode?: Mode;
|
|
504
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
505
|
-
readonly id: string;
|
|
506
|
-
readonly organizationId: string;
|
|
507
|
-
readonly userId: string;
|
|
508
|
-
readonly role: string;
|
|
509
|
-
readonly createdAt: Date;
|
|
510
|
-
readonly user: {
|
|
511
|
-
readonly id: string;
|
|
512
|
-
readonly name: string;
|
|
513
|
-
readonly email: string;
|
|
514
|
-
readonly emailVerified: boolean;
|
|
515
|
-
readonly image: string | null;
|
|
516
|
-
readonly role: string | null;
|
|
517
|
-
readonly banned: boolean | null;
|
|
518
|
-
readonly createdAt: Date;
|
|
519
|
-
readonly updatedAt: Date;
|
|
520
|
-
};
|
|
521
|
-
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
522
|
-
listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
523
|
-
readonly query: {
|
|
524
|
-
readonly ids: string;
|
|
525
|
-
};
|
|
526
|
-
readonly responseMode?: Mode;
|
|
527
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
528
|
-
readonly data: readonly {
|
|
529
|
-
readonly id: string;
|
|
530
|
-
readonly name: string;
|
|
531
|
-
readonly email: string;
|
|
532
|
-
readonly emailVerified: boolean;
|
|
533
|
-
readonly image: string | null;
|
|
534
|
-
readonly role: string | null;
|
|
535
|
-
readonly banned: boolean | null;
|
|
536
|
-
readonly createdAt: Date;
|
|
537
|
-
readonly updatedAt: Date;
|
|
538
|
-
}[];
|
|
539
|
-
readonly missingIds: readonly string[];
|
|
540
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
541
|
-
getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
542
|
-
readonly params: {
|
|
543
|
-
readonly id: string;
|
|
544
|
-
};
|
|
545
|
-
readonly responseMode?: Mode;
|
|
546
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
547
|
-
readonly id: string;
|
|
548
|
-
readonly name: string;
|
|
549
|
-
readonly email: string;
|
|
550
|
-
readonly emailVerified: boolean;
|
|
551
|
-
readonly image: string | null;
|
|
552
|
-
readonly role: string | null;
|
|
553
|
-
readonly banned: boolean | null;
|
|
554
|
-
readonly createdAt: Date;
|
|
555
|
-
readonly updatedAt: Date;
|
|
556
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
557
|
-
getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
558
|
-
readonly params: {
|
|
559
|
-
readonly userId: string;
|
|
560
|
-
};
|
|
561
|
-
readonly responseMode?: Mode;
|
|
562
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
563
|
-
readonly id: string | null;
|
|
564
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
565
|
-
};
|
|
566
|
-
extra: {
|
|
567
|
-
readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
568
|
-
readonly payload: {
|
|
569
|
-
readonly newPassword: string;
|
|
570
|
-
};
|
|
571
|
-
readonly responseMode?: Mode;
|
|
572
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
573
|
-
readonly ok: boolean;
|
|
574
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
575
|
-
readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
576
|
-
readonly payload: {
|
|
577
|
-
readonly password: string;
|
|
578
|
-
};
|
|
579
|
-
readonly responseMode?: Mode;
|
|
580
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
581
|
-
readonly ok: boolean;
|
|
582
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
583
|
-
readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
584
|
-
readonly payload: {
|
|
585
|
-
readonly configId: "user" | "organization" | "service";
|
|
586
|
-
readonly name?: string | undefined;
|
|
587
|
-
readonly organizationId?: string | undefined;
|
|
588
|
-
readonly permissions?: {
|
|
589
|
-
readonly [x: string]: readonly string[];
|
|
590
|
-
} | undefined;
|
|
591
|
-
};
|
|
592
|
-
readonly responseMode?: Mode;
|
|
593
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
594
|
-
readonly id: string;
|
|
595
|
-
readonly key: string;
|
|
596
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
597
|
-
readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
598
|
-
readonly payload: {
|
|
599
|
-
readonly key: string;
|
|
600
|
-
readonly configId?: "user" | "organization" | "service" | undefined;
|
|
601
|
-
readonly permissions?: {
|
|
602
|
-
readonly [x: string]: readonly string[];
|
|
603
|
-
} | undefined;
|
|
604
|
-
};
|
|
605
|
-
readonly responseMode?: Mode;
|
|
606
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
607
|
-
readonly valid: boolean;
|
|
608
|
-
readonly error: {
|
|
609
|
-
readonly message: string;
|
|
610
|
-
readonly code: string;
|
|
611
|
-
} | null;
|
|
612
|
-
readonly key: {
|
|
613
|
-
readonly id: string;
|
|
614
|
-
readonly configId: string;
|
|
615
|
-
readonly name: string | null;
|
|
616
|
-
readonly start: string | null;
|
|
617
|
-
readonly prefix: string | null;
|
|
618
|
-
readonly referenceId: string;
|
|
619
|
-
readonly enabled: boolean | null;
|
|
620
|
-
readonly expiresAt: Date | null;
|
|
621
|
-
readonly createdAt: Date;
|
|
622
|
-
readonly updatedAt: Date;
|
|
623
|
-
readonly permissions: {
|
|
624
|
-
readonly [x: string]: readonly string[];
|
|
625
|
-
} | null;
|
|
626
|
-
readonly metadata: unknown;
|
|
627
|
-
} | null;
|
|
628
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
629
|
-
readonly presignUserImageUpload: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
630
|
-
readonly payload: {
|
|
631
|
-
readonly fileName: string;
|
|
632
|
-
readonly contentType: string;
|
|
633
|
-
};
|
|
634
|
-
readonly responseMode?: Mode;
|
|
635
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
636
|
-
readonly uploadUrl: string;
|
|
637
|
-
readonly url: string;
|
|
638
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
639
|
-
readonly presign: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
640
|
-
readonly payload: {
|
|
641
|
-
readonly fileName: string;
|
|
642
|
-
readonly contentType: string;
|
|
643
|
-
};
|
|
644
|
-
readonly responseMode?: Mode;
|
|
645
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
646
|
-
readonly uploadUrl: string;
|
|
647
|
-
readonly url: string;
|
|
648
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").Forbidden | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
649
|
-
};
|
|
650
|
-
getSession: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
651
|
-
readonly responseMode?: Mode;
|
|
652
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
653
|
-
readonly session: {
|
|
654
|
-
readonly id: string;
|
|
655
|
-
readonly expiresAt: Date;
|
|
656
|
-
readonly token: string;
|
|
657
|
-
readonly createdAt: Date;
|
|
658
|
-
readonly updatedAt: Date;
|
|
659
|
-
readonly userId: string;
|
|
660
|
-
readonly ipAddress?: string | null | undefined;
|
|
661
|
-
readonly userAgent?: string | null | undefined;
|
|
662
|
-
readonly impersonatedBy?: string | null | undefined;
|
|
663
|
-
readonly activeOrganizationId?: string | null | undefined;
|
|
664
|
-
};
|
|
665
|
-
readonly user: {
|
|
666
|
-
readonly id: string;
|
|
667
|
-
readonly name: string;
|
|
668
|
-
readonly email: string;
|
|
669
|
-
readonly emailVerified: boolean;
|
|
670
|
-
readonly image: string | null;
|
|
671
|
-
readonly role: string | null;
|
|
672
|
-
readonly banned: boolean | null;
|
|
673
|
-
readonly createdAt: Date;
|
|
674
|
-
readonly updatedAt: Date;
|
|
675
|
-
};
|
|
676
|
-
} | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./better-auth").TooManyRequests | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").Forbidden | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
677
|
-
}, never, AuthClientConfig | HttpClient.HttpClient>;
|
|
678
|
-
};
|
|
679
|
-
export declare class AuthApiClients extends AuthApiClients_base {
|
|
680
|
-
static readonly layer: (options?: AuthClientLayerOptions) => Layer.Layer<AuthApiClients, import("effect/Config").ConfigError, never>;
|
|
681
|
-
}
|
|
682
|
-
declare const AuthClient_base: Context.ServiceClass<AuthClient, "@krak-stack/auth/AuthClient", {
|
|
683
|
-
getSession: () => Effect.Effect<{
|
|
684
|
-
readonly session: {
|
|
685
|
-
readonly id: string;
|
|
686
|
-
readonly expiresAt: Date;
|
|
687
|
-
readonly token: string;
|
|
688
|
-
readonly createdAt: Date;
|
|
689
|
-
readonly updatedAt: Date;
|
|
690
|
-
readonly userId: string;
|
|
691
|
-
readonly ipAddress?: string | null | undefined;
|
|
692
|
-
readonly userAgent?: string | null | undefined;
|
|
693
|
-
readonly impersonatedBy?: string | null | undefined;
|
|
694
|
-
readonly activeOrganizationId?: string | null | undefined;
|
|
695
|
-
};
|
|
696
|
-
readonly user: {
|
|
697
|
-
readonly id: string;
|
|
698
|
-
readonly name: string;
|
|
699
|
-
readonly email: string;
|
|
700
|
-
readonly emailVerified: boolean;
|
|
701
|
-
readonly image: string | null;
|
|
702
|
-
readonly role: string | null;
|
|
703
|
-
readonly banned: boolean | null;
|
|
704
|
-
readonly createdAt: Date;
|
|
705
|
-
readonly updatedAt: Date;
|
|
706
|
-
};
|
|
707
|
-
} | null, unknown, never>;
|
|
708
|
-
server: {
|
|
709
|
-
domains: {
|
|
710
|
-
create: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
711
|
-
readonly payload: {
|
|
712
|
-
readonly hostname: string;
|
|
713
|
-
readonly rootHostname: string;
|
|
714
|
-
readonly projectId?: string | null | undefined;
|
|
715
|
-
readonly organizationId?: string | null | undefined;
|
|
716
|
-
readonly managed?: boolean | undefined;
|
|
717
|
-
};
|
|
718
|
-
readonly responseMode?: Mode;
|
|
719
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
720
|
-
readonly id: string;
|
|
721
|
-
readonly hostname: string;
|
|
722
|
-
readonly rootHostname: string;
|
|
723
|
-
readonly projectId: string | null;
|
|
724
|
-
readonly organizationId: string | null;
|
|
725
|
-
readonly hostnameId: string;
|
|
726
|
-
readonly active: boolean;
|
|
727
|
-
readonly createdAt: Date;
|
|
728
|
-
readonly updatedAt: Date;
|
|
729
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
730
|
-
get: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
731
|
-
readonly params: {
|
|
732
|
-
readonly id: string;
|
|
733
|
-
};
|
|
734
|
-
readonly responseMode?: Mode;
|
|
735
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
736
|
-
readonly id: string;
|
|
737
|
-
readonly hostname: string;
|
|
738
|
-
readonly rootHostname: string;
|
|
739
|
-
readonly projectId: string | null;
|
|
740
|
-
readonly organizationId: string | null;
|
|
741
|
-
readonly hostnameId: string;
|
|
742
|
-
readonly active: boolean;
|
|
743
|
-
readonly createdAt: Date;
|
|
744
|
-
readonly updatedAt: Date;
|
|
745
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
746
|
-
getByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
747
|
-
readonly params: {
|
|
748
|
-
readonly hostname: string;
|
|
749
|
-
};
|
|
750
|
-
readonly responseMode?: Mode;
|
|
751
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
752
|
-
readonly id: string;
|
|
753
|
-
readonly hostname: string;
|
|
754
|
-
readonly rootHostname: string;
|
|
755
|
-
readonly projectId: string | null;
|
|
756
|
-
readonly organizationId: string | null;
|
|
757
|
-
readonly hostnameId: string;
|
|
758
|
-
readonly active: boolean;
|
|
759
|
-
readonly createdAt: Date;
|
|
760
|
-
readonly updatedAt: Date;
|
|
761
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
762
|
-
records: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
763
|
-
readonly params: {
|
|
764
|
-
readonly id: string;
|
|
765
|
-
};
|
|
766
|
-
readonly responseMode?: Mode;
|
|
767
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
768
|
-
readonly required: boolean;
|
|
769
|
-
readonly status: string;
|
|
770
|
-
readonly type: string;
|
|
771
|
-
readonly name: string;
|
|
772
|
-
readonly value: string;
|
|
773
|
-
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
774
|
-
delete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
775
|
-
readonly params: {
|
|
776
|
-
readonly id: string;
|
|
777
|
-
};
|
|
778
|
-
readonly responseMode?: Mode;
|
|
779
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
780
|
-
readonly id: string;
|
|
781
|
-
readonly hostname: string;
|
|
782
|
-
readonly rootHostname: string;
|
|
783
|
-
readonly projectId: string | null;
|
|
784
|
-
readonly organizationId: string | null;
|
|
785
|
-
readonly hostnameId: string;
|
|
786
|
-
readonly active: boolean;
|
|
787
|
-
readonly createdAt: Date;
|
|
788
|
-
readonly updatedAt: Date;
|
|
789
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
790
|
-
};
|
|
791
|
-
listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
792
|
-
readonly query: {
|
|
793
|
-
readonly ids?: string | undefined;
|
|
794
|
-
readonly userId?: string | undefined;
|
|
795
|
-
};
|
|
796
|
-
readonly responseMode?: Mode;
|
|
797
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
798
|
-
readonly data: readonly {
|
|
799
|
-
readonly id: string;
|
|
800
|
-
readonly name: string;
|
|
801
|
-
readonly slug: string;
|
|
802
|
-
readonly logo: string | null;
|
|
803
|
-
readonly metadata: {
|
|
804
|
-
readonly translations: readonly {
|
|
805
|
-
readonly locale: "en" | "fr";
|
|
806
|
-
readonly name: string;
|
|
807
|
-
readonly logo?: string | null | undefined;
|
|
808
|
-
readonly icon?: string | null | undefined;
|
|
809
|
-
readonly contactEmail?: string | null | undefined;
|
|
810
|
-
readonly location?: string | null | undefined;
|
|
811
|
-
}[];
|
|
812
|
-
} | null;
|
|
813
|
-
readonly createdAt: Date;
|
|
814
|
-
}[];
|
|
815
|
-
readonly missingIds: readonly string[];
|
|
816
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
817
|
-
getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
818
|
-
readonly params: {
|
|
819
|
-
readonly id: string;
|
|
820
|
-
};
|
|
821
|
-
readonly responseMode?: Mode;
|
|
822
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
823
|
-
readonly id: string;
|
|
824
|
-
readonly name: string;
|
|
825
|
-
readonly slug: string;
|
|
826
|
-
readonly logo: string | null;
|
|
827
|
-
readonly metadata: {
|
|
828
|
-
readonly translations: readonly {
|
|
829
|
-
readonly locale: "en" | "fr";
|
|
830
|
-
readonly name: string;
|
|
831
|
-
readonly logo?: string | null | undefined;
|
|
832
|
-
readonly icon?: string | null | undefined;
|
|
833
|
-
readonly contactEmail?: string | null | undefined;
|
|
834
|
-
readonly location?: string | null | undefined;
|
|
835
|
-
}[];
|
|
836
|
-
} | null;
|
|
837
|
-
readonly createdAt: Date;
|
|
838
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
839
|
-
getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
840
|
-
readonly params: {
|
|
841
|
-
readonly organizationId: string;
|
|
842
|
-
readonly userId: string;
|
|
843
|
-
};
|
|
844
|
-
readonly responseMode?: Mode;
|
|
845
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
846
|
-
readonly id: string;
|
|
847
|
-
readonly organizationId: string;
|
|
848
|
-
readonly userId: string;
|
|
849
|
-
readonly role: string;
|
|
850
|
-
readonly createdAt: Date;
|
|
851
|
-
readonly user: {
|
|
852
|
-
readonly id: string;
|
|
853
|
-
readonly name: string;
|
|
854
|
-
readonly email: string;
|
|
855
|
-
readonly emailVerified: boolean;
|
|
856
|
-
readonly image: string | null;
|
|
857
|
-
readonly role: string | null;
|
|
858
|
-
readonly banned: boolean | null;
|
|
859
|
-
readonly createdAt: Date;
|
|
860
|
-
readonly updatedAt: Date;
|
|
861
|
-
};
|
|
862
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
863
|
-
listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
864
|
-
readonly params: {
|
|
865
|
-
readonly organizationId: string;
|
|
866
|
-
};
|
|
867
|
-
readonly responseMode?: Mode;
|
|
868
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
869
|
-
readonly id: string;
|
|
870
|
-
readonly organizationId: string;
|
|
871
|
-
readonly userId: string;
|
|
872
|
-
readonly role: string;
|
|
873
|
-
readonly createdAt: Date;
|
|
874
|
-
readonly user: {
|
|
875
|
-
readonly id: string;
|
|
876
|
-
readonly name: string;
|
|
877
|
-
readonly email: string;
|
|
878
|
-
readonly emailVerified: boolean;
|
|
879
|
-
readonly image: string | null;
|
|
880
|
-
readonly role: string | null;
|
|
881
|
-
readonly banned: boolean | null;
|
|
882
|
-
readonly createdAt: Date;
|
|
883
|
-
readonly updatedAt: Date;
|
|
884
|
-
};
|
|
885
|
-
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
886
|
-
listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
887
|
-
readonly query: {
|
|
888
|
-
readonly ids: string;
|
|
889
|
-
};
|
|
890
|
-
readonly responseMode?: Mode;
|
|
891
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
892
|
-
readonly data: readonly {
|
|
893
|
-
readonly id: string;
|
|
894
|
-
readonly name: string;
|
|
895
|
-
readonly email: string;
|
|
896
|
-
readonly emailVerified: boolean;
|
|
897
|
-
readonly image: string | null;
|
|
898
|
-
readonly role: string | null;
|
|
899
|
-
readonly banned: boolean | null;
|
|
900
|
-
readonly createdAt: Date;
|
|
901
|
-
readonly updatedAt: Date;
|
|
902
|
-
}[];
|
|
903
|
-
readonly missingIds: readonly string[];
|
|
904
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
905
|
-
getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
906
|
-
readonly params: {
|
|
907
|
-
readonly id: string;
|
|
908
|
-
};
|
|
909
|
-
readonly responseMode?: Mode;
|
|
910
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
911
|
-
readonly id: string;
|
|
912
|
-
readonly name: string;
|
|
913
|
-
readonly email: string;
|
|
914
|
-
readonly emailVerified: boolean;
|
|
915
|
-
readonly image: string | null;
|
|
916
|
-
readonly role: string | null;
|
|
917
|
-
readonly banned: boolean | null;
|
|
918
|
-
readonly createdAt: Date;
|
|
919
|
-
readonly updatedAt: Date;
|
|
920
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
921
|
-
getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
922
|
-
readonly params: {
|
|
923
|
-
readonly userId: string;
|
|
924
|
-
};
|
|
925
|
-
readonly responseMode?: Mode;
|
|
926
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
927
|
-
readonly id: string | null;
|
|
928
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
929
|
-
};
|
|
930
|
-
extra: {
|
|
931
|
-
readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
932
|
-
readonly payload: {
|
|
933
|
-
readonly newPassword: string;
|
|
934
|
-
};
|
|
935
|
-
readonly responseMode?: Mode;
|
|
936
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
937
|
-
readonly ok: boolean;
|
|
938
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
939
|
-
readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
940
|
-
readonly payload: {
|
|
941
|
-
readonly password: string;
|
|
942
|
-
};
|
|
943
|
-
readonly responseMode?: Mode;
|
|
944
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
945
|
-
readonly ok: boolean;
|
|
946
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
947
|
-
readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
948
|
-
readonly payload: {
|
|
949
|
-
readonly configId: "user" | "organization" | "service";
|
|
950
|
-
readonly name?: string | undefined;
|
|
951
|
-
readonly organizationId?: string | undefined;
|
|
952
|
-
readonly permissions?: {
|
|
953
|
-
readonly [x: string]: readonly string[];
|
|
954
|
-
} | undefined;
|
|
955
|
-
};
|
|
956
|
-
readonly responseMode?: Mode;
|
|
957
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
958
|
-
readonly id: string;
|
|
959
|
-
readonly key: string;
|
|
960
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
961
|
-
readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
962
|
-
readonly payload: {
|
|
963
|
-
readonly key: string;
|
|
964
|
-
readonly configId?: "user" | "organization" | "service" | undefined;
|
|
965
|
-
readonly permissions?: {
|
|
966
|
-
readonly [x: string]: readonly string[];
|
|
967
|
-
} | undefined;
|
|
968
|
-
};
|
|
969
|
-
readonly responseMode?: Mode;
|
|
970
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
971
|
-
readonly valid: boolean;
|
|
972
|
-
readonly error: {
|
|
973
|
-
readonly message: string;
|
|
974
|
-
readonly code: string;
|
|
975
|
-
} | null;
|
|
976
|
-
readonly key: {
|
|
977
|
-
readonly id: string;
|
|
978
|
-
readonly configId: string;
|
|
979
|
-
readonly name: string | null;
|
|
980
|
-
readonly start: string | null;
|
|
981
|
-
readonly prefix: string | null;
|
|
982
|
-
readonly referenceId: string;
|
|
983
|
-
readonly enabled: boolean | null;
|
|
984
|
-
readonly expiresAt: Date | null;
|
|
985
|
-
readonly createdAt: Date;
|
|
986
|
-
readonly updatedAt: Date;
|
|
987
|
-
readonly permissions: {
|
|
988
|
-
readonly [x: string]: readonly string[];
|
|
989
|
-
} | null;
|
|
990
|
-
readonly metadata: unknown;
|
|
991
|
-
} | null;
|
|
992
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
993
|
-
readonly presignUserImageUpload: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
994
|
-
readonly payload: {
|
|
995
|
-
readonly fileName: string;
|
|
996
|
-
readonly contentType: string;
|
|
997
|
-
};
|
|
998
|
-
readonly responseMode?: Mode;
|
|
999
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1000
|
-
readonly uploadUrl: string;
|
|
1001
|
-
readonly url: string;
|
|
1002
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
1003
|
-
readonly presign: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1004
|
-
readonly payload: {
|
|
1005
|
-
readonly fileName: string;
|
|
1006
|
-
readonly contentType: string;
|
|
1007
|
-
};
|
|
1008
|
-
readonly responseMode?: Mode;
|
|
1009
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1010
|
-
readonly uploadUrl: string;
|
|
1011
|
-
readonly url: string;
|
|
1012
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").Forbidden | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1013
|
-
};
|
|
1014
|
-
}> & {
|
|
1015
|
-
readonly make: (headers?: Record<string, string>) => Effect.Effect<{
|
|
1016
|
-
getSession: () => Effect.Effect<{
|
|
1017
|
-
readonly session: {
|
|
1018
|
-
readonly id: string;
|
|
1019
|
-
readonly expiresAt: Date;
|
|
1020
|
-
readonly token: string;
|
|
1021
|
-
readonly createdAt: Date;
|
|
1022
|
-
readonly updatedAt: Date;
|
|
1023
|
-
readonly userId: string;
|
|
1024
|
-
readonly ipAddress?: string | null | undefined;
|
|
1025
|
-
readonly userAgent?: string | null | undefined;
|
|
1026
|
-
readonly impersonatedBy?: string | null | undefined;
|
|
1027
|
-
readonly activeOrganizationId?: string | null | undefined;
|
|
1028
|
-
};
|
|
1029
|
-
readonly user: {
|
|
1030
|
-
readonly id: string;
|
|
1031
|
-
readonly name: string;
|
|
1032
|
-
readonly email: string;
|
|
1033
|
-
readonly emailVerified: boolean;
|
|
1034
|
-
readonly image: string | null;
|
|
1035
|
-
readonly role: string | null;
|
|
1036
|
-
readonly banned: boolean | null;
|
|
1037
|
-
readonly createdAt: Date;
|
|
1038
|
-
readonly updatedAt: Date;
|
|
1039
|
-
};
|
|
1040
|
-
} | null, unknown, never>;
|
|
1041
|
-
server: {
|
|
1042
|
-
domains: {
|
|
1043
|
-
create: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1044
|
-
readonly payload: {
|
|
1045
|
-
readonly hostname: string;
|
|
1046
|
-
readonly rootHostname: string;
|
|
1047
|
-
readonly projectId?: string | null | undefined;
|
|
1048
|
-
readonly organizationId?: string | null | undefined;
|
|
1049
|
-
readonly managed?: boolean | undefined;
|
|
1050
|
-
};
|
|
1051
|
-
readonly responseMode?: Mode;
|
|
1052
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1053
|
-
readonly id: string;
|
|
1054
|
-
readonly hostname: string;
|
|
1055
|
-
readonly rootHostname: string;
|
|
1056
|
-
readonly projectId: string | null;
|
|
1057
|
-
readonly organizationId: string | null;
|
|
1058
|
-
readonly hostnameId: string;
|
|
1059
|
-
readonly active: boolean;
|
|
1060
|
-
readonly createdAt: Date;
|
|
1061
|
-
readonly updatedAt: Date;
|
|
1062
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1063
|
-
get: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1064
|
-
readonly params: {
|
|
1065
|
-
readonly id: string;
|
|
1066
|
-
};
|
|
1067
|
-
readonly responseMode?: Mode;
|
|
1068
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1069
|
-
readonly id: string;
|
|
1070
|
-
readonly hostname: string;
|
|
1071
|
-
readonly rootHostname: string;
|
|
1072
|
-
readonly projectId: string | null;
|
|
1073
|
-
readonly organizationId: string | null;
|
|
1074
|
-
readonly hostnameId: string;
|
|
1075
|
-
readonly active: boolean;
|
|
1076
|
-
readonly createdAt: Date;
|
|
1077
|
-
readonly updatedAt: Date;
|
|
1078
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1079
|
-
getByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1080
|
-
readonly params: {
|
|
1081
|
-
readonly hostname: string;
|
|
1082
|
-
};
|
|
1083
|
-
readonly responseMode?: Mode;
|
|
1084
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1085
|
-
readonly id: string;
|
|
1086
|
-
readonly hostname: string;
|
|
1087
|
-
readonly rootHostname: string;
|
|
1088
|
-
readonly projectId: string | null;
|
|
1089
|
-
readonly organizationId: string | null;
|
|
1090
|
-
readonly hostnameId: string;
|
|
1091
|
-
readonly active: boolean;
|
|
1092
|
-
readonly createdAt: Date;
|
|
1093
|
-
readonly updatedAt: Date;
|
|
1094
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1095
|
-
records: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1096
|
-
readonly params: {
|
|
1097
|
-
readonly id: string;
|
|
1098
|
-
};
|
|
1099
|
-
readonly responseMode?: Mode;
|
|
1100
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
1101
|
-
readonly required: boolean;
|
|
1102
|
-
readonly status: string;
|
|
1103
|
-
readonly type: string;
|
|
1104
|
-
readonly name: string;
|
|
1105
|
-
readonly value: string;
|
|
1106
|
-
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1107
|
-
delete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1108
|
-
readonly params: {
|
|
1109
|
-
readonly id: string;
|
|
1110
|
-
};
|
|
1111
|
-
readonly responseMode?: Mode;
|
|
1112
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1113
|
-
readonly id: string;
|
|
1114
|
-
readonly hostname: string;
|
|
1115
|
-
readonly rootHostname: string;
|
|
1116
|
-
readonly projectId: string | null;
|
|
1117
|
-
readonly organizationId: string | null;
|
|
1118
|
-
readonly hostnameId: string;
|
|
1119
|
-
readonly active: boolean;
|
|
1120
|
-
readonly createdAt: Date;
|
|
1121
|
-
readonly updatedAt: Date;
|
|
1122
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1123
|
-
};
|
|
1124
|
-
listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1125
|
-
readonly query: {
|
|
1126
|
-
readonly ids?: string | undefined;
|
|
1127
|
-
readonly userId?: string | undefined;
|
|
1128
|
-
};
|
|
1129
|
-
readonly responseMode?: Mode;
|
|
1130
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1131
|
-
readonly data: readonly {
|
|
1132
|
-
readonly id: string;
|
|
1133
|
-
readonly name: string;
|
|
1134
|
-
readonly slug: string;
|
|
1135
|
-
readonly logo: string | null;
|
|
1136
|
-
readonly metadata: {
|
|
1137
|
-
readonly translations: readonly {
|
|
1138
|
-
readonly locale: "en" | "fr";
|
|
1139
|
-
readonly name: string;
|
|
1140
|
-
readonly logo?: string | null | undefined;
|
|
1141
|
-
readonly icon?: string | null | undefined;
|
|
1142
|
-
readonly contactEmail?: string | null | undefined;
|
|
1143
|
-
readonly location?: string | null | undefined;
|
|
1144
|
-
}[];
|
|
1145
|
-
} | null;
|
|
1146
|
-
readonly createdAt: Date;
|
|
1147
|
-
}[];
|
|
1148
|
-
readonly missingIds: readonly string[];
|
|
1149
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1150
|
-
getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1151
|
-
readonly params: {
|
|
1152
|
-
readonly id: string;
|
|
1153
|
-
};
|
|
1154
|
-
readonly responseMode?: Mode;
|
|
1155
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1156
|
-
readonly id: string;
|
|
1157
|
-
readonly name: string;
|
|
1158
|
-
readonly slug: string;
|
|
1159
|
-
readonly logo: string | null;
|
|
1160
|
-
readonly metadata: {
|
|
1161
|
-
readonly translations: readonly {
|
|
1162
|
-
readonly locale: "en" | "fr";
|
|
1163
|
-
readonly name: string;
|
|
1164
|
-
readonly logo?: string | null | undefined;
|
|
1165
|
-
readonly icon?: string | null | undefined;
|
|
1166
|
-
readonly contactEmail?: string | null | undefined;
|
|
1167
|
-
readonly location?: string | null | undefined;
|
|
1168
|
-
}[];
|
|
1169
|
-
} | null;
|
|
1170
|
-
readonly createdAt: Date;
|
|
1171
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1172
|
-
getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1173
|
-
readonly params: {
|
|
1174
|
-
readonly organizationId: string;
|
|
1175
|
-
readonly userId: string;
|
|
1176
|
-
};
|
|
1177
|
-
readonly responseMode?: Mode;
|
|
1178
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1179
|
-
readonly id: string;
|
|
1180
|
-
readonly organizationId: string;
|
|
1181
|
-
readonly userId: string;
|
|
1182
|
-
readonly role: string;
|
|
1183
|
-
readonly createdAt: Date;
|
|
1184
|
-
readonly user: {
|
|
1185
|
-
readonly id: string;
|
|
1186
|
-
readonly name: string;
|
|
1187
|
-
readonly email: string;
|
|
1188
|
-
readonly emailVerified: boolean;
|
|
1189
|
-
readonly image: string | null;
|
|
1190
|
-
readonly role: string | null;
|
|
1191
|
-
readonly banned: boolean | null;
|
|
1192
|
-
readonly createdAt: Date;
|
|
1193
|
-
readonly updatedAt: Date;
|
|
1194
|
-
};
|
|
1195
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1196
|
-
listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1197
|
-
readonly params: {
|
|
1198
|
-
readonly organizationId: string;
|
|
1199
|
-
};
|
|
1200
|
-
readonly responseMode?: Mode;
|
|
1201
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
1202
|
-
readonly id: string;
|
|
1203
|
-
readonly organizationId: string;
|
|
1204
|
-
readonly userId: string;
|
|
1205
|
-
readonly role: string;
|
|
1206
|
-
readonly createdAt: Date;
|
|
1207
|
-
readonly user: {
|
|
1208
|
-
readonly id: string;
|
|
1209
|
-
readonly name: string;
|
|
1210
|
-
readonly email: string;
|
|
1211
|
-
readonly emailVerified: boolean;
|
|
1212
|
-
readonly image: string | null;
|
|
1213
|
-
readonly role: string | null;
|
|
1214
|
-
readonly banned: boolean | null;
|
|
1215
|
-
readonly createdAt: Date;
|
|
1216
|
-
readonly updatedAt: Date;
|
|
1217
|
-
};
|
|
1218
|
-
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1219
|
-
listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1220
|
-
readonly query: {
|
|
1221
|
-
readonly ids: string;
|
|
1222
|
-
};
|
|
1223
|
-
readonly responseMode?: Mode;
|
|
1224
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1225
|
-
readonly data: readonly {
|
|
1226
|
-
readonly id: string;
|
|
1227
|
-
readonly name: string;
|
|
1228
|
-
readonly email: string;
|
|
1229
|
-
readonly emailVerified: boolean;
|
|
1230
|
-
readonly image: string | null;
|
|
1231
|
-
readonly role: string | null;
|
|
1232
|
-
readonly banned: boolean | null;
|
|
1233
|
-
readonly createdAt: Date;
|
|
1234
|
-
readonly updatedAt: Date;
|
|
1235
|
-
}[];
|
|
1236
|
-
readonly missingIds: readonly string[];
|
|
1237
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1238
|
-
getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1239
|
-
readonly params: {
|
|
1240
|
-
readonly id: string;
|
|
1241
|
-
};
|
|
1242
|
-
readonly responseMode?: Mode;
|
|
1243
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1244
|
-
readonly id: string;
|
|
1245
|
-
readonly name: string;
|
|
1246
|
-
readonly email: string;
|
|
1247
|
-
readonly emailVerified: boolean;
|
|
1248
|
-
readonly image: string | null;
|
|
1249
|
-
readonly role: string | null;
|
|
1250
|
-
readonly banned: boolean | null;
|
|
1251
|
-
readonly createdAt: Date;
|
|
1252
|
-
readonly updatedAt: Date;
|
|
1253
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1254
|
-
getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1255
|
-
readonly params: {
|
|
1256
|
-
readonly userId: string;
|
|
1257
|
-
};
|
|
1258
|
-
readonly responseMode?: Mode;
|
|
1259
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1260
|
-
readonly id: string | null;
|
|
1261
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1262
|
-
};
|
|
1263
|
-
extra: {
|
|
1264
|
-
readonly setPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1265
|
-
readonly payload: {
|
|
1266
|
-
readonly newPassword: string;
|
|
1267
|
-
};
|
|
1268
|
-
readonly responseMode?: Mode;
|
|
1269
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1270
|
-
readonly ok: boolean;
|
|
1271
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
1272
|
-
readonly verifyPassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1273
|
-
readonly payload: {
|
|
1274
|
-
readonly password: string;
|
|
1275
|
-
};
|
|
1276
|
-
readonly responseMode?: Mode;
|
|
1277
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1278
|
-
readonly ok: boolean;
|
|
1279
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
1280
|
-
readonly createApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1281
|
-
readonly payload: {
|
|
1282
|
-
readonly configId: "user" | "organization" | "service";
|
|
1283
|
-
readonly name?: string | undefined;
|
|
1284
|
-
readonly organizationId?: string | undefined;
|
|
1285
|
-
readonly permissions?: {
|
|
1286
|
-
readonly [x: string]: readonly string[];
|
|
1287
|
-
} | undefined;
|
|
1288
|
-
};
|
|
1289
|
-
readonly responseMode?: Mode;
|
|
1290
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1291
|
-
readonly id: string;
|
|
1292
|
-
readonly key: string;
|
|
1293
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
1294
|
-
readonly verifyApiKey: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1295
|
-
readonly payload: {
|
|
1296
|
-
readonly key: string;
|
|
1297
|
-
readonly configId?: "user" | "organization" | "service" | undefined;
|
|
1298
|
-
readonly permissions?: {
|
|
1299
|
-
readonly [x: string]: readonly string[];
|
|
1300
|
-
} | undefined;
|
|
1301
|
-
};
|
|
1302
|
-
readonly responseMode?: Mode;
|
|
1303
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1304
|
-
readonly valid: boolean;
|
|
1305
|
-
readonly error: {
|
|
1306
|
-
readonly message: string;
|
|
1307
|
-
readonly code: string;
|
|
1308
|
-
} | null;
|
|
1309
|
-
readonly key: {
|
|
1310
|
-
readonly id: string;
|
|
1311
|
-
readonly configId: string;
|
|
1312
|
-
readonly name: string | null;
|
|
1313
|
-
readonly start: string | null;
|
|
1314
|
-
readonly prefix: string | null;
|
|
1315
|
-
readonly referenceId: string;
|
|
1316
|
-
readonly enabled: boolean | null;
|
|
1317
|
-
readonly expiresAt: Date | null;
|
|
1318
|
-
readonly createdAt: Date;
|
|
1319
|
-
readonly updatedAt: Date;
|
|
1320
|
-
readonly permissions: {
|
|
1321
|
-
readonly [x: string]: readonly string[];
|
|
1322
|
-
} | null;
|
|
1323
|
-
readonly metadata: unknown;
|
|
1324
|
-
} | null;
|
|
1325
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
1326
|
-
readonly presignUserImageUpload: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1327
|
-
readonly payload: {
|
|
1328
|
-
readonly fileName: string;
|
|
1329
|
-
readonly contentType: string;
|
|
1330
|
-
};
|
|
1331
|
-
readonly responseMode?: Mode;
|
|
1332
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1333
|
-
readonly uploadUrl: string;
|
|
1334
|
-
readonly url: string;
|
|
1335
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("./extra").ExtraBadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
1336
|
-
readonly presign: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1337
|
-
readonly payload: {
|
|
1338
|
-
readonly fileName: string;
|
|
1339
|
-
readonly contentType: string;
|
|
1340
|
-
};
|
|
1341
|
-
readonly responseMode?: Mode;
|
|
1342
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1343
|
-
readonly uploadUrl: string;
|
|
1344
|
-
readonly url: string;
|
|
1345
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").Forbidden | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1346
|
-
};
|
|
1347
|
-
}, never, AuthApiClients>;
|
|
1348
|
-
};
|
|
1349
|
-
export declare class AuthClient extends AuthClient_base {
|
|
1350
|
-
static readonly layer: (options?: AuthClientLayerOptions) => Layer.Layer<AuthClient, import("effect/Config").ConfigError, never>;
|
|
1351
|
-
}
|
|
1352
|
-
export {};
|