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