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