@krak-stack/auth 0.2.0 → 0.2.1
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/access.d.ts +1 -3
- package/dist/access.js +1 -3
- package/dist/admin/api.group.d.ts +36 -36
- package/dist/admin/api.group.js +13 -13
- package/dist/api.d.ts +837 -837
- package/dist/auth/api.group.d.ts +86 -86
- package/dist/auth/api.group.js +8 -8
- package/dist/auth/schema.d.ts +48 -40
- package/dist/auth/schema.js +12 -9
- package/dist/components/admin-organization-form.js +1 -0
- package/dist/components/admin-organizations.d.ts +4 -5
- package/dist/components/admin-organizations.js +34 -31
- package/dist/components/admin-users.d.ts +5 -6
- package/dist/components/admin-users.js +51 -50
- package/dist/components/api-key-edit-form.js +2 -1
- package/dist/components/auth-atoms.d.ts +103 -103
- package/dist/components/auth-client-api.d.ts +834 -2351
- package/dist/components/auth-client-api.js +11 -7
- package/dist/components/auth-forms.js +6 -1
- package/dist/components/auth-provider.d.ts +13 -13
- package/dist/components/member-required.js +2 -2
- package/dist/components/organization-switcher.js +72 -69
- package/dist/components/user-button.js +31 -26
- package/dist/extra/api.group.d.ts +19 -19
- package/dist/extra/api.group.js +3 -3
- package/dist/extra/schema.d.ts +1 -2
- package/dist/extra/schema.js +1 -2
- package/dist/query.js +5 -5
- package/dist/server/api.group.d.ts +29 -29
- package/dist/server/api.group.js +12 -12
- package/dist/service.d.ts +1513 -1951
- package/package.json +4 -4
package/dist/service.d.ts
CHANGED
|
@@ -41,14 +41,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
41
41
|
readonly userId: string;
|
|
42
42
|
}) => Effect.Effect<string, import("effect/unstable/http/HttpClientError").HttpClientError | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized, never>;
|
|
43
43
|
auth: {
|
|
44
|
-
readonly adminBanUser:
|
|
45
|
-
readonly
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
50
|
-
readonly responseMode?: Mode;
|
|
51
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
44
|
+
readonly adminBanUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
45
|
+
readonly userId: import("effect/Schema").String;
|
|
46
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
47
|
+
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
48
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
52
49
|
readonly user: import("effect/Schema").Struct<{
|
|
53
50
|
readonly id: import("effect/Schema").String;
|
|
54
51
|
readonly name: import("effect/Schema").String;
|
|
@@ -64,13 +61,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
64
61
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
65
62
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
66
63
|
}>;
|
|
67
|
-
}
|
|
68
|
-
readonly adminImpersonateUser:
|
|
69
|
-
readonly
|
|
70
|
-
|
|
71
|
-
}, "Type">;
|
|
72
|
-
readonly responseMode?: Mode;
|
|
73
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
64
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
65
|
+
readonly adminImpersonateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
66
|
+
readonly userId: import("effect/Schema").String;
|
|
67
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
74
68
|
readonly session: import("effect/Schema").Struct<{
|
|
75
69
|
readonly id: import("effect/Schema").String;
|
|
76
70
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -99,10 +93,8 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
99
93
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
100
94
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
101
95
|
}>;
|
|
102
|
-
}
|
|
103
|
-
readonly adminStopImpersonating:
|
|
104
|
-
readonly responseMode?: Mode;
|
|
105
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
96
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
97
|
+
readonly adminStopImpersonating: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
106
98
|
readonly session: import("effect/Schema").Struct<{
|
|
107
99
|
readonly id: import("effect/Schema").String;
|
|
108
100
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -131,13 +123,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
131
123
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
132
124
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
133
125
|
}>;
|
|
134
|
-
}
|
|
135
|
-
readonly adminUnbanUser:
|
|
136
|
-
readonly
|
|
137
|
-
|
|
138
|
-
}, "Type">;
|
|
139
|
-
readonly responseMode?: Mode;
|
|
140
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
126
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
127
|
+
readonly adminUnbanUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
128
|
+
readonly userId: import("effect/Schema").String;
|
|
129
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
141
130
|
readonly user: import("effect/Schema").Struct<{
|
|
142
131
|
readonly id: import("effect/Schema").String;
|
|
143
132
|
readonly name: import("effect/Schema").String;
|
|
@@ -153,92 +142,76 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
153
142
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
154
143
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
155
144
|
}>;
|
|
156
|
-
}
|
|
157
|
-
readonly apiKeyDelete:
|
|
158
|
-
readonly
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
};
|
|
162
|
-
readonly responseMode?: Mode;
|
|
163
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
145
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
146
|
+
readonly apiKeyDelete: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
147
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
148
|
+
readonly keyId: import("effect/Schema").String;
|
|
149
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
164
150
|
readonly success: import("effect/Schema").Boolean;
|
|
165
|
-
}
|
|
166
|
-
readonly apiKeyList:
|
|
167
|
-
readonly
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
readonly
|
|
179
|
-
readonly
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
182
|
-
readonly
|
|
183
|
-
readonly
|
|
184
|
-
readonly
|
|
185
|
-
readonly
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
readonly
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
readonly
|
|
207
|
-
|
|
208
|
-
readonly
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
readonly
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
readonly
|
|
221
|
-
readonly
|
|
222
|
-
readonly
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
readonly twoFactorEnabled?: boolean | undefined;
|
|
230
|
-
readonly lastLoginMethod?: string | null | undefined;
|
|
231
|
-
readonly createdAt: Date;
|
|
232
|
-
readonly updatedAt: Date;
|
|
233
|
-
};
|
|
234
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
235
|
-
readonly getSession: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
236
|
-
readonly query: {
|
|
237
|
-
readonly disableCookieCache?: string | undefined;
|
|
238
|
-
readonly disableRefresh?: string | undefined;
|
|
239
|
-
};
|
|
240
|
-
readonly responseMode?: Mode;
|
|
241
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
151
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
152
|
+
readonly apiKeyList: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
153
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
154
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
155
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
156
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
157
|
+
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
158
|
+
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
159
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
160
|
+
readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
161
|
+
readonly id: import("effect/Schema").String;
|
|
162
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
163
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
164
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
165
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
166
|
+
readonly referenceId: import("effect/Schema").String;
|
|
167
|
+
readonly configId: import("effect/Schema").String;
|
|
168
|
+
readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
169
|
+
readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
170
|
+
readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
171
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
172
|
+
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
173
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
174
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
175
|
+
readonly requestCount: import("effect/Schema").Number;
|
|
176
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
177
|
+
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
178
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
179
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
180
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
181
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
182
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
|
|
183
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
184
|
+
}>>;
|
|
185
|
+
readonly total: import("effect/Schema").Number;
|
|
186
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
187
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
188
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
189
|
+
readonly changePassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
190
|
+
readonly newPassword: import("effect/Schema").String;
|
|
191
|
+
readonly currentPassword: import("effect/Schema").String;
|
|
192
|
+
readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
193
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
194
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
195
|
+
readonly user: import("effect/Schema").Struct<{
|
|
196
|
+
readonly id: import("effect/Schema").String;
|
|
197
|
+
readonly name: import("effect/Schema").String;
|
|
198
|
+
readonly email: import("effect/Schema").String;
|
|
199
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
200
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
201
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
202
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
203
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
204
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
205
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
206
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
207
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
208
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
209
|
+
}>;
|
|
210
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
211
|
+
readonly getSession: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
212
|
+
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
213
|
+
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
214
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
242
215
|
readonly session: import("effect/Schema").Struct<{
|
|
243
216
|
readonly id: import("effect/Schema").String;
|
|
244
217
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -267,51 +240,44 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
267
240
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
268
241
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
269
242
|
}>;
|
|
270
|
-
}
|
|
271
|
-
readonly linkSocial:
|
|
272
|
-
readonly
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
readonly
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
readonly
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
298
|
-
readonly
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
301
|
-
readonly
|
|
302
|
-
readonly
|
|
303
|
-
readonly
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
readonly updatedAt: Date;
|
|
309
|
-
} | undefined;
|
|
310
|
-
readonly status?: boolean | undefined;
|
|
311
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
312
|
-
readonly listAccounts: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
313
|
-
readonly responseMode?: Mode;
|
|
314
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
243
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
244
|
+
readonly linkSocial: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
245
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
246
|
+
readonly provider: import("effect/Schema").String;
|
|
247
|
+
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
248
|
+
readonly token: import("effect/Schema").String;
|
|
249
|
+
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
250
|
+
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
251
|
+
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
252
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
253
|
+
}>>;
|
|
254
|
+
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
255
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
256
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
257
|
+
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
258
|
+
readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
259
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
260
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
261
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
262
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
263
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
264
|
+
readonly id: import("effect/Schema").String;
|
|
265
|
+
readonly name: import("effect/Schema").String;
|
|
266
|
+
readonly email: import("effect/Schema").String;
|
|
267
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
268
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
269
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
270
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
271
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
272
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
273
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
274
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
275
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
276
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
277
|
+
}>>;
|
|
278
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
279
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
280
|
+
readonly listAccounts: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
315
281
|
readonly id: import("effect/Schema").String;
|
|
316
282
|
readonly providerId: import("effect/Schema").String;
|
|
317
283
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -319,39 +285,30 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
319
285
|
readonly accountId: import("effect/Schema").String;
|
|
320
286
|
readonly userId: import("effect/Schema").String;
|
|
321
287
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
322
|
-
}
|
|
323
|
-
readonly oauthConsent:
|
|
324
|
-
readonly
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
};
|
|
329
|
-
readonly responseMode?: Mode;
|
|
330
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
288
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
289
|
+
readonly oauthConsent: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
290
|
+
readonly accept: import("effect/Schema").Boolean;
|
|
291
|
+
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
292
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
293
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
331
294
|
readonly redirect: import("effect/Schema").Boolean;
|
|
332
295
|
readonly url: import("effect/Schema").String;
|
|
333
|
-
}
|
|
334
|
-
readonly oauthPublicClient:
|
|
335
|
-
readonly
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
readonly
|
|
339
|
-
|
|
340
|
-
readonly
|
|
341
|
-
readonly
|
|
342
|
-
readonly
|
|
343
|
-
readonly
|
|
344
|
-
readonly
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
readonly
|
|
348
|
-
},
|
|
349
|
-
readonly organizationAcceptInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
350
|
-
readonly payload: import("effect/Schema").Struct.ReadonlySide<{
|
|
351
|
-
readonly invitationId: import("effect/Schema").String;
|
|
352
|
-
}, "Type">;
|
|
353
|
-
readonly responseMode?: Mode;
|
|
354
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
296
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
297
|
+
readonly oauthPublicClient: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
298
|
+
readonly client_id: import("effect/Schema").String;
|
|
299
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
300
|
+
readonly client_id: import("effect/Schema").String;
|
|
301
|
+
readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
302
|
+
readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
303
|
+
readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
304
|
+
readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
305
|
+
readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
306
|
+
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
307
|
+
readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
308
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
309
|
+
readonly organizationAcceptInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
310
|
+
readonly invitationId: import("effect/Schema").String;
|
|
311
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
355
312
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
356
313
|
readonly id: import("effect/Schema").String;
|
|
357
314
|
readonly email: import("effect/Schema").String;
|
|
@@ -371,67 +328,52 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
371
328
|
readonly role: import("effect/Schema").String;
|
|
372
329
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
373
330
|
}>>;
|
|
374
|
-
}
|
|
375
|
-
readonly organizationCancelInvitation:
|
|
376
|
-
readonly
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
readonly
|
|
380
|
-
|
|
381
|
-
readonly
|
|
382
|
-
readonly
|
|
383
|
-
readonly
|
|
384
|
-
readonly
|
|
385
|
-
readonly
|
|
386
|
-
readonly
|
|
387
|
-
readonly
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
readonly
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
readonly
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
readonly
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
readonly
|
|
408
|
-
readonly
|
|
409
|
-
readonly
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
readonly
|
|
413
|
-
readonly
|
|
414
|
-
readonly
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
readonly
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
readonly membersLimit?: number | undefined;
|
|
421
|
-
};
|
|
422
|
-
readonly responseMode?: Mode;
|
|
423
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
424
|
-
readonly id: string;
|
|
425
|
-
readonly name: string;
|
|
426
|
-
readonly slug: string;
|
|
427
|
-
readonly logo?: string | null | undefined;
|
|
428
|
-
readonly metadata?: string | {
|
|
429
|
-
readonly [x: string]: import("effect/Schema").Json;
|
|
430
|
-
} | null | undefined;
|
|
431
|
-
readonly userId?: string | null | undefined;
|
|
432
|
-
readonly parentId?: string | null | undefined;
|
|
433
|
-
readonly createdAt: Date;
|
|
434
|
-
readonly members: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
331
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
332
|
+
readonly organizationCancelInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
333
|
+
readonly invitationId: import("effect/Schema").String;
|
|
334
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
335
|
+
readonly id: import("effect/Schema").String;
|
|
336
|
+
readonly email: import("effect/Schema").String;
|
|
337
|
+
readonly role: import("effect/Schema").String;
|
|
338
|
+
readonly organizationId: import("effect/Schema").String;
|
|
339
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
340
|
+
readonly inviterId: import("effect/Schema").String;
|
|
341
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
342
|
+
readonly status: import("effect/Schema").String;
|
|
343
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
344
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
345
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
346
|
+
readonly organizationCreate: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
347
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
348
|
+
readonly slug: import("effect/Schema").NonEmptyString;
|
|
349
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
350
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
351
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
352
|
+
readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
353
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
354
|
+
readonly id: import("effect/Schema").String;
|
|
355
|
+
readonly name: import("effect/Schema").String;
|
|
356
|
+
readonly slug: import("effect/Schema").String;
|
|
357
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
358
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
359
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
360
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
361
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
362
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
363
|
+
readonly organizationGetFull: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
364
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
365
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
366
|
+
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
367
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
368
|
+
readonly id: import("effect/Schema").String;
|
|
369
|
+
readonly name: import("effect/Schema").String;
|
|
370
|
+
readonly slug: import("effect/Schema").String;
|
|
371
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
372
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
373
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
374
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
375
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
376
|
+
readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
435
377
|
readonly id: import("effect/Schema").String;
|
|
436
378
|
readonly organizationId: import("effect/Schema").String;
|
|
437
379
|
readonly userId: import("effect/Schema").String;
|
|
@@ -452,48 +394,42 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
452
394
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
453
395
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
454
396
|
}>;
|
|
455
|
-
}
|
|
456
|
-
readonly invitations:
|
|
457
|
-
readonly id: string;
|
|
458
|
-
readonly email: string;
|
|
459
|
-
readonly role: string;
|
|
460
|
-
readonly organizationId: string;
|
|
461
|
-
readonly organizationName?: string | null | undefined;
|
|
462
|
-
readonly inviterId: string;
|
|
463
|
-
readonly teamId?: string | null | undefined;
|
|
464
|
-
readonly status: string;
|
|
465
|
-
readonly expiresAt: Date;
|
|
466
|
-
readonly createdAt?: Date | undefined;
|
|
467
|
-
}[];
|
|
468
|
-
} | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
469
|
-
readonly organizationGetInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
470
|
-
readonly query: import("effect/Schema").Struct.ReadonlySide<{
|
|
397
|
+
}>>;
|
|
398
|
+
readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
471
399
|
readonly id: import("effect/Schema").String;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
readonly
|
|
485
|
-
|
|
486
|
-
readonly
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
readonly
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
readonly
|
|
496
|
-
|
|
400
|
+
readonly email: import("effect/Schema").String;
|
|
401
|
+
readonly role: import("effect/Schema").String;
|
|
402
|
+
readonly organizationId: import("effect/Schema").String;
|
|
403
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
404
|
+
readonly inviterId: import("effect/Schema").String;
|
|
405
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
406
|
+
readonly status: import("effect/Schema").String;
|
|
407
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
408
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
409
|
+
}>>;
|
|
410
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
411
|
+
readonly organizationGetInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
412
|
+
readonly id: import("effect/Schema").String;
|
|
413
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
414
|
+
readonly id: import("effect/Schema").String;
|
|
415
|
+
readonly email: import("effect/Schema").String;
|
|
416
|
+
readonly role: import("effect/Schema").String;
|
|
417
|
+
readonly organizationId: import("effect/Schema").String;
|
|
418
|
+
readonly inviterId: import("effect/Schema").String;
|
|
419
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
420
|
+
readonly status: import("effect/Schema").String;
|
|
421
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
422
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
423
|
+
readonly organizationName: import("effect/Schema").String;
|
|
424
|
+
readonly organizationSlug: import("effect/Schema").String;
|
|
425
|
+
readonly inviterEmail: import("effect/Schema").String;
|
|
426
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
427
|
+
readonly organizationImpersonateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
428
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
429
|
+
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
430
|
+
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
431
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
432
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
497
433
|
readonly session: import("effect/Schema").Struct<{
|
|
498
434
|
readonly id: import("effect/Schema").String;
|
|
499
435
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -522,85 +458,69 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
522
458
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
523
459
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
524
460
|
}>;
|
|
525
|
-
}
|
|
526
|
-
readonly organizationInviteMember:
|
|
527
|
-
readonly
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
readonly
|
|
535
|
-
|
|
536
|
-
readonly
|
|
537
|
-
readonly
|
|
538
|
-
readonly
|
|
539
|
-
readonly
|
|
540
|
-
readonly
|
|
541
|
-
readonly
|
|
542
|
-
readonly
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
readonly
|
|
546
|
-
},
|
|
547
|
-
readonly organizationLeave: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
548
|
-
readonly payload: import("effect/Schema").Struct.ReadonlySide<{
|
|
549
|
-
readonly organizationId: import("effect/Schema").String;
|
|
550
|
-
}, "Type">;
|
|
551
|
-
readonly responseMode?: Mode;
|
|
552
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
461
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
462
|
+
readonly organizationInviteMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
463
|
+
readonly email: import("effect/Schema").String;
|
|
464
|
+
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
465
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
466
|
+
readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
467
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
|
|
468
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
469
|
+
readonly id: import("effect/Schema").String;
|
|
470
|
+
readonly email: import("effect/Schema").String;
|
|
471
|
+
readonly role: import("effect/Schema").String;
|
|
472
|
+
readonly organizationId: import("effect/Schema").String;
|
|
473
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
474
|
+
readonly inviterId: import("effect/Schema").String;
|
|
475
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
476
|
+
readonly status: import("effect/Schema").String;
|
|
477
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
478
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
479
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
480
|
+
readonly organizationLeave: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
481
|
+
readonly organizationId: import("effect/Schema").String;
|
|
482
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
553
483
|
readonly id: import("effect/Schema").String;
|
|
554
484
|
readonly organizationId: import("effect/Schema").String;
|
|
555
485
|
readonly userId: import("effect/Schema").String;
|
|
556
486
|
readonly role: import("effect/Schema").String;
|
|
557
487
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
558
|
-
}
|
|
559
|
-
readonly organizationList:
|
|
560
|
-
readonly
|
|
561
|
-
|
|
562
|
-
readonly
|
|
563
|
-
readonly
|
|
564
|
-
readonly
|
|
565
|
-
readonly
|
|
566
|
-
readonly
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
readonly
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
readonly
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
readonly
|
|
578
|
-
|
|
579
|
-
readonly
|
|
580
|
-
readonly
|
|
581
|
-
readonly
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
readonly
|
|
585
|
-
readonly
|
|
586
|
-
readonly
|
|
587
|
-
readonly
|
|
588
|
-
readonly
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
readonly
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
readonly sortBy?: string | undefined;
|
|
595
|
-
readonly sortDirection?: "asc" | "desc" | undefined;
|
|
596
|
-
readonly filterField?: string | undefined;
|
|
597
|
-
readonly filterValue?: string | undefined;
|
|
598
|
-
readonly filterOperator?: string | undefined;
|
|
599
|
-
readonly organizationId?: string | undefined;
|
|
600
|
-
readonly organizationSlug?: string | undefined;
|
|
601
|
-
};
|
|
602
|
-
readonly responseMode?: Mode;
|
|
603
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
488
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
489
|
+
readonly organizationList: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
490
|
+
readonly id: import("effect/Schema").String;
|
|
491
|
+
readonly name: import("effect/Schema").String;
|
|
492
|
+
readonly slug: import("effect/Schema").String;
|
|
493
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
494
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
495
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
496
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
497
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
498
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
499
|
+
readonly organizationListInvitations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
500
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
501
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
502
|
+
readonly id: import("effect/Schema").String;
|
|
503
|
+
readonly email: import("effect/Schema").String;
|
|
504
|
+
readonly role: import("effect/Schema").String;
|
|
505
|
+
readonly organizationId: import("effect/Schema").String;
|
|
506
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
507
|
+
readonly inviterId: import("effect/Schema").String;
|
|
508
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
509
|
+
readonly status: import("effect/Schema").String;
|
|
510
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
511
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
512
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
513
|
+
readonly organizationListMembers: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
514
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
515
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
516
|
+
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
517
|
+
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
518
|
+
readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
519
|
+
readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
520
|
+
readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
521
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
522
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
523
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
604
524
|
readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
605
525
|
readonly id: import("effect/Schema").String;
|
|
606
526
|
readonly organizationId: import("effect/Schema").String;
|
|
@@ -624,28 +544,22 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
624
544
|
}>;
|
|
625
545
|
}>>;
|
|
626
546
|
readonly total: import("effect/Schema").Number;
|
|
627
|
-
}
|
|
628
|
-
readonly organizationListUserInvitations:
|
|
629
|
-
readonly
|
|
630
|
-
readonly
|
|
631
|
-
|
|
632
|
-
readonly
|
|
633
|
-
readonly
|
|
634
|
-
readonly
|
|
635
|
-
readonly
|
|
636
|
-
readonly
|
|
637
|
-
readonly
|
|
638
|
-
readonly
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
readonly
|
|
642
|
-
}
|
|
643
|
-
readonly organizationRejectInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
644
|
-
readonly payload: import("effect/Schema").Struct.ReadonlySide<{
|
|
645
|
-
readonly invitationId: import("effect/Schema").String;
|
|
646
|
-
}, "Type">;
|
|
647
|
-
readonly responseMode?: Mode;
|
|
648
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
547
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
548
|
+
readonly organizationListUserInvitations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
549
|
+
readonly id: import("effect/Schema").String;
|
|
550
|
+
readonly email: import("effect/Schema").String;
|
|
551
|
+
readonly role: import("effect/Schema").String;
|
|
552
|
+
readonly organizationId: import("effect/Schema").String;
|
|
553
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
554
|
+
readonly inviterId: import("effect/Schema").String;
|
|
555
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
556
|
+
readonly status: import("effect/Schema").String;
|
|
557
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
558
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
559
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
560
|
+
readonly organizationRejectInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
561
|
+
readonly invitationId: import("effect/Schema").String;
|
|
562
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
649
563
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
650
564
|
readonly id: import("effect/Schema").String;
|
|
651
565
|
readonly email: import("effect/Schema").String;
|
|
@@ -665,14 +579,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
665
579
|
readonly role: import("effect/Schema").String;
|
|
666
580
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
667
581
|
}>>;
|
|
668
|
-
}
|
|
669
|
-
readonly organizationRemoveMember:
|
|
670
|
-
readonly
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
};
|
|
674
|
-
readonly responseMode?: Mode;
|
|
675
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
582
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
583
|
+
readonly organizationRemoveMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
584
|
+
readonly memberIdOrEmail: import("effect/Schema").String;
|
|
585
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
586
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
676
587
|
readonly member: import("effect/Schema").Struct<{
|
|
677
588
|
readonly id: import("effect/Schema").String;
|
|
678
589
|
readonly organizationId: import("effect/Schema").String;
|
|
@@ -680,335 +591,271 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
680
591
|
readonly role: import("effect/Schema").String;
|
|
681
592
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
682
593
|
}>;
|
|
683
|
-
}
|
|
684
|
-
readonly organizationSetActive:
|
|
685
|
-
readonly
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
readonly
|
|
690
|
-
|
|
691
|
-
readonly
|
|
692
|
-
readonly
|
|
693
|
-
readonly
|
|
694
|
-
readonly
|
|
695
|
-
readonly
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
readonly
|
|
699
|
-
readonly
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
readonly
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
readonly
|
|
718
|
-
readonly
|
|
719
|
-
readonly
|
|
720
|
-
|
|
721
|
-
readonly metadata?: string | {
|
|
722
|
-
readonly [x: string]: import("effect/Schema").Json;
|
|
723
|
-
} | null | undefined;
|
|
724
|
-
readonly userId?: string | null | undefined;
|
|
725
|
-
readonly parentId?: string | null | undefined;
|
|
726
|
-
readonly createdAt: Date;
|
|
727
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
728
|
-
readonly organizationUpdateMemberRole: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
729
|
-
readonly payload: {
|
|
730
|
-
readonly role: string | readonly string[];
|
|
731
|
-
readonly memberId: string;
|
|
732
|
-
readonly organizationId?: string | undefined;
|
|
733
|
-
};
|
|
734
|
-
readonly responseMode?: Mode;
|
|
735
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
594
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
595
|
+
readonly organizationSetActive: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
596
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
597
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
598
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
599
|
+
readonly id: import("effect/Schema").String;
|
|
600
|
+
readonly name: import("effect/Schema").String;
|
|
601
|
+
readonly slug: import("effect/Schema").String;
|
|
602
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
603
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
604
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
605
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
606
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
607
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
608
|
+
readonly organizationUpdate: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
609
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
610
|
+
readonly data: import("effect/Schema").Struct<{
|
|
611
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
612
|
+
readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
613
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
614
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
615
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
616
|
+
}>;
|
|
617
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
618
|
+
readonly id: import("effect/Schema").String;
|
|
619
|
+
readonly name: import("effect/Schema").String;
|
|
620
|
+
readonly slug: import("effect/Schema").String;
|
|
621
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
622
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
623
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
624
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
625
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
626
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
627
|
+
readonly organizationUpdateMemberRole: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
628
|
+
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
629
|
+
readonly memberId: import("effect/Schema").String;
|
|
630
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
631
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
736
632
|
readonly id: import("effect/Schema").String;
|
|
737
633
|
readonly organizationId: import("effect/Schema").String;
|
|
738
634
|
readonly userId: import("effect/Schema").String;
|
|
739
635
|
readonly role: import("effect/Schema").String;
|
|
740
636
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
741
|
-
}
|
|
742
|
-
readonly requestPasswordReset:
|
|
743
|
-
readonly
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
};
|
|
747
|
-
readonly responseMode?: Mode;
|
|
748
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
637
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
638
|
+
readonly requestPasswordReset: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
639
|
+
readonly email: import("effect/Schema").String;
|
|
640
|
+
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
641
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
749
642
|
readonly status: import("effect/Schema").Boolean;
|
|
750
643
|
readonly message: import("effect/Schema").String;
|
|
751
|
-
}
|
|
752
|
-
readonly resetPassword:
|
|
753
|
-
readonly
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
};
|
|
757
|
-
readonly responseMode?: Mode;
|
|
758
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
644
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
645
|
+
readonly resetPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
646
|
+
readonly newPassword: import("effect/Schema").String;
|
|
647
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
648
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
759
649
|
readonly status: import("effect/Schema").Boolean;
|
|
760
|
-
}
|
|
761
|
-
readonly sendVerificationOtp:
|
|
762
|
-
readonly
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
}, "Type">;
|
|
766
|
-
readonly responseMode?: Mode;
|
|
767
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
650
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
651
|
+
readonly sendVerificationOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
652
|
+
readonly email: import("effect/Schema").String;
|
|
653
|
+
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
654
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
768
655
|
readonly success: import("effect/Schema").Boolean;
|
|
769
|
-
}
|
|
770
|
-
readonly signInEmail:
|
|
771
|
-
readonly
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
readonly
|
|
779
|
-
|
|
780
|
-
readonly
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
readonly
|
|
785
|
-
readonly
|
|
786
|
-
readonly
|
|
787
|
-
readonly
|
|
788
|
-
readonly
|
|
789
|
-
readonly
|
|
790
|
-
readonly
|
|
791
|
-
readonly
|
|
792
|
-
readonly
|
|
793
|
-
readonly
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
readonly
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
readonly
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
readonly
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
readonly
|
|
815
|
-
readonly
|
|
816
|
-
readonly
|
|
817
|
-
readonly
|
|
818
|
-
readonly
|
|
819
|
-
readonly
|
|
820
|
-
readonly
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
readonly
|
|
832
|
-
readonly
|
|
833
|
-
readonly
|
|
834
|
-
readonly
|
|
835
|
-
readonly
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
readonly
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
readonly
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
readonly
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
readonly
|
|
865
|
-
readonly
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
readonly banned: boolean | null;
|
|
871
|
-
readonly banReason?: string | null | undefined;
|
|
872
|
-
readonly banExpires?: Date | null | undefined;
|
|
873
|
-
readonly twoFactorEnabled?: boolean | undefined;
|
|
874
|
-
readonly lastLoginMethod?: string | null | undefined;
|
|
875
|
-
readonly createdAt: Date;
|
|
876
|
-
readonly updatedAt: Date;
|
|
877
|
-
} | undefined;
|
|
878
|
-
readonly status?: boolean | undefined;
|
|
879
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
880
|
-
readonly signOut: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
881
|
-
readonly responseMode?: Mode;
|
|
882
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
656
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
657
|
+
readonly signInEmail: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
658
|
+
readonly email: import("effect/Schema").String;
|
|
659
|
+
readonly password: import("effect/Schema").String;
|
|
660
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
661
|
+
readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
662
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
663
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
664
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
665
|
+
readonly token: import("effect/Schema").String;
|
|
666
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
667
|
+
readonly user: import("effect/Schema").Struct<{
|
|
668
|
+
readonly id: import("effect/Schema").String;
|
|
669
|
+
readonly name: import("effect/Schema").String;
|
|
670
|
+
readonly email: import("effect/Schema").String;
|
|
671
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
672
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
673
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
674
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
675
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
676
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
677
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
678
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
679
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
680
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
681
|
+
}>;
|
|
682
|
+
}>, import("effect/Schema").Struct<{
|
|
683
|
+
readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
|
|
684
|
+
readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
685
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
686
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
687
|
+
readonly signInEmailOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
688
|
+
readonly email: import("effect/Schema").String;
|
|
689
|
+
readonly otp: import("effect/Schema").String;
|
|
690
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
691
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
692
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
693
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
694
|
+
readonly user: import("effect/Schema").Struct<{
|
|
695
|
+
readonly id: import("effect/Schema").String;
|
|
696
|
+
readonly name: import("effect/Schema").String;
|
|
697
|
+
readonly email: import("effect/Schema").String;
|
|
698
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
699
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
700
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
701
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
702
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
703
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
704
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
705
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
706
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
707
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
708
|
+
}>;
|
|
709
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
710
|
+
readonly signInSocial: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
711
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
712
|
+
readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
713
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
714
|
+
readonly provider: import("effect/Schema").String;
|
|
715
|
+
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
716
|
+
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
717
|
+
readonly token: import("effect/Schema").String;
|
|
718
|
+
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
719
|
+
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
720
|
+
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
721
|
+
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
722
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
723
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
724
|
+
readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
725
|
+
readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
726
|
+
}>>;
|
|
727
|
+
readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
728
|
+
}>>;
|
|
729
|
+
}>>;
|
|
730
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
731
|
+
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
732
|
+
readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
733
|
+
readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
734
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
735
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
736
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
737
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
738
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
739
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
740
|
+
readonly id: import("effect/Schema").String;
|
|
741
|
+
readonly name: import("effect/Schema").String;
|
|
742
|
+
readonly email: import("effect/Schema").String;
|
|
743
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
744
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
745
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
746
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
747
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
748
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
749
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
750
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
751
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
752
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
753
|
+
}>>;
|
|
754
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
755
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
756
|
+
readonly signOut: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
883
757
|
readonly success: import("effect/Schema").Boolean;
|
|
884
|
-
}
|
|
885
|
-
readonly twoFactorDisable:
|
|
886
|
-
readonly
|
|
887
|
-
|
|
888
|
-
};
|
|
889
|
-
readonly responseMode?: Mode;
|
|
890
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
758
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
759
|
+
readonly twoFactorDisable: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
760
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
761
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
891
762
|
readonly status: import("effect/Schema").Boolean;
|
|
892
|
-
}
|
|
893
|
-
readonly twoFactorEnable:
|
|
894
|
-
readonly
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
};
|
|
898
|
-
readonly responseMode?: Mode;
|
|
899
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
763
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
764
|
+
readonly twoFactorEnable: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
765
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
766
|
+
readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
767
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
900
768
|
readonly totpURI: import("effect/Schema").String;
|
|
901
769
|
readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
902
|
-
}
|
|
903
|
-
readonly twoFactorSendOtp:
|
|
904
|
-
readonly
|
|
905
|
-
|
|
906
|
-
};
|
|
907
|
-
readonly responseMode?: Mode;
|
|
908
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
770
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
771
|
+
readonly twoFactorSendOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
772
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
773
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
909
774
|
readonly status: import("effect/Schema").Boolean;
|
|
910
|
-
}
|
|
911
|
-
readonly twoFactorVerifyBackupCode:
|
|
912
|
-
readonly
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
readonly
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
readonly
|
|
923
|
-
readonly
|
|
924
|
-
readonly
|
|
925
|
-
readonly
|
|
926
|
-
readonly
|
|
927
|
-
readonly
|
|
928
|
-
readonly
|
|
929
|
-
readonly
|
|
930
|
-
readonly
|
|
931
|
-
readonly
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
readonly
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
readonly
|
|
948
|
-
readonly
|
|
949
|
-
readonly
|
|
950
|
-
readonly
|
|
951
|
-
readonly
|
|
952
|
-
readonly
|
|
953
|
-
readonly
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
readonly
|
|
965
|
-
readonly
|
|
966
|
-
readonly
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
readonly
|
|
973
|
-
readonly
|
|
974
|
-
readonly
|
|
975
|
-
readonly
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
readonly lastLoginMethod?: string | null | undefined;
|
|
983
|
-
readonly createdAt: Date;
|
|
984
|
-
readonly updatedAt: Date;
|
|
985
|
-
};
|
|
986
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
987
|
-
readonly unlinkAccount: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
988
|
-
readonly payload: {
|
|
989
|
-
readonly providerId: string;
|
|
990
|
-
readonly accountId?: string | undefined;
|
|
991
|
-
};
|
|
992
|
-
readonly responseMode?: Mode;
|
|
993
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
775
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
776
|
+
readonly twoFactorVerifyBackupCode: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
777
|
+
readonly code: import("effect/Schema").String;
|
|
778
|
+
readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
779
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
780
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
781
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
782
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
783
|
+
readonly user: import("effect/Schema").Struct<{
|
|
784
|
+
readonly id: import("effect/Schema").String;
|
|
785
|
+
readonly name: import("effect/Schema").String;
|
|
786
|
+
readonly email: import("effect/Schema").String;
|
|
787
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
788
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
789
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
790
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
791
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
792
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
793
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
794
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
795
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
796
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
797
|
+
}>;
|
|
798
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
799
|
+
readonly twoFactorVerifyOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
800
|
+
readonly code: import("effect/Schema").String;
|
|
801
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
802
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
803
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
804
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
805
|
+
readonly user: import("effect/Schema").Struct<{
|
|
806
|
+
readonly id: import("effect/Schema").String;
|
|
807
|
+
readonly name: import("effect/Schema").String;
|
|
808
|
+
readonly email: import("effect/Schema").String;
|
|
809
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
810
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
811
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
812
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
813
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
814
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
815
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
816
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
817
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
818
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
819
|
+
}>;
|
|
820
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
821
|
+
readonly twoFactorVerifyTotp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
822
|
+
readonly code: import("effect/Schema").String;
|
|
823
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
824
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
825
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
826
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
827
|
+
readonly user: import("effect/Schema").Struct<{
|
|
828
|
+
readonly id: import("effect/Schema").String;
|
|
829
|
+
readonly name: import("effect/Schema").String;
|
|
830
|
+
readonly email: import("effect/Schema").String;
|
|
831
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
832
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
833
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
834
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
835
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
836
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
837
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
838
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
839
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
840
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
841
|
+
}>;
|
|
842
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
843
|
+
readonly unlinkAccount: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
844
|
+
readonly providerId: import("effect/Schema").String;
|
|
845
|
+
readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
846
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
994
847
|
readonly status: import("effect/Schema").Boolean;
|
|
995
|
-
}
|
|
996
|
-
readonly updateUser:
|
|
997
|
-
readonly
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
};
|
|
1001
|
-
readonly responseMode?: Mode;
|
|
1002
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
848
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
849
|
+
readonly updateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
850
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
851
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
852
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1003
853
|
readonly status: import("effect/Schema").Boolean;
|
|
1004
|
-
}
|
|
1005
|
-
readonly verifyEmailOtp:
|
|
1006
|
-
readonly
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
}, "Type">;
|
|
1010
|
-
readonly responseMode?: Mode;
|
|
1011
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
854
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
855
|
+
readonly verifyEmailOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
856
|
+
readonly email: import("effect/Schema").String;
|
|
857
|
+
readonly otp: import("effect/Schema").String;
|
|
858
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1012
859
|
readonly status: import("effect/Schema").Literal<true>;
|
|
1013
860
|
readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1014
861
|
readonly user: import("effect/Schema").Struct<{
|
|
@@ -1026,90 +873,79 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1026
873
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1027
874
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1028
875
|
}>;
|
|
1029
|
-
}
|
|
876
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1030
877
|
};
|
|
1031
878
|
authExtra: {
|
|
1032
|
-
readonly createApiKey:
|
|
1033
|
-
readonly
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
} | undefined;
|
|
1040
|
-
readonly referrers?: readonly string[] | undefined;
|
|
1041
|
-
};
|
|
1042
|
-
readonly responseMode?: Mode;
|
|
1043
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
879
|
+
readonly createApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
880
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
881
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
882
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
883
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
884
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
885
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1044
886
|
readonly id: import("effect/Schema").String;
|
|
1045
887
|
readonly key: import("effect/Schema").String;
|
|
1046
|
-
}
|
|
1047
|
-
readonly getOrganizationPublicProfile:
|
|
1048
|
-
readonly
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
readonly
|
|
1053
|
-
|
|
1054
|
-
readonly
|
|
1055
|
-
readonly
|
|
1056
|
-
readonly
|
|
1057
|
-
readonly displayName: string;
|
|
1058
|
-
readonly contactEmail: string | null;
|
|
1059
|
-
readonly emails?: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
888
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
889
|
+
readonly getOrganizationPublicProfile: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
890
|
+
readonly organizationId: import("effect/Schema").String;
|
|
891
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
892
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
893
|
+
readonly id: import("effect/Schema").String;
|
|
894
|
+
readonly name: import("effect/Schema").String;
|
|
895
|
+
readonly slug: import("effect/Schema").String;
|
|
896
|
+
readonly displayName: import("effect/Schema").String;
|
|
897
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
898
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1060
899
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
1061
900
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1062
901
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1063
902
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1064
903
|
}>>;
|
|
1065
|
-
}
|
|
1066
|
-
readonly phones
|
|
1067
|
-
readonly number:
|
|
1068
|
-
readonly extension
|
|
1069
|
-
readonly translations:
|
|
904
|
+
}>>>;
|
|
905
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
906
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
907
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
908
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1070
909
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1071
910
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
readonly websites
|
|
911
|
+
}>>;
|
|
912
|
+
}>>>;
|
|
913
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1075
914
|
readonly url: import("effect/Schema").NonEmptyString;
|
|
1076
915
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1077
916
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1078
917
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1079
918
|
}>>;
|
|
1080
|
-
}
|
|
1081
|
-
readonly socials
|
|
919
|
+
}>>>;
|
|
920
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1082
921
|
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1083
922
|
readonly url: import("effect/Schema").NonEmptyString;
|
|
1084
923
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1085
924
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1086
925
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1087
926
|
}>>;
|
|
1088
|
-
}
|
|
1089
|
-
readonly addresses
|
|
1090
|
-
readonly streetAddress
|
|
1091
|
-
readonly locality
|
|
1092
|
-
readonly region
|
|
1093
|
-
readonly postalCode
|
|
1094
|
-
readonly country
|
|
1095
|
-
readonly translations:
|
|
927
|
+
}>>>;
|
|
928
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
929
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
930
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
931
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
932
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
933
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
934
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1096
935
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1097
936
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1098
|
-
}
|
|
1099
|
-
readonly formatted:
|
|
1100
|
-
}
|
|
1101
|
-
readonly logo:
|
|
1102
|
-
readonly icon:
|
|
1103
|
-
}
|
|
1104
|
-
readonly getProjectPublicConfig:
|
|
1105
|
-
readonly
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
};
|
|
1111
|
-
readonly responseMode?: Mode;
|
|
1112
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
937
|
+
}>>;
|
|
938
|
+
readonly formatted: import("effect/Schema").String;
|
|
939
|
+
}>>>;
|
|
940
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
941
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
942
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
943
|
+
readonly getProjectPublicConfig: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
944
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
945
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
946
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
947
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
948
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1113
949
|
readonly projectKey: import("effect/Schema").String;
|
|
1114
950
|
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1115
951
|
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -1121,45 +957,32 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1121
957
|
readonly emailOtp: import("effect/Schema").Boolean;
|
|
1122
958
|
readonly google: import("effect/Schema").Boolean;
|
|
1123
959
|
}>;
|
|
1124
|
-
}
|
|
1125
|
-
readonly setPassword:
|
|
1126
|
-
readonly
|
|
1127
|
-
|
|
1128
|
-
}, "Type">;
|
|
1129
|
-
readonly responseMode?: Mode;
|
|
1130
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
960
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
961
|
+
readonly setPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
962
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
963
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1131
964
|
readonly ok: import("effect/Schema").Boolean;
|
|
1132
|
-
}
|
|
1133
|
-
readonly updateApiKey:
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
readonly
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
readonly [x: string]: readonly string[];
|
|
1143
|
-
} | undefined;
|
|
1144
|
-
readonly referrers?: readonly string[] | undefined;
|
|
1145
|
-
};
|
|
1146
|
-
readonly responseMode?: Mode;
|
|
1147
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
965
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
966
|
+
readonly updateApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
967
|
+
keyId: import("effect/Schema").NonEmptyString;
|
|
968
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
969
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
970
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
971
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
972
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
973
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
974
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1148
975
|
readonly ok: import("effect/Schema").Boolean;
|
|
1149
|
-
}
|
|
1150
|
-
readonly uploadUserImage:
|
|
1151
|
-
readonly
|
|
1152
|
-
|
|
1153
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
976
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
977
|
+
readonly uploadUserImage: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
978
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
979
|
+
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1154
980
|
readonly url: import("effect/Schema").String;
|
|
1155
|
-
}
|
|
1156
|
-
readonly verifyApiKey:
|
|
1157
|
-
readonly
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
};
|
|
1161
|
-
readonly responseMode?: Mode;
|
|
1162
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
981
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
982
|
+
readonly verifyApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
983
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
984
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
|
|
985
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1163
986
|
readonly valid: import("effect/Schema").Boolean;
|
|
1164
987
|
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1165
988
|
readonly message: import("effect/Schema").String;
|
|
@@ -1179,126 +1002,105 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1179
1002
|
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1180
1003
|
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
1181
1004
|
}>>;
|
|
1182
|
-
}
|
|
1183
|
-
readonly verifyPassword:
|
|
1184
|
-
readonly
|
|
1185
|
-
|
|
1186
|
-
}, "Type">;
|
|
1187
|
-
readonly responseMode?: Mode;
|
|
1188
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1005
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
1006
|
+
readonly verifyPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1007
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
1008
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1189
1009
|
readonly ok: import("effect/Schema").Boolean;
|
|
1190
|
-
}
|
|
1010
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
1191
1011
|
};
|
|
1192
1012
|
domains: {
|
|
1193
|
-
readonly createDomain:
|
|
1194
|
-
readonly
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
readonly
|
|
1202
|
-
|
|
1203
|
-
readonly
|
|
1204
|
-
readonly
|
|
1205
|
-
readonly
|
|
1206
|
-
readonly
|
|
1207
|
-
readonly
|
|
1208
|
-
readonly
|
|
1209
|
-
readonly
|
|
1210
|
-
readonly
|
|
1211
|
-
readonly
|
|
1212
|
-
readonly
|
|
1213
|
-
readonly
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
readonly
|
|
1217
|
-
},
|
|
1218
|
-
|
|
1219
|
-
readonly
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
readonly
|
|
1223
|
-
|
|
1224
|
-
readonly
|
|
1225
|
-
readonly
|
|
1226
|
-
readonly
|
|
1227
|
-
readonly
|
|
1228
|
-
readonly
|
|
1229
|
-
readonly
|
|
1230
|
-
readonly
|
|
1231
|
-
readonly
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
readonly
|
|
1235
|
-
|
|
1236
|
-
readonly
|
|
1237
|
-
readonly
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
readonly
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
readonly
|
|
1244
|
-
|
|
1245
|
-
readonly
|
|
1246
|
-
readonly
|
|
1247
|
-
readonly
|
|
1248
|
-
readonly
|
|
1249
|
-
readonly
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
readonly
|
|
1253
|
-
|
|
1254
|
-
readonly
|
|
1255
|
-
readonly
|
|
1256
|
-
readonly
|
|
1257
|
-
readonly
|
|
1258
|
-
readonly
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
readonly
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
readonly
|
|
1265
|
-
|
|
1266
|
-
readonly
|
|
1267
|
-
readonly
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
readonly
|
|
1271
|
-
|
|
1272
|
-
readonly organizationId: string | null;
|
|
1273
|
-
readonly organizationName?: string | null | undefined;
|
|
1274
|
-
readonly organizationLogo?: string | null | undefined;
|
|
1275
|
-
readonly hostnameId: string;
|
|
1276
|
-
readonly managed: boolean;
|
|
1277
|
-
readonly active: boolean;
|
|
1278
|
-
readonly createdAt: Date;
|
|
1279
|
-
readonly updatedAt: Date;
|
|
1280
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
1281
|
-
readonly getDomainRecords: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1282
|
-
readonly params: import("effect/Schema").Struct.ReadonlySide<{
|
|
1283
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
1284
|
-
}, "Type">;
|
|
1285
|
-
readonly responseMode?: Mode;
|
|
1286
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
1013
|
+
readonly createDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1014
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
1015
|
+
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
1016
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1017
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1018
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1019
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1020
|
+
readonly id: import("effect/Schema").String;
|
|
1021
|
+
readonly hostname: import("effect/Schema").String;
|
|
1022
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1023
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1024
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1025
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1026
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1027
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1028
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1029
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1030
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1031
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1032
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1033
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1034
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1035
|
+
readonly deleteDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1036
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1037
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1038
|
+
readonly id: import("effect/Schema").String;
|
|
1039
|
+
readonly hostname: import("effect/Schema").String;
|
|
1040
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1041
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1042
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1043
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1044
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1045
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1046
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1047
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1048
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1049
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1050
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1051
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1052
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1053
|
+
readonly getDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1054
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1055
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1056
|
+
readonly id: import("effect/Schema").String;
|
|
1057
|
+
readonly hostname: import("effect/Schema").String;
|
|
1058
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1059
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1060
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1061
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1062
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1063
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1064
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1065
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1066
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1067
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1068
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1069
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1070
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1071
|
+
readonly getDomainByHost: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1072
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
1073
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1074
|
+
readonly id: import("effect/Schema").String;
|
|
1075
|
+
readonly hostname: import("effect/Schema").String;
|
|
1076
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1077
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1078
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1079
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1080
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1081
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1082
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1083
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1084
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1085
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1086
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1087
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1088
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1089
|
+
readonly getDomainRecords: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1090
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1091
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1287
1092
|
readonly required: import("effect/Schema").Boolean;
|
|
1288
1093
|
readonly status: import("effect/Schema").String;
|
|
1289
1094
|
readonly type: import("effect/Schema").String;
|
|
1290
1095
|
readonly name: import("effect/Schema").String;
|
|
1291
1096
|
readonly value: import("effect/Schema").String;
|
|
1292
|
-
}
|
|
1097
|
+
}>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1293
1098
|
};
|
|
1294
1099
|
organizations: {
|
|
1295
|
-
readonly getActiveMember:
|
|
1296
|
-
readonly
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
}, "Type">;
|
|
1300
|
-
readonly responseMode?: Mode;
|
|
1301
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1100
|
+
readonly getActiveMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1101
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1102
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
1103
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1302
1104
|
readonly id: import("effect/Schema").String;
|
|
1303
1105
|
readonly organizationId: import("effect/Schema").String;
|
|
1304
1106
|
readonly userId: import("effect/Schema").String;
|
|
@@ -1316,13 +1118,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1316
1118
|
readonly createdAt: import("effect/Schema").Date;
|
|
1317
1119
|
readonly updatedAt: import("effect/Schema").Date;
|
|
1318
1120
|
}>;
|
|
1319
|
-
}
|
|
1320
|
-
readonly getOrganization:
|
|
1321
|
-
readonly
|
|
1322
|
-
|
|
1323
|
-
}, "Type">;
|
|
1324
|
-
readonly responseMode?: Mode;
|
|
1325
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1121
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1122
|
+
readonly getOrganization: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1123
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1124
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1326
1125
|
readonly id: import("effect/Schema").String;
|
|
1327
1126
|
readonly name: import("effect/Schema").String;
|
|
1328
1127
|
readonly slug: import("effect/Schema").String;
|
|
@@ -1380,13 +1179,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1380
1179
|
}>, import("effect/Schema").Unknown, never, never>>;
|
|
1381
1180
|
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1382
1181
|
readonly createdAt: import("effect/Schema").Date;
|
|
1383
|
-
}
|
|
1384
|
-
readonly getOrganizationChildren:
|
|
1385
|
-
readonly
|
|
1386
|
-
|
|
1387
|
-
}, "Type">;
|
|
1388
|
-
readonly responseMode?: Mode;
|
|
1389
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
1182
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1183
|
+
readonly getOrganizationChildren: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1184
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1185
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1390
1186
|
readonly id: import("effect/Schema").String;
|
|
1391
1187
|
readonly name: import("effect/Schema").String;
|
|
1392
1188
|
readonly slug: import("effect/Schema").String;
|
|
@@ -1444,13 +1240,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1444
1240
|
}>, import("effect/Schema").Unknown, never, never>>;
|
|
1445
1241
|
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1446
1242
|
readonly createdAt: import("effect/Schema").Date;
|
|
1447
|
-
}
|
|
1448
|
-
readonly listOrganizationMembers:
|
|
1449
|
-
readonly
|
|
1450
|
-
|
|
1451
|
-
}, "Type">;
|
|
1452
|
-
readonly responseMode?: Mode;
|
|
1453
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
1243
|
+
}>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1244
|
+
readonly listOrganizationMembers: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1245
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1246
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1454
1247
|
readonly id: import("effect/Schema").String;
|
|
1455
1248
|
readonly organizationId: import("effect/Schema").String;
|
|
1456
1249
|
readonly userId: import("effect/Schema").String;
|
|
@@ -1468,14 +1261,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1468
1261
|
readonly createdAt: import("effect/Schema").Date;
|
|
1469
1262
|
readonly updatedAt: import("effect/Schema").Date;
|
|
1470
1263
|
}>;
|
|
1471
|
-
}
|
|
1472
|
-
readonly listOrganizations:
|
|
1473
|
-
readonly
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
};
|
|
1477
|
-
readonly responseMode?: Mode;
|
|
1478
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1264
|
+
}>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1265
|
+
readonly listOrganizations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1266
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1267
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1268
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1479
1269
|
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1480
1270
|
readonly id: import("effect/Schema").String;
|
|
1481
1271
|
readonly name: import("effect/Schema").String;
|
|
@@ -1536,40 +1326,31 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1536
1326
|
readonly createdAt: import("effect/Schema").Date;
|
|
1537
1327
|
}>>;
|
|
1538
1328
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1539
|
-
}
|
|
1329
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1540
1330
|
};
|
|
1541
1331
|
users: {
|
|
1542
|
-
readonly getUser:
|
|
1543
|
-
readonly
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
readonly
|
|
1547
|
-
|
|
1548
|
-
readonly
|
|
1549
|
-
readonly
|
|
1550
|
-
readonly
|
|
1551
|
-
readonly
|
|
1552
|
-
readonly
|
|
1553
|
-
readonly
|
|
1554
|
-
readonly
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
readonly
|
|
1558
|
-
},
|
|
1559
|
-
readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1560
|
-
readonly params: import("effect/Schema").Struct.ReadonlySide<{
|
|
1561
|
-
readonly userId: import("effect/Schema").NonEmptyString;
|
|
1562
|
-
}, "Type">;
|
|
1563
|
-
readonly responseMode?: Mode;
|
|
1564
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1332
|
+
readonly getUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1333
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1334
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1335
|
+
readonly id: import("effect/Schema").String;
|
|
1336
|
+
readonly name: import("effect/Schema").String;
|
|
1337
|
+
readonly email: import("effect/Schema").String;
|
|
1338
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1339
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1340
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1341
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1342
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1343
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1344
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1345
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1346
|
+
readonly getUserActiveOrganization: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1347
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
1348
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1565
1349
|
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1566
|
-
}
|
|
1567
|
-
readonly listUsersByIds:
|
|
1568
|
-
readonly
|
|
1569
|
-
|
|
1570
|
-
}, "Type">;
|
|
1571
|
-
readonly responseMode?: Mode;
|
|
1572
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1350
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1351
|
+
readonly listUsersByIds: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1352
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
1353
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1573
1354
|
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1574
1355
|
readonly id: import("effect/Schema").String;
|
|
1575
1356
|
readonly name: import("effect/Schema").String;
|
|
@@ -1583,7 +1364,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1583
1364
|
readonly updatedAt: import("effect/Schema").Date;
|
|
1584
1365
|
}>>;
|
|
1585
1366
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1586
|
-
}
|
|
1367
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
1587
1368
|
};
|
|
1588
1369
|
}> & {
|
|
1589
1370
|
readonly make: (options?: AuthServiceLayerOptions) => Effect.Effect<{
|
|
@@ -1597,14 +1378,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1597
1378
|
readonly userId: string;
|
|
1598
1379
|
}) => Effect.Effect<string, import("effect/unstable/http/HttpClientError").HttpClientError | HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized, never>;
|
|
1599
1380
|
auth: {
|
|
1600
|
-
readonly adminBanUser:
|
|
1601
|
-
readonly
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
};
|
|
1606
|
-
readonly responseMode?: Mode;
|
|
1607
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1381
|
+
readonly adminBanUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1382
|
+
readonly userId: import("effect/Schema").String;
|
|
1383
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1384
|
+
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
1385
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1608
1386
|
readonly user: import("effect/Schema").Struct<{
|
|
1609
1387
|
readonly id: import("effect/Schema").String;
|
|
1610
1388
|
readonly name: import("effect/Schema").String;
|
|
@@ -1620,13 +1398,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1620
1398
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1621
1399
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1622
1400
|
}>;
|
|
1623
|
-
}
|
|
1624
|
-
readonly adminImpersonateUser:
|
|
1625
|
-
readonly
|
|
1626
|
-
|
|
1627
|
-
}, "Type">;
|
|
1628
|
-
readonly responseMode?: Mode;
|
|
1629
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1401
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1402
|
+
readonly adminImpersonateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1403
|
+
readonly userId: import("effect/Schema").String;
|
|
1404
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1630
1405
|
readonly session: import("effect/Schema").Struct<{
|
|
1631
1406
|
readonly id: import("effect/Schema").String;
|
|
1632
1407
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -1655,10 +1430,8 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1655
1430
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1656
1431
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1657
1432
|
}>;
|
|
1658
|
-
}
|
|
1659
|
-
readonly adminStopImpersonating:
|
|
1660
|
-
readonly responseMode?: Mode;
|
|
1661
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1433
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1434
|
+
readonly adminStopImpersonating: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1662
1435
|
readonly session: import("effect/Schema").Struct<{
|
|
1663
1436
|
readonly id: import("effect/Schema").String;
|
|
1664
1437
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -1687,13 +1460,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1687
1460
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1688
1461
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1689
1462
|
}>;
|
|
1690
|
-
}
|
|
1691
|
-
readonly adminUnbanUser:
|
|
1692
|
-
readonly
|
|
1693
|
-
|
|
1694
|
-
}, "Type">;
|
|
1695
|
-
readonly responseMode?: Mode;
|
|
1696
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1463
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1464
|
+
readonly adminUnbanUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1465
|
+
readonly userId: import("effect/Schema").String;
|
|
1466
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1697
1467
|
readonly user: import("effect/Schema").Struct<{
|
|
1698
1468
|
readonly id: import("effect/Schema").String;
|
|
1699
1469
|
readonly name: import("effect/Schema").String;
|
|
@@ -1709,98 +1479,82 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1709
1479
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1710
1480
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1711
1481
|
}>;
|
|
1712
|
-
}
|
|
1713
|
-
readonly apiKeyDelete:
|
|
1714
|
-
readonly
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
};
|
|
1718
|
-
readonly responseMode?: Mode;
|
|
1719
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1482
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1483
|
+
readonly apiKeyDelete: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1484
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1485
|
+
readonly keyId: import("effect/Schema").String;
|
|
1486
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1720
1487
|
readonly success: import("effect/Schema").Boolean;
|
|
1721
|
-
}
|
|
1722
|
-
readonly apiKeyList:
|
|
1723
|
-
readonly
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
readonly responseMode?: Mode;
|
|
1732
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1733
|
-
readonly apiKeys: readonly {
|
|
1734
|
-
readonly id: string;
|
|
1735
|
-
readonly name: string | null;
|
|
1736
|
-
readonly start: string | null;
|
|
1737
|
-
readonly prefix: string | null;
|
|
1738
|
-
readonly userId?: string | undefined;
|
|
1739
|
-
readonly referenceId: string;
|
|
1740
|
-
readonly configId: string;
|
|
1741
|
-
readonly refillInterval: number | null;
|
|
1742
|
-
readonly refillAmount: number | null;
|
|
1743
|
-
readonly lastRefillAt: Date | null;
|
|
1744
|
-
readonly enabled: boolean;
|
|
1745
|
-
readonly rateLimitEnabled: boolean;
|
|
1746
|
-
readonly rateLimitTimeWindow: number | null;
|
|
1747
|
-
readonly rateLimitMax: number | null;
|
|
1748
|
-
readonly requestCount: number;
|
|
1749
|
-
readonly remaining: number | null;
|
|
1750
|
-
readonly lastRequest: Date | null;
|
|
1751
|
-
readonly expiresAt: Date | null;
|
|
1752
|
-
readonly createdAt: Date;
|
|
1753
|
-
readonly updatedAt: Date;
|
|
1754
|
-
readonly metadata: {
|
|
1755
|
-
readonly [x: string]: import("effect/Schema").Json;
|
|
1756
|
-
} | null;
|
|
1757
|
-
readonly permissions?: {
|
|
1758
|
-
readonly [x: string]: readonly string[];
|
|
1759
|
-
} | null | undefined;
|
|
1760
|
-
readonly referrers?: readonly string[] | null | undefined;
|
|
1761
|
-
}[];
|
|
1762
|
-
readonly total: number;
|
|
1763
|
-
readonly limit?: number | null | undefined;
|
|
1764
|
-
readonly offset?: number | null | undefined;
|
|
1765
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1766
|
-
readonly changePassword: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1767
|
-
readonly payload: {
|
|
1768
|
-
readonly newPassword: string;
|
|
1769
|
-
readonly currentPassword: string;
|
|
1770
|
-
readonly revokeOtherSessions?: boolean | undefined;
|
|
1771
|
-
};
|
|
1772
|
-
readonly responseMode?: Mode;
|
|
1773
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1774
|
-
readonly token?: string | null | undefined;
|
|
1775
|
-
readonly user: {
|
|
1776
|
-
readonly id: string;
|
|
1777
|
-
readonly name: string;
|
|
1778
|
-
readonly email: string;
|
|
1779
|
-
readonly emailVerified: boolean;
|
|
1780
|
-
readonly image: string | null;
|
|
1781
|
-
readonly role: string | null;
|
|
1782
|
-
readonly banned: boolean | null;
|
|
1783
|
-
readonly banReason?: string | null | undefined;
|
|
1784
|
-
readonly banExpires?: Date | null | undefined;
|
|
1785
|
-
readonly twoFactorEnabled?: boolean | undefined;
|
|
1786
|
-
readonly lastLoginMethod?: string | null | undefined;
|
|
1787
|
-
readonly createdAt: Date;
|
|
1788
|
-
readonly updatedAt: Date;
|
|
1789
|
-
};
|
|
1790
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1791
|
-
readonly getSession: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1792
|
-
readonly query: {
|
|
1793
|
-
readonly disableCookieCache?: string | undefined;
|
|
1794
|
-
readonly disableRefresh?: string | undefined;
|
|
1795
|
-
};
|
|
1796
|
-
readonly responseMode?: Mode;
|
|
1797
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1798
|
-
readonly session: import("effect/Schema").Struct<{
|
|
1488
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1489
|
+
readonly apiKeyList: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1490
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1491
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1492
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1493
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1494
|
+
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1495
|
+
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
1496
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1497
|
+
readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1799
1498
|
readonly id: import("effect/Schema").String;
|
|
1800
|
-
readonly
|
|
1801
|
-
readonly
|
|
1802
|
-
readonly
|
|
1803
|
-
readonly
|
|
1499
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1500
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1501
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1502
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1503
|
+
readonly referenceId: import("effect/Schema").String;
|
|
1504
|
+
readonly configId: import("effect/Schema").String;
|
|
1505
|
+
readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
1506
|
+
readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
1507
|
+
readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
1508
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
1509
|
+
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
1510
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
1511
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
1512
|
+
readonly requestCount: import("effect/Schema").Number;
|
|
1513
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
1514
|
+
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
1515
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
1516
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1517
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1518
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
1519
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
|
|
1520
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1521
|
+
}>>;
|
|
1522
|
+
readonly total: import("effect/Schema").Number;
|
|
1523
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
1524
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
1525
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1526
|
+
readonly changePassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1527
|
+
readonly newPassword: import("effect/Schema").String;
|
|
1528
|
+
readonly currentPassword: import("effect/Schema").String;
|
|
1529
|
+
readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1530
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1531
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1532
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1533
|
+
readonly id: import("effect/Schema").String;
|
|
1534
|
+
readonly name: import("effect/Schema").String;
|
|
1535
|
+
readonly email: import("effect/Schema").String;
|
|
1536
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1537
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1538
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1539
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1540
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1541
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1542
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1543
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1544
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1545
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1546
|
+
}>;
|
|
1547
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1548
|
+
readonly getSession: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1549
|
+
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1550
|
+
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1551
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1552
|
+
readonly session: import("effect/Schema").Struct<{
|
|
1553
|
+
readonly id: import("effect/Schema").String;
|
|
1554
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1555
|
+
readonly token: import("effect/Schema").String;
|
|
1556
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1557
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1804
1558
|
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1805
1559
|
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1806
1560
|
readonly userId: import("effect/Schema").String;
|
|
@@ -1823,51 +1577,44 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1823
1577
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1824
1578
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1825
1579
|
}>;
|
|
1826
|
-
}
|
|
1827
|
-
readonly linkSocial:
|
|
1828
|
-
readonly
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
readonly
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
readonly
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
readonly
|
|
1853
|
-
readonly
|
|
1854
|
-
readonly
|
|
1855
|
-
readonly
|
|
1856
|
-
readonly
|
|
1857
|
-
readonly
|
|
1858
|
-
readonly
|
|
1859
|
-
readonly
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
readonly updatedAt: Date;
|
|
1865
|
-
} | undefined;
|
|
1866
|
-
readonly status?: boolean | undefined;
|
|
1867
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1868
|
-
readonly listAccounts: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1869
|
-
readonly responseMode?: Mode;
|
|
1870
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
1580
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1581
|
+
readonly linkSocial: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1582
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1583
|
+
readonly provider: import("effect/Schema").String;
|
|
1584
|
+
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1585
|
+
readonly token: import("effect/Schema").String;
|
|
1586
|
+
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1587
|
+
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1588
|
+
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1589
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1590
|
+
}>>;
|
|
1591
|
+
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1592
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1593
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1594
|
+
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1595
|
+
readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
1596
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1597
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1598
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
1599
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1600
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1601
|
+
readonly id: import("effect/Schema").String;
|
|
1602
|
+
readonly name: import("effect/Schema").String;
|
|
1603
|
+
readonly email: import("effect/Schema").String;
|
|
1604
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1605
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1606
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1607
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1608
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1609
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1610
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1611
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1612
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1613
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1614
|
+
}>>;
|
|
1615
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1616
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1617
|
+
readonly listAccounts: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1871
1618
|
readonly id: import("effect/Schema").String;
|
|
1872
1619
|
readonly providerId: import("effect/Schema").String;
|
|
1873
1620
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -1875,39 +1622,30 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1875
1622
|
readonly accountId: import("effect/Schema").String;
|
|
1876
1623
|
readonly userId: import("effect/Schema").String;
|
|
1877
1624
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1878
|
-
}
|
|
1879
|
-
readonly oauthConsent:
|
|
1880
|
-
readonly
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
};
|
|
1885
|
-
readonly responseMode?: Mode;
|
|
1886
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1625
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1626
|
+
readonly oauthConsent: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1627
|
+
readonly accept: import("effect/Schema").Boolean;
|
|
1628
|
+
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1629
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1630
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1887
1631
|
readonly redirect: import("effect/Schema").Boolean;
|
|
1888
1632
|
readonly url: import("effect/Schema").String;
|
|
1889
|
-
}
|
|
1890
|
-
readonly oauthPublicClient:
|
|
1891
|
-
readonly
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
readonly
|
|
1895
|
-
|
|
1896
|
-
readonly
|
|
1897
|
-
readonly
|
|
1898
|
-
readonly
|
|
1899
|
-
readonly
|
|
1900
|
-
readonly
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
readonly
|
|
1904
|
-
},
|
|
1905
|
-
readonly organizationAcceptInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1906
|
-
readonly payload: import("effect/Schema").Struct.ReadonlySide<{
|
|
1907
|
-
readonly invitationId: import("effect/Schema").String;
|
|
1908
|
-
}, "Type">;
|
|
1909
|
-
readonly responseMode?: Mode;
|
|
1910
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1633
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1634
|
+
readonly oauthPublicClient: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1635
|
+
readonly client_id: import("effect/Schema").String;
|
|
1636
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1637
|
+
readonly client_id: import("effect/Schema").String;
|
|
1638
|
+
readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1639
|
+
readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1640
|
+
readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1641
|
+
readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1642
|
+
readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1643
|
+
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1644
|
+
readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1645
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1646
|
+
readonly organizationAcceptInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1647
|
+
readonly invitationId: import("effect/Schema").String;
|
|
1648
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1911
1649
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1912
1650
|
readonly id: import("effect/Schema").String;
|
|
1913
1651
|
readonly email: import("effect/Schema").String;
|
|
@@ -1927,67 +1665,52 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
1927
1665
|
readonly role: import("effect/Schema").String;
|
|
1928
1666
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1929
1667
|
}>>;
|
|
1930
|
-
}
|
|
1931
|
-
readonly organizationCancelInvitation:
|
|
1932
|
-
readonly
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
readonly
|
|
1936
|
-
|
|
1937
|
-
readonly
|
|
1938
|
-
readonly
|
|
1939
|
-
readonly
|
|
1940
|
-
readonly
|
|
1941
|
-
readonly
|
|
1942
|
-
readonly
|
|
1943
|
-
readonly
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
readonly
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
readonly
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
readonly
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
readonly
|
|
1964
|
-
readonly
|
|
1965
|
-
readonly
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
readonly
|
|
1969
|
-
readonly
|
|
1970
|
-
readonly
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
readonly
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
readonly membersLimit?: number | undefined;
|
|
1977
|
-
};
|
|
1978
|
-
readonly responseMode?: Mode;
|
|
1979
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1980
|
-
readonly id: string;
|
|
1981
|
-
readonly name: string;
|
|
1982
|
-
readonly slug: string;
|
|
1983
|
-
readonly logo?: string | null | undefined;
|
|
1984
|
-
readonly metadata?: string | {
|
|
1985
|
-
readonly [x: string]: import("effect/Schema").Json;
|
|
1986
|
-
} | null | undefined;
|
|
1987
|
-
readonly userId?: string | null | undefined;
|
|
1988
|
-
readonly parentId?: string | null | undefined;
|
|
1989
|
-
readonly createdAt: Date;
|
|
1990
|
-
readonly members: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
1668
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1669
|
+
readonly organizationCancelInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1670
|
+
readonly invitationId: import("effect/Schema").String;
|
|
1671
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1672
|
+
readonly id: import("effect/Schema").String;
|
|
1673
|
+
readonly email: import("effect/Schema").String;
|
|
1674
|
+
readonly role: import("effect/Schema").String;
|
|
1675
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1676
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1677
|
+
readonly inviterId: import("effect/Schema").String;
|
|
1678
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1679
|
+
readonly status: import("effect/Schema").String;
|
|
1680
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1681
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1682
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1683
|
+
readonly organizationCreate: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1684
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
1685
|
+
readonly slug: import("effect/Schema").NonEmptyString;
|
|
1686
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1687
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
1688
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1689
|
+
readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1690
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1691
|
+
readonly id: import("effect/Schema").String;
|
|
1692
|
+
readonly name: import("effect/Schema").String;
|
|
1693
|
+
readonly slug: import("effect/Schema").String;
|
|
1694
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1695
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
1696
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1697
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1698
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1699
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1700
|
+
readonly organizationGetFull: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1701
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1702
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1703
|
+
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1704
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1705
|
+
readonly id: import("effect/Schema").String;
|
|
1706
|
+
readonly name: import("effect/Schema").String;
|
|
1707
|
+
readonly slug: import("effect/Schema").String;
|
|
1708
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1709
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
1710
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1711
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1712
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1713
|
+
readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1991
1714
|
readonly id: import("effect/Schema").String;
|
|
1992
1715
|
readonly organizationId: import("effect/Schema").String;
|
|
1993
1716
|
readonly userId: import("effect/Schema").String;
|
|
@@ -2008,48 +1731,42 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2008
1731
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2009
1732
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2010
1733
|
}>;
|
|
2011
|
-
}
|
|
2012
|
-
readonly invitations:
|
|
2013
|
-
readonly id: string;
|
|
2014
|
-
readonly email: string;
|
|
2015
|
-
readonly role: string;
|
|
2016
|
-
readonly organizationId: string;
|
|
2017
|
-
readonly organizationName?: string | null | undefined;
|
|
2018
|
-
readonly inviterId: string;
|
|
2019
|
-
readonly teamId?: string | null | undefined;
|
|
2020
|
-
readonly status: string;
|
|
2021
|
-
readonly expiresAt: Date;
|
|
2022
|
-
readonly createdAt?: Date | undefined;
|
|
2023
|
-
}[];
|
|
2024
|
-
} | null, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
2025
|
-
readonly organizationGetInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
2026
|
-
readonly query: import("effect/Schema").Struct.ReadonlySide<{
|
|
1734
|
+
}>>;
|
|
1735
|
+
readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2027
1736
|
readonly id: import("effect/Schema").String;
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
readonly
|
|
2041
|
-
|
|
2042
|
-
readonly
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
readonly
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
readonly
|
|
2052
|
-
|
|
1737
|
+
readonly email: import("effect/Schema").String;
|
|
1738
|
+
readonly role: import("effect/Schema").String;
|
|
1739
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1740
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1741
|
+
readonly inviterId: import("effect/Schema").String;
|
|
1742
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1743
|
+
readonly status: import("effect/Schema").String;
|
|
1744
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1745
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1746
|
+
}>>;
|
|
1747
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1748
|
+
readonly organizationGetInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1749
|
+
readonly id: import("effect/Schema").String;
|
|
1750
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1751
|
+
readonly id: import("effect/Schema").String;
|
|
1752
|
+
readonly email: import("effect/Schema").String;
|
|
1753
|
+
readonly role: import("effect/Schema").String;
|
|
1754
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1755
|
+
readonly inviterId: import("effect/Schema").String;
|
|
1756
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1757
|
+
readonly status: import("effect/Schema").String;
|
|
1758
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1759
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1760
|
+
readonly organizationName: import("effect/Schema").String;
|
|
1761
|
+
readonly organizationSlug: import("effect/Schema").String;
|
|
1762
|
+
readonly inviterEmail: import("effect/Schema").String;
|
|
1763
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1764
|
+
readonly organizationImpersonateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1765
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1766
|
+
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
1767
|
+
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
1768
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
1769
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2053
1770
|
readonly session: import("effect/Schema").Struct<{
|
|
2054
1771
|
readonly id: import("effect/Schema").String;
|
|
2055
1772
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -2078,85 +1795,69 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2078
1795
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2079
1796
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2080
1797
|
}>;
|
|
2081
|
-
}
|
|
2082
|
-
readonly organizationInviteMember:
|
|
2083
|
-
readonly
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
readonly
|
|
2091
|
-
|
|
2092
|
-
readonly
|
|
2093
|
-
readonly
|
|
2094
|
-
readonly
|
|
2095
|
-
readonly
|
|
2096
|
-
readonly
|
|
2097
|
-
readonly
|
|
2098
|
-
readonly
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
readonly
|
|
2102
|
-
},
|
|
2103
|
-
readonly organizationLeave: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
2104
|
-
readonly payload: import("effect/Schema").Struct.ReadonlySide<{
|
|
2105
|
-
readonly organizationId: import("effect/Schema").String;
|
|
2106
|
-
}, "Type">;
|
|
2107
|
-
readonly responseMode?: Mode;
|
|
2108
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1798
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1799
|
+
readonly organizationInviteMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1800
|
+
readonly email: import("effect/Schema").String;
|
|
1801
|
+
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1802
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1803
|
+
readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1804
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
|
|
1805
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1806
|
+
readonly id: import("effect/Schema").String;
|
|
1807
|
+
readonly email: import("effect/Schema").String;
|
|
1808
|
+
readonly role: import("effect/Schema").String;
|
|
1809
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1810
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1811
|
+
readonly inviterId: import("effect/Schema").String;
|
|
1812
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1813
|
+
readonly status: import("effect/Schema").String;
|
|
1814
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1815
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1816
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1817
|
+
readonly organizationLeave: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1818
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1819
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2109
1820
|
readonly id: import("effect/Schema").String;
|
|
2110
1821
|
readonly organizationId: import("effect/Schema").String;
|
|
2111
1822
|
readonly userId: import("effect/Schema").String;
|
|
2112
1823
|
readonly role: import("effect/Schema").String;
|
|
2113
1824
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2114
|
-
}
|
|
2115
|
-
readonly organizationList:
|
|
2116
|
-
readonly
|
|
2117
|
-
|
|
2118
|
-
readonly
|
|
2119
|
-
readonly
|
|
2120
|
-
readonly
|
|
2121
|
-
readonly
|
|
2122
|
-
readonly
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
readonly
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
readonly
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
readonly
|
|
2134
|
-
|
|
2135
|
-
readonly
|
|
2136
|
-
readonly
|
|
2137
|
-
readonly
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
readonly
|
|
2141
|
-
readonly
|
|
2142
|
-
readonly
|
|
2143
|
-
readonly
|
|
2144
|
-
readonly
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
readonly
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
readonly sortBy?: string | undefined;
|
|
2151
|
-
readonly sortDirection?: "asc" | "desc" | undefined;
|
|
2152
|
-
readonly filterField?: string | undefined;
|
|
2153
|
-
readonly filterValue?: string | undefined;
|
|
2154
|
-
readonly filterOperator?: string | undefined;
|
|
2155
|
-
readonly organizationId?: string | undefined;
|
|
2156
|
-
readonly organizationSlug?: string | undefined;
|
|
2157
|
-
};
|
|
2158
|
-
readonly responseMode?: Mode;
|
|
2159
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1825
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1826
|
+
readonly organizationList: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1827
|
+
readonly id: import("effect/Schema").String;
|
|
1828
|
+
readonly name: import("effect/Schema").String;
|
|
1829
|
+
readonly slug: import("effect/Schema").String;
|
|
1830
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1831
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
1832
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1833
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1834
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1835
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1836
|
+
readonly organizationListInvitations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1837
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1838
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1839
|
+
readonly id: import("effect/Schema").String;
|
|
1840
|
+
readonly email: import("effect/Schema").String;
|
|
1841
|
+
readonly role: import("effect/Schema").String;
|
|
1842
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1843
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1844
|
+
readonly inviterId: import("effect/Schema").String;
|
|
1845
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1846
|
+
readonly status: import("effect/Schema").String;
|
|
1847
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1848
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1849
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1850
|
+
readonly organizationListMembers: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1851
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1852
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1853
|
+
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1854
|
+
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
1855
|
+
readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1856
|
+
readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1857
|
+
readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1858
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1859
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1860
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2160
1861
|
readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2161
1862
|
readonly id: import("effect/Schema").String;
|
|
2162
1863
|
readonly organizationId: import("effect/Schema").String;
|
|
@@ -2180,28 +1881,22 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2180
1881
|
}>;
|
|
2181
1882
|
}>>;
|
|
2182
1883
|
readonly total: import("effect/Schema").Number;
|
|
2183
|
-
}
|
|
2184
|
-
readonly organizationListUserInvitations:
|
|
2185
|
-
readonly
|
|
2186
|
-
readonly
|
|
2187
|
-
|
|
2188
|
-
readonly
|
|
2189
|
-
readonly
|
|
2190
|
-
readonly
|
|
2191
|
-
readonly
|
|
2192
|
-
readonly
|
|
2193
|
-
readonly
|
|
2194
|
-
readonly
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
readonly
|
|
2198
|
-
}
|
|
2199
|
-
readonly organizationRejectInvitation: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
2200
|
-
readonly payload: import("effect/Schema").Struct.ReadonlySide<{
|
|
2201
|
-
readonly invitationId: import("effect/Schema").String;
|
|
2202
|
-
}, "Type">;
|
|
2203
|
-
readonly responseMode?: Mode;
|
|
2204
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1884
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1885
|
+
readonly organizationListUserInvitations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1886
|
+
readonly id: import("effect/Schema").String;
|
|
1887
|
+
readonly email: import("effect/Schema").String;
|
|
1888
|
+
readonly role: import("effect/Schema").String;
|
|
1889
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1890
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1891
|
+
readonly inviterId: import("effect/Schema").String;
|
|
1892
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1893
|
+
readonly status: import("effect/Schema").String;
|
|
1894
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1895
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1896
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1897
|
+
readonly organizationRejectInvitation: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1898
|
+
readonly invitationId: import("effect/Schema").String;
|
|
1899
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2205
1900
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2206
1901
|
readonly id: import("effect/Schema").String;
|
|
2207
1902
|
readonly email: import("effect/Schema").String;
|
|
@@ -2221,14 +1916,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2221
1916
|
readonly role: import("effect/Schema").String;
|
|
2222
1917
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2223
1918
|
}>>;
|
|
2224
|
-
}
|
|
2225
|
-
readonly organizationRemoveMember:
|
|
2226
|
-
readonly
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
};
|
|
2230
|
-
readonly responseMode?: Mode;
|
|
2231
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1919
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1920
|
+
readonly organizationRemoveMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1921
|
+
readonly memberIdOrEmail: import("effect/Schema").String;
|
|
1922
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1923
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2232
1924
|
readonly member: import("effect/Schema").Struct<{
|
|
2233
1925
|
readonly id: import("effect/Schema").String;
|
|
2234
1926
|
readonly organizationId: import("effect/Schema").String;
|
|
@@ -2236,335 +1928,271 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2236
1928
|
readonly role: import("effect/Schema").String;
|
|
2237
1929
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2238
1930
|
}>;
|
|
2239
|
-
}
|
|
2240
|
-
readonly organizationSetActive:
|
|
2241
|
-
readonly
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
readonly
|
|
2246
|
-
|
|
2247
|
-
readonly
|
|
2248
|
-
readonly
|
|
2249
|
-
readonly
|
|
2250
|
-
readonly
|
|
2251
|
-
readonly
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
readonly
|
|
2255
|
-
readonly
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
readonly
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
readonly
|
|
2274
|
-
readonly
|
|
2275
|
-
readonly
|
|
2276
|
-
|
|
2277
|
-
readonly metadata?: string | {
|
|
2278
|
-
readonly [x: string]: import("effect/Schema").Json;
|
|
2279
|
-
} | null | undefined;
|
|
2280
|
-
readonly userId?: string | null | undefined;
|
|
2281
|
-
readonly parentId?: string | null | undefined;
|
|
2282
|
-
readonly createdAt: Date;
|
|
2283
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
2284
|
-
readonly organizationUpdateMemberRole: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
2285
|
-
readonly payload: {
|
|
2286
|
-
readonly role: string | readonly string[];
|
|
2287
|
-
readonly memberId: string;
|
|
2288
|
-
readonly organizationId?: string | undefined;
|
|
2289
|
-
};
|
|
2290
|
-
readonly responseMode?: Mode;
|
|
2291
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1931
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1932
|
+
readonly organizationSetActive: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1933
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1934
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1935
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1936
|
+
readonly id: import("effect/Schema").String;
|
|
1937
|
+
readonly name: import("effect/Schema").String;
|
|
1938
|
+
readonly slug: import("effect/Schema").String;
|
|
1939
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1940
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
1941
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1942
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1943
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1944
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1945
|
+
readonly organizationUpdate: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1946
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1947
|
+
readonly data: import("effect/Schema").Struct<{
|
|
1948
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1949
|
+
readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1950
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1951
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
1952
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1953
|
+
}>;
|
|
1954
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1955
|
+
readonly id: import("effect/Schema").String;
|
|
1956
|
+
readonly name: import("effect/Schema").String;
|
|
1957
|
+
readonly slug: import("effect/Schema").String;
|
|
1958
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1959
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
|
|
1960
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1961
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1962
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1963
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1964
|
+
readonly organizationUpdateMemberRole: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1965
|
+
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1966
|
+
readonly memberId: import("effect/Schema").String;
|
|
1967
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1968
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2292
1969
|
readonly id: import("effect/Schema").String;
|
|
2293
1970
|
readonly organizationId: import("effect/Schema").String;
|
|
2294
1971
|
readonly userId: import("effect/Schema").String;
|
|
2295
1972
|
readonly role: import("effect/Schema").String;
|
|
2296
1973
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2297
|
-
}
|
|
2298
|
-
readonly requestPasswordReset:
|
|
2299
|
-
readonly
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
};
|
|
2303
|
-
readonly responseMode?: Mode;
|
|
2304
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1974
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1975
|
+
readonly requestPasswordReset: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1976
|
+
readonly email: import("effect/Schema").String;
|
|
1977
|
+
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1978
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2305
1979
|
readonly status: import("effect/Schema").Boolean;
|
|
2306
1980
|
readonly message: import("effect/Schema").String;
|
|
2307
|
-
}
|
|
2308
|
-
readonly resetPassword:
|
|
2309
|
-
readonly
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
};
|
|
2313
|
-
readonly responseMode?: Mode;
|
|
2314
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1981
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1982
|
+
readonly resetPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1983
|
+
readonly newPassword: import("effect/Schema").String;
|
|
1984
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1985
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2315
1986
|
readonly status: import("effect/Schema").Boolean;
|
|
2316
|
-
}
|
|
2317
|
-
readonly sendVerificationOtp:
|
|
2318
|
-
readonly
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
}, "Type">;
|
|
2322
|
-
readonly responseMode?: Mode;
|
|
2323
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1987
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1988
|
+
readonly sendVerificationOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1989
|
+
readonly email: import("effect/Schema").String;
|
|
1990
|
+
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
1991
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2324
1992
|
readonly success: import("effect/Schema").Boolean;
|
|
2325
|
-
}
|
|
2326
|
-
readonly signInEmail:
|
|
2327
|
-
readonly
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
readonly
|
|
2335
|
-
|
|
2336
|
-
readonly
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
readonly
|
|
2341
|
-
readonly
|
|
2342
|
-
readonly
|
|
2343
|
-
readonly
|
|
2344
|
-
readonly
|
|
2345
|
-
readonly
|
|
2346
|
-
readonly
|
|
2347
|
-
readonly
|
|
2348
|
-
readonly
|
|
2349
|
-
readonly
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
readonly
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
readonly
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
readonly
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
readonly
|
|
2371
|
-
readonly
|
|
2372
|
-
readonly
|
|
2373
|
-
readonly
|
|
2374
|
-
readonly
|
|
2375
|
-
readonly
|
|
2376
|
-
readonly
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
readonly
|
|
2388
|
-
readonly
|
|
2389
|
-
readonly
|
|
2390
|
-
readonly
|
|
2391
|
-
readonly
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
readonly
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
readonly
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
readonly
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
readonly
|
|
2421
|
-
readonly
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
readonly banned: boolean | null;
|
|
2427
|
-
readonly banReason?: string | null | undefined;
|
|
2428
|
-
readonly banExpires?: Date | null | undefined;
|
|
2429
|
-
readonly twoFactorEnabled?: boolean | undefined;
|
|
2430
|
-
readonly lastLoginMethod?: string | null | undefined;
|
|
2431
|
-
readonly createdAt: Date;
|
|
2432
|
-
readonly updatedAt: Date;
|
|
2433
|
-
} | undefined;
|
|
2434
|
-
readonly status?: boolean | undefined;
|
|
2435
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
2436
|
-
readonly signOut: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
2437
|
-
readonly responseMode?: Mode;
|
|
2438
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
1993
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
1994
|
+
readonly signInEmail: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1995
|
+
readonly email: import("effect/Schema").String;
|
|
1996
|
+
readonly password: import("effect/Schema").String;
|
|
1997
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1998
|
+
readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1999
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2000
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2001
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
2002
|
+
readonly token: import("effect/Schema").String;
|
|
2003
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2004
|
+
readonly user: import("effect/Schema").Struct<{
|
|
2005
|
+
readonly id: import("effect/Schema").String;
|
|
2006
|
+
readonly name: import("effect/Schema").String;
|
|
2007
|
+
readonly email: import("effect/Schema").String;
|
|
2008
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2009
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2010
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2011
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2012
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2013
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
2014
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2015
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2016
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2017
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2018
|
+
}>;
|
|
2019
|
+
}>, import("effect/Schema").Struct<{
|
|
2020
|
+
readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
|
|
2021
|
+
readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2022
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2023
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2024
|
+
readonly signInEmailOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2025
|
+
readonly email: import("effect/Schema").String;
|
|
2026
|
+
readonly otp: import("effect/Schema").String;
|
|
2027
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2028
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2029
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2030
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2031
|
+
readonly user: import("effect/Schema").Struct<{
|
|
2032
|
+
readonly id: import("effect/Schema").String;
|
|
2033
|
+
readonly name: import("effect/Schema").String;
|
|
2034
|
+
readonly email: import("effect/Schema").String;
|
|
2035
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2036
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2037
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2038
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2039
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2040
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
2041
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2042
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2043
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2044
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2045
|
+
}>;
|
|
2046
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2047
|
+
readonly signInSocial: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2048
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2049
|
+
readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2050
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2051
|
+
readonly provider: import("effect/Schema").String;
|
|
2052
|
+
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2053
|
+
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
2054
|
+
readonly token: import("effect/Schema").String;
|
|
2055
|
+
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2056
|
+
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2057
|
+
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2058
|
+
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
2059
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
2060
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
2061
|
+
readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2062
|
+
readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2063
|
+
}>>;
|
|
2064
|
+
readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2065
|
+
}>>;
|
|
2066
|
+
}>>;
|
|
2067
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2068
|
+
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2069
|
+
readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2070
|
+
readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
2071
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2072
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2073
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2074
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
2075
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2076
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
2077
|
+
readonly id: import("effect/Schema").String;
|
|
2078
|
+
readonly name: import("effect/Schema").String;
|
|
2079
|
+
readonly email: import("effect/Schema").String;
|
|
2080
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2081
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2082
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2083
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2084
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2085
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
2086
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2087
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2088
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2089
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2090
|
+
}>>;
|
|
2091
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2092
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2093
|
+
readonly signOut: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2439
2094
|
readonly success: import("effect/Schema").Boolean;
|
|
2440
|
-
}
|
|
2441
|
-
readonly twoFactorDisable:
|
|
2442
|
-
readonly
|
|
2443
|
-
|
|
2444
|
-
};
|
|
2445
|
-
readonly responseMode?: Mode;
|
|
2446
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2095
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2096
|
+
readonly twoFactorDisable: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2097
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2098
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2447
2099
|
readonly status: import("effect/Schema").Boolean;
|
|
2448
|
-
}
|
|
2449
|
-
readonly twoFactorEnable:
|
|
2450
|
-
readonly
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
};
|
|
2454
|
-
readonly responseMode?: Mode;
|
|
2455
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2100
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2101
|
+
readonly twoFactorEnable: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2102
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2103
|
+
readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2104
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2456
2105
|
readonly totpURI: import("effect/Schema").String;
|
|
2457
2106
|
readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2458
|
-
}
|
|
2459
|
-
readonly twoFactorSendOtp:
|
|
2460
|
-
readonly
|
|
2461
|
-
|
|
2462
|
-
};
|
|
2463
|
-
readonly responseMode?: Mode;
|
|
2464
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2107
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2108
|
+
readonly twoFactorSendOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2109
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2110
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2465
2111
|
readonly status: import("effect/Schema").Boolean;
|
|
2466
|
-
}
|
|
2467
|
-
readonly twoFactorVerifyBackupCode:
|
|
2468
|
-
readonly
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
readonly
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
readonly
|
|
2479
|
-
readonly
|
|
2480
|
-
readonly
|
|
2481
|
-
readonly
|
|
2482
|
-
readonly
|
|
2483
|
-
readonly
|
|
2484
|
-
readonly
|
|
2485
|
-
readonly
|
|
2486
|
-
readonly
|
|
2487
|
-
readonly
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
readonly
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
readonly
|
|
2504
|
-
readonly
|
|
2505
|
-
readonly
|
|
2506
|
-
readonly
|
|
2507
|
-
readonly
|
|
2508
|
-
readonly
|
|
2509
|
-
readonly
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
readonly
|
|
2521
|
-
readonly
|
|
2522
|
-
readonly
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
readonly
|
|
2529
|
-
readonly
|
|
2530
|
-
readonly
|
|
2531
|
-
readonly
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
readonly lastLoginMethod?: string | null | undefined;
|
|
2539
|
-
readonly createdAt: Date;
|
|
2540
|
-
readonly updatedAt: Date;
|
|
2541
|
-
};
|
|
2542
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./auth/schema.js").AuthBadRequest | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
2543
|
-
readonly unlinkAccount: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
2544
|
-
readonly payload: {
|
|
2545
|
-
readonly providerId: string;
|
|
2546
|
-
readonly accountId?: string | undefined;
|
|
2547
|
-
};
|
|
2548
|
-
readonly responseMode?: Mode;
|
|
2549
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2112
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2113
|
+
readonly twoFactorVerifyBackupCode: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2114
|
+
readonly code: import("effect/Schema").String;
|
|
2115
|
+
readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2116
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2117
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2118
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2119
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2120
|
+
readonly user: import("effect/Schema").Struct<{
|
|
2121
|
+
readonly id: import("effect/Schema").String;
|
|
2122
|
+
readonly name: import("effect/Schema").String;
|
|
2123
|
+
readonly email: import("effect/Schema").String;
|
|
2124
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2125
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2126
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2127
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2128
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2129
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
2130
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2131
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2132
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2133
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2134
|
+
}>;
|
|
2135
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2136
|
+
readonly twoFactorVerifyOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2137
|
+
readonly code: import("effect/Schema").String;
|
|
2138
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2139
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2140
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2141
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2142
|
+
readonly user: import("effect/Schema").Struct<{
|
|
2143
|
+
readonly id: import("effect/Schema").String;
|
|
2144
|
+
readonly name: import("effect/Schema").String;
|
|
2145
|
+
readonly email: import("effect/Schema").String;
|
|
2146
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2147
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2148
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2149
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2150
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2151
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
2152
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2153
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2154
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2155
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2156
|
+
}>;
|
|
2157
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2158
|
+
readonly twoFactorVerifyTotp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2159
|
+
readonly code: import("effect/Schema").String;
|
|
2160
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2161
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2162
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2163
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2164
|
+
readonly user: import("effect/Schema").Struct<{
|
|
2165
|
+
readonly id: import("effect/Schema").String;
|
|
2166
|
+
readonly name: import("effect/Schema").String;
|
|
2167
|
+
readonly email: import("effect/Schema").String;
|
|
2168
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2169
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2170
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2171
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2172
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2173
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
2174
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2175
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2176
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2177
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2178
|
+
}>;
|
|
2179
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2180
|
+
readonly unlinkAccount: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2181
|
+
readonly providerId: import("effect/Schema").String;
|
|
2182
|
+
readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2183
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2550
2184
|
readonly status: import("effect/Schema").Boolean;
|
|
2551
|
-
}
|
|
2552
|
-
readonly updateUser:
|
|
2553
|
-
readonly
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
};
|
|
2557
|
-
readonly responseMode?: Mode;
|
|
2558
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2185
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2186
|
+
readonly updateUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2187
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2188
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2189
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2559
2190
|
readonly status: import("effect/Schema").Boolean;
|
|
2560
|
-
}
|
|
2561
|
-
readonly verifyEmailOtp:
|
|
2562
|
-
readonly
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
}, "Type">;
|
|
2566
|
-
readonly responseMode?: Mode;
|
|
2567
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2191
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2192
|
+
readonly verifyEmailOtp: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2193
|
+
readonly email: import("effect/Schema").String;
|
|
2194
|
+
readonly otp: import("effect/Schema").String;
|
|
2195
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2568
2196
|
readonly status: import("effect/Schema").Literal<true>;
|
|
2569
2197
|
readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2570
2198
|
readonly user: import("effect/Schema").Struct<{
|
|
@@ -2582,90 +2210,79 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2582
2210
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2583
2211
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2584
2212
|
}>;
|
|
2585
|
-
}
|
|
2213
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, never, never>;
|
|
2586
2214
|
};
|
|
2587
2215
|
authExtra: {
|
|
2588
|
-
readonly createApiKey:
|
|
2589
|
-
readonly
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
} | undefined;
|
|
2596
|
-
readonly referrers?: readonly string[] | undefined;
|
|
2597
|
-
};
|
|
2598
|
-
readonly responseMode?: Mode;
|
|
2599
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2216
|
+
readonly createApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2217
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
2218
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
2219
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2220
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2221
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2222
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2600
2223
|
readonly id: import("effect/Schema").String;
|
|
2601
2224
|
readonly key: import("effect/Schema").String;
|
|
2602
|
-
}
|
|
2603
|
-
readonly getOrganizationPublicProfile:
|
|
2604
|
-
readonly
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
readonly
|
|
2609
|
-
|
|
2610
|
-
readonly
|
|
2611
|
-
readonly
|
|
2612
|
-
readonly
|
|
2613
|
-
readonly displayName: string;
|
|
2614
|
-
readonly contactEmail: string | null;
|
|
2615
|
-
readonly emails?: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
2225
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
2226
|
+
readonly getOrganizationPublicProfile: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2227
|
+
readonly organizationId: import("effect/Schema").String;
|
|
2228
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
2229
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2230
|
+
readonly id: import("effect/Schema").String;
|
|
2231
|
+
readonly name: import("effect/Schema").String;
|
|
2232
|
+
readonly slug: import("effect/Schema").String;
|
|
2233
|
+
readonly displayName: import("effect/Schema").String;
|
|
2234
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2235
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2616
2236
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
2617
2237
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2618
2238
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2619
2239
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
2620
2240
|
}>>;
|
|
2621
|
-
}
|
|
2622
|
-
readonly phones
|
|
2623
|
-
readonly number:
|
|
2624
|
-
readonly extension
|
|
2625
|
-
readonly translations:
|
|
2241
|
+
}>>>;
|
|
2242
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2243
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
2244
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2245
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2626
2246
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2627
2247
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
readonly websites
|
|
2248
|
+
}>>;
|
|
2249
|
+
}>>>;
|
|
2250
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2631
2251
|
readonly url: import("effect/Schema").NonEmptyString;
|
|
2632
2252
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2633
2253
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2634
2254
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
2635
2255
|
}>>;
|
|
2636
|
-
}
|
|
2637
|
-
readonly socials
|
|
2256
|
+
}>>>;
|
|
2257
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2638
2258
|
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
2639
2259
|
readonly url: import("effect/Schema").NonEmptyString;
|
|
2640
2260
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2641
2261
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2642
2262
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
2643
2263
|
}>>;
|
|
2644
|
-
}
|
|
2645
|
-
readonly addresses
|
|
2646
|
-
readonly streetAddress
|
|
2647
|
-
readonly locality
|
|
2648
|
-
readonly region
|
|
2649
|
-
readonly postalCode
|
|
2650
|
-
readonly country
|
|
2651
|
-
readonly translations:
|
|
2264
|
+
}>>>;
|
|
2265
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2266
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2267
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2268
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2269
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2270
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2271
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2652
2272
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2653
2273
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
2654
|
-
}
|
|
2655
|
-
readonly formatted:
|
|
2656
|
-
}
|
|
2657
|
-
readonly logo:
|
|
2658
|
-
readonly icon:
|
|
2659
|
-
}
|
|
2660
|
-
readonly getProjectPublicConfig:
|
|
2661
|
-
readonly
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
};
|
|
2667
|
-
readonly responseMode?: Mode;
|
|
2668
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2274
|
+
}>>;
|
|
2275
|
+
readonly formatted: import("effect/Schema").String;
|
|
2276
|
+
}>>>;
|
|
2277
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2278
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2279
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2280
|
+
readonly getProjectPublicConfig: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2281
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2282
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2283
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2284
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2285
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2669
2286
|
readonly projectKey: import("effect/Schema").String;
|
|
2670
2287
|
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2671
2288
|
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -2677,45 +2294,32 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2677
2294
|
readonly emailOtp: import("effect/Schema").Boolean;
|
|
2678
2295
|
readonly google: import("effect/Schema").Boolean;
|
|
2679
2296
|
}>;
|
|
2680
|
-
}
|
|
2681
|
-
readonly setPassword:
|
|
2682
|
-
readonly
|
|
2683
|
-
|
|
2684
|
-
}, "Type">;
|
|
2685
|
-
readonly responseMode?: Mode;
|
|
2686
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2297
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2298
|
+
readonly setPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2299
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
2300
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2687
2301
|
readonly ok: import("effect/Schema").Boolean;
|
|
2688
|
-
}
|
|
2689
|
-
readonly updateApiKey:
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
readonly
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
readonly [x: string]: readonly string[];
|
|
2699
|
-
} | undefined;
|
|
2700
|
-
readonly referrers?: readonly string[] | undefined;
|
|
2701
|
-
};
|
|
2702
|
-
readonly responseMode?: Mode;
|
|
2703
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2302
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
2303
|
+
readonly updateApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2304
|
+
keyId: import("effect/Schema").NonEmptyString;
|
|
2305
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2306
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
2307
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
2308
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
2309
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2310
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2311
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2704
2312
|
readonly ok: import("effect/Schema").Boolean;
|
|
2705
|
-
}
|
|
2706
|
-
readonly uploadUserImage:
|
|
2707
|
-
readonly
|
|
2708
|
-
|
|
2709
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2313
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
2314
|
+
readonly uploadUserImage: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
2315
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
2316
|
+
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2710
2317
|
readonly url: import("effect/Schema").String;
|
|
2711
|
-
}
|
|
2712
|
-
readonly verifyApiKey:
|
|
2713
|
-
readonly
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
};
|
|
2717
|
-
readonly responseMode?: Mode;
|
|
2718
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2318
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
2319
|
+
readonly verifyApiKey: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2320
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
2321
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
|
|
2322
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2719
2323
|
readonly valid: import("effect/Schema").Boolean;
|
|
2720
2324
|
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2721
2325
|
readonly message: import("effect/Schema").String;
|
|
@@ -2735,126 +2339,105 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2735
2339
|
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2736
2340
|
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
2737
2341
|
}>>;
|
|
2738
|
-
}
|
|
2739
|
-
readonly verifyPassword:
|
|
2740
|
-
readonly
|
|
2741
|
-
|
|
2742
|
-
}, "Type">;
|
|
2743
|
-
readonly responseMode?: Mode;
|
|
2744
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2342
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
2343
|
+
readonly verifyPassword: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2344
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
2345
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2745
2346
|
readonly ok: import("effect/Schema").Boolean;
|
|
2746
|
-
}
|
|
2347
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
2747
2348
|
};
|
|
2748
2349
|
domains: {
|
|
2749
|
-
readonly createDomain:
|
|
2750
|
-
readonly
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
readonly
|
|
2758
|
-
|
|
2759
|
-
readonly
|
|
2760
|
-
readonly
|
|
2761
|
-
readonly
|
|
2762
|
-
readonly
|
|
2763
|
-
readonly
|
|
2764
|
-
readonly
|
|
2765
|
-
readonly
|
|
2766
|
-
readonly
|
|
2767
|
-
readonly
|
|
2768
|
-
readonly
|
|
2769
|
-
readonly
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
readonly
|
|
2773
|
-
},
|
|
2774
|
-
|
|
2775
|
-
readonly
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
readonly
|
|
2779
|
-
|
|
2780
|
-
readonly
|
|
2781
|
-
readonly
|
|
2782
|
-
readonly
|
|
2783
|
-
readonly
|
|
2784
|
-
readonly
|
|
2785
|
-
readonly
|
|
2786
|
-
readonly
|
|
2787
|
-
readonly
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
readonly
|
|
2791
|
-
|
|
2792
|
-
readonly
|
|
2793
|
-
readonly
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
readonly
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
readonly
|
|
2800
|
-
|
|
2801
|
-
readonly
|
|
2802
|
-
readonly
|
|
2803
|
-
readonly
|
|
2804
|
-
readonly
|
|
2805
|
-
readonly
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
readonly
|
|
2809
|
-
|
|
2810
|
-
readonly
|
|
2811
|
-
readonly
|
|
2812
|
-
readonly
|
|
2813
|
-
readonly
|
|
2814
|
-
readonly
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
readonly
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
readonly
|
|
2821
|
-
|
|
2822
|
-
readonly
|
|
2823
|
-
readonly
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
readonly
|
|
2827
|
-
|
|
2828
|
-
readonly organizationId: string | null;
|
|
2829
|
-
readonly organizationName?: string | null | undefined;
|
|
2830
|
-
readonly organizationLogo?: string | null | undefined;
|
|
2831
|
-
readonly hostnameId: string;
|
|
2832
|
-
readonly managed: boolean;
|
|
2833
|
-
readonly active: boolean;
|
|
2834
|
-
readonly createdAt: Date;
|
|
2835
|
-
readonly updatedAt: Date;
|
|
2836
|
-
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
2837
|
-
readonly getDomainRecords: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
2838
|
-
readonly params: import("effect/Schema").Struct.ReadonlySide<{
|
|
2839
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
2840
|
-
}, "Type">;
|
|
2841
|
-
readonly responseMode?: Mode;
|
|
2842
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
2350
|
+
readonly createDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2351
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
2352
|
+
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
2353
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2354
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2355
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
2356
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2357
|
+
readonly id: import("effect/Schema").String;
|
|
2358
|
+
readonly hostname: import("effect/Schema").String;
|
|
2359
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
2360
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2361
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2362
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2363
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2364
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2365
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2366
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
2367
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
2368
|
+
readonly active: import("effect/Schema").Boolean;
|
|
2369
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2370
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
2371
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2372
|
+
readonly deleteDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2373
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
2374
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2375
|
+
readonly id: import("effect/Schema").String;
|
|
2376
|
+
readonly hostname: import("effect/Schema").String;
|
|
2377
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
2378
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2379
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2380
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2381
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2382
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2383
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2384
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
2385
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
2386
|
+
readonly active: import("effect/Schema").Boolean;
|
|
2387
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2388
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
2389
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2390
|
+
readonly getDomain: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2391
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
2392
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2393
|
+
readonly id: import("effect/Schema").String;
|
|
2394
|
+
readonly hostname: import("effect/Schema").String;
|
|
2395
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
2396
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2397
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2398
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2399
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2400
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2401
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2402
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
2403
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
2404
|
+
readonly active: import("effect/Schema").Boolean;
|
|
2405
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2406
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
2407
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2408
|
+
readonly getDomainByHost: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2409
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
2410
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2411
|
+
readonly id: import("effect/Schema").String;
|
|
2412
|
+
readonly hostname: import("effect/Schema").String;
|
|
2413
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
2414
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2415
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2416
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2417
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2418
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2419
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2420
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
2421
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
2422
|
+
readonly active: import("effect/Schema").Boolean;
|
|
2423
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2424
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
2425
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2426
|
+
readonly getDomainRecords: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2427
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
2428
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2843
2429
|
readonly required: import("effect/Schema").Boolean;
|
|
2844
2430
|
readonly status: import("effect/Schema").String;
|
|
2845
2431
|
readonly type: import("effect/Schema").String;
|
|
2846
2432
|
readonly name: import("effect/Schema").String;
|
|
2847
2433
|
readonly value: import("effect/Schema").String;
|
|
2848
|
-
}
|
|
2434
|
+
}>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2849
2435
|
};
|
|
2850
2436
|
organizations: {
|
|
2851
|
-
readonly getActiveMember:
|
|
2852
|
-
readonly
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
}, "Type">;
|
|
2856
|
-
readonly responseMode?: Mode;
|
|
2857
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2437
|
+
readonly getActiveMember: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2438
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
2439
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
2440
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2858
2441
|
readonly id: import("effect/Schema").String;
|
|
2859
2442
|
readonly organizationId: import("effect/Schema").String;
|
|
2860
2443
|
readonly userId: import("effect/Schema").String;
|
|
@@ -2872,13 +2455,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2872
2455
|
readonly createdAt: import("effect/Schema").Date;
|
|
2873
2456
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2874
2457
|
}>;
|
|
2875
|
-
}
|
|
2876
|
-
readonly getOrganization:
|
|
2877
|
-
readonly
|
|
2878
|
-
|
|
2879
|
-
}, "Type">;
|
|
2880
|
-
readonly responseMode?: Mode;
|
|
2881
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2458
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2459
|
+
readonly getOrganization: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2460
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
2461
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2882
2462
|
readonly id: import("effect/Schema").String;
|
|
2883
2463
|
readonly name: import("effect/Schema").String;
|
|
2884
2464
|
readonly slug: import("effect/Schema").String;
|
|
@@ -2936,13 +2516,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
2936
2516
|
}>, import("effect/Schema").Unknown, never, never>>;
|
|
2937
2517
|
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2938
2518
|
readonly createdAt: import("effect/Schema").Date;
|
|
2939
|
-
}
|
|
2940
|
-
readonly getOrganizationChildren:
|
|
2941
|
-
readonly
|
|
2942
|
-
|
|
2943
|
-
}, "Type">;
|
|
2944
|
-
readonly responseMode?: Mode;
|
|
2945
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
2519
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2520
|
+
readonly getOrganizationChildren: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2521
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
2522
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2946
2523
|
readonly id: import("effect/Schema").String;
|
|
2947
2524
|
readonly name: import("effect/Schema").String;
|
|
2948
2525
|
readonly slug: import("effect/Schema").String;
|
|
@@ -3000,13 +2577,10 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
3000
2577
|
}>, import("effect/Schema").Unknown, never, never>>;
|
|
3001
2578
|
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3002
2579
|
readonly createdAt: import("effect/Schema").Date;
|
|
3003
|
-
}
|
|
3004
|
-
readonly listOrganizationMembers:
|
|
3005
|
-
readonly
|
|
3006
|
-
|
|
3007
|
-
}, "Type">;
|
|
3008
|
-
readonly responseMode?: Mode;
|
|
3009
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
2580
|
+
}>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2581
|
+
readonly listOrganizationMembers: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2582
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
2583
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3010
2584
|
readonly id: import("effect/Schema").String;
|
|
3011
2585
|
readonly organizationId: import("effect/Schema").String;
|
|
3012
2586
|
readonly userId: import("effect/Schema").String;
|
|
@@ -3024,14 +2598,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
3024
2598
|
readonly createdAt: import("effect/Schema").Date;
|
|
3025
2599
|
readonly updatedAt: import("effect/Schema").Date;
|
|
3026
2600
|
}>;
|
|
3027
|
-
}
|
|
3028
|
-
readonly listOrganizations:
|
|
3029
|
-
readonly
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
};
|
|
3033
|
-
readonly responseMode?: Mode;
|
|
3034
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2601
|
+
}>>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2602
|
+
readonly listOrganizations: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2603
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
2604
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
2605
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3035
2606
|
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3036
2607
|
readonly id: import("effect/Schema").String;
|
|
3037
2608
|
readonly name: import("effect/Schema").String;
|
|
@@ -3092,40 +2663,31 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
3092
2663
|
readonly createdAt: import("effect/Schema").Date;
|
|
3093
2664
|
}>>;
|
|
3094
2665
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
3095
|
-
}
|
|
2666
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
3096
2667
|
};
|
|
3097
2668
|
users: {
|
|
3098
|
-
readonly getUser:
|
|
3099
|
-
readonly
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
readonly
|
|
3103
|
-
|
|
3104
|
-
readonly
|
|
3105
|
-
readonly
|
|
3106
|
-
readonly
|
|
3107
|
-
readonly
|
|
3108
|
-
readonly
|
|
3109
|
-
readonly
|
|
3110
|
-
readonly
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
readonly
|
|
3114
|
-
},
|
|
3115
|
-
readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
3116
|
-
readonly params: import("effect/Schema").Struct.ReadonlySide<{
|
|
3117
|
-
readonly userId: import("effect/Schema").NonEmptyString;
|
|
3118
|
-
}, "Type">;
|
|
3119
|
-
readonly responseMode?: Mode;
|
|
3120
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2669
|
+
readonly getUser: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2670
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
2671
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2672
|
+
readonly id: import("effect/Schema").String;
|
|
2673
|
+
readonly name: import("effect/Schema").String;
|
|
2674
|
+
readonly email: import("effect/Schema").String;
|
|
2675
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2676
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2677
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2678
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2679
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2680
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2681
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
2682
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2683
|
+
readonly getUserActiveOrganization: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2684
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
2685
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3121
2686
|
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3122
|
-
}
|
|
3123
|
-
readonly listUsersByIds:
|
|
3124
|
-
readonly
|
|
3125
|
-
|
|
3126
|
-
}, "Type">;
|
|
3127
|
-
readonly responseMode?: Mode;
|
|
3128
|
-
}) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
|
|
2687
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
2688
|
+
readonly listUsersByIds: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2689
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
2690
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3129
2691
|
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3130
2692
|
readonly id: import("effect/Schema").String;
|
|
3131
2693
|
readonly name: import("effect/Schema").String;
|
|
@@ -3139,7 +2701,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
3139
2701
|
readonly updatedAt: import("effect/Schema").Date;
|
|
3140
2702
|
}>>;
|
|
3141
2703
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
3142
|
-
}
|
|
2704
|
+
}>>, import("effect/Schema").toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, never, never>;
|
|
3143
2705
|
};
|
|
3144
2706
|
}, never, AuthClientConfig | HttpClient.HttpClient>;
|
|
3145
2707
|
};
|