@krak-stack/auth 0.2.17 → 0.2.18
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 +34 -0
- package/dist/admin/api.group.d.ts +1 -1
- package/dist/admin/api.group.js +1 -1
- package/dist/api.d.ts +143 -143
- package/dist/api.js +1 -1
- package/dist/auth/api.group.d.ts +1 -1
- package/dist/auth/api.group.js +1 -1
- package/dist/auth/schema.js +1 -1
- package/dist/components/admin-organization-form.js +1 -1
- package/dist/components/admin-organizations.js +1 -1
- package/dist/components/admin-users.js +1 -1
- package/dist/components/associated-projects-notice.js +1 -1
- package/dist/components/auth-atoms.d.ts +1 -1
- package/dist/components/auth-atoms.js +1 -1
- package/dist/components/auth-client-api.d.ts +99 -99
- package/dist/components/auth-client-api.js +3 -3
- package/dist/components/auth-forms.js +2 -2
- package/dist/components/auth-provider.d.ts +1 -1
- package/dist/components/auth-provider.js +2 -2
- package/dist/components/member-required.js +1 -1
- package/dist/components/organization-switcher.js +1 -1
- package/dist/components/user-button.js +1 -1
- package/dist/config.js +2 -2
- package/dist/extra/api.group.d.ts +3 -3
- package/dist/extra/api.group.js +2 -2
- package/dist/extra/schema.d.ts +2 -2
- package/dist/extra/schema.js +2 -2
- package/dist/query.js +2 -2
- package/dist/server/actor.d.ts +1 -1
- package/dist/server/actor.js +1 -1
- package/dist/server/api.group.d.ts +1 -1
- package/dist/server/api.group.js +2 -2
- package/dist/server/middleware.d.ts +2 -2
- package/dist/server/middleware.js +2 -2
- package/dist/server/proxy.d.ts +2 -2
- package/dist/server/proxy.js +1 -1
- package/dist/service.d.ts +141 -141
- package/dist/service.js +3 -3
- package/package.json +6 -5
- package/patches/@lucas-barake%2Feffect-form-react@0.26.0-beta.5.patch +66 -0
- package/patches/@lucas-barake%2Feffect-form@0.25.0-beta.6.patch +86 -0
- package/patches/README.md +31 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import { AtomHttpApi } from "effect/
|
|
3
|
-
import { HttpApi, HttpApiClient } from "effect/
|
|
2
|
+
import { AtomHttpApi } from "effect/reactivity";
|
|
3
|
+
import { HttpApi, HttpApiClient } from "effect/http-api";
|
|
4
4
|
import { AuthClientApi } from "../api.js";
|
|
5
5
|
export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?: (() => "en" | "fr") | undefined) => Effect.Effect<{
|
|
6
6
|
readonly admin: {
|
|
7
|
-
readonly createDomain: HttpApiClient.Client.Method<import("effect/
|
|
7
|
+
readonly createDomain: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
8
8
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
9
9
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
10
10
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -25,8 +25,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
25
25
|
readonly active: import("effect/Schema").Boolean;
|
|
26
26
|
readonly createdAt: import("effect/Schema").Date;
|
|
27
27
|
readonly updatedAt: import("effect/Schema").Date;
|
|
28
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
29
|
-
readonly createOrganization: HttpApiClient.Client.Method<import("effect/
|
|
28
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
29
|
+
readonly createOrganization: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createOrganization", "POST", "/api/auth/admin/organizations", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
30
30
|
readonly name: import("effect/Schema").NonEmptyString;
|
|
31
31
|
readonly slug: import("effect/Schema").NonEmptyString;
|
|
32
32
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -52,8 +52,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
52
52
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
53
53
|
}>>>;
|
|
54
54
|
readonly createdAt: import("effect/Schema").Date;
|
|
55
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
56
|
-
readonly dashboardStats: HttpApiClient.Client.Method<import("effect/
|
|
55
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
56
|
+
readonly dashboardStats: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"dashboardStats", "GET", "/api/auth/admin/dashboard-stats", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
57
57
|
readonly days: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"7">, import("effect/Schema").Literal<"14">, import("effect/Schema").Literal<"30">, import("effect/Schema").Literal<"90">]>>;
|
|
58
58
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
59
59
|
readonly totalUsers: import("effect/Schema").Number;
|
|
@@ -77,8 +77,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
77
77
|
readonly users: import("effect/Schema").Number;
|
|
78
78
|
readonly organizations: import("effect/Schema").Number;
|
|
79
79
|
}>>;
|
|
80
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
81
|
-
readonly deleteApiKey: HttpApiClient.Client.Method<import("effect/
|
|
80
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
81
|
+
readonly deleteApiKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteApiKey", "DELETE", "/api/auth/admin/api-keys/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
82
82
|
readonly id: import("effect/Schema").String;
|
|
83
83
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
84
84
|
readonly id: import("effect/Schema").String;
|
|
@@ -99,8 +99,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
99
99
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
100
100
|
readonly createdAt: import("effect/Schema").Date;
|
|
101
101
|
readonly updatedAt: import("effect/Schema").Date;
|
|
102
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
103
|
-
readonly deleteDomain: HttpApiClient.Client.Method<import("effect/
|
|
102
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
103
|
+
readonly deleteDomain: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/auth/admin/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
104
104
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
105
105
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
106
106
|
readonly id: import("effect/Schema").String;
|
|
@@ -117,8 +117,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
117
117
|
readonly active: import("effect/Schema").Boolean;
|
|
118
118
|
readonly createdAt: import("effect/Schema").Date;
|
|
119
119
|
readonly updatedAt: import("effect/Schema").Date;
|
|
120
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
121
|
-
readonly deleteOrganization: HttpApiClient.Client.Method<import("effect/
|
|
120
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
121
|
+
readonly deleteOrganization: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganization", "DELETE", "/api/auth/admin/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
122
122
|
readonly id: import("effect/Schema").String;
|
|
123
123
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
124
124
|
readonly id: import("effect/Schema").String;
|
|
@@ -141,8 +141,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
141
141
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
142
142
|
}>>>;
|
|
143
143
|
readonly createdAt: import("effect/Schema").Date;
|
|
144
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
145
|
-
readonly disableApiKeyRateLimit: HttpApiClient.Client.Method<import("effect/
|
|
144
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
145
|
+
readonly disableApiKeyRateLimit: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"disableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/disable-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
146
146
|
readonly id: import("effect/Schema").String;
|
|
147
147
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
148
148
|
readonly id: import("effect/Schema").String;
|
|
@@ -163,8 +163,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
163
163
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
164
164
|
readonly createdAt: import("effect/Schema").Date;
|
|
165
165
|
readonly updatedAt: import("effect/Schema").Date;
|
|
166
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
167
|
-
readonly enableApiKeyRateLimit: HttpApiClient.Client.Method<import("effect/
|
|
166
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
167
|
+
readonly enableApiKeyRateLimit: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"enableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/enable-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
168
168
|
readonly id: import("effect/Schema").String;
|
|
169
169
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
170
170
|
readonly id: import("effect/Schema").String;
|
|
@@ -185,8 +185,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
185
185
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
186
186
|
readonly createdAt: import("effect/Schema").Date;
|
|
187
187
|
readonly updatedAt: import("effect/Schema").Date;
|
|
188
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
189
|
-
readonly getDomainRecords: HttpApiClient.Client.Method<import("effect/
|
|
188
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
189
|
+
readonly getDomainRecords: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/auth/admin/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
190
190
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
191
191
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
192
192
|
readonly required: import("effect/Schema").Boolean;
|
|
@@ -194,8 +194,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
194
194
|
readonly type: import("effect/Schema").String;
|
|
195
195
|
readonly name: import("effect/Schema").String;
|
|
196
196
|
readonly value: import("effect/Schema").String;
|
|
197
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
198
|
-
readonly listApiKeys: HttpApiClient.Client.Method<import("effect/
|
|
197
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
198
|
+
readonly listApiKeys: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/api/auth/admin/api-keys", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
199
199
|
readonly id: import("effect/Schema").String;
|
|
200
200
|
readonly configId: import("effect/Schema").String;
|
|
201
201
|
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -214,8 +214,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
214
214
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
215
215
|
readonly createdAt: import("effect/Schema").Date;
|
|
216
216
|
readonly updatedAt: import("effect/Schema").Date;
|
|
217
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
218
|
-
readonly listDomains: HttpApiClient.Client.Method<import("effect/
|
|
217
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
218
|
+
readonly listDomains: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listDomains", "GET", "/api/auth/admin/domains", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
219
219
|
readonly id: import("effect/Schema").String;
|
|
220
220
|
readonly hostname: import("effect/Schema").String;
|
|
221
221
|
readonly rootHostname: import("effect/Schema").String;
|
|
@@ -230,8 +230,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
230
230
|
readonly active: import("effect/Schema").Boolean;
|
|
231
231
|
readonly createdAt: import("effect/Schema").Date;
|
|
232
232
|
readonly updatedAt: import("effect/Schema").Date;
|
|
233
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
234
|
-
readonly listOrganizations: HttpApiClient.Client.Method<import("effect/
|
|
233
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
234
|
+
readonly listOrganizations: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/auth/admin/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
235
235
|
readonly page: import("effect/Schema").Int;
|
|
236
236
|
readonly pageSize: import("effect/Schema").Int;
|
|
237
237
|
readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -269,8 +269,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
269
269
|
readonly total: import("effect/Schema").Int;
|
|
270
270
|
readonly pageCount: import("effect/Schema").Int;
|
|
271
271
|
}>;
|
|
272
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
273
|
-
readonly listUsers: HttpApiClient.Client.Method<import("effect/
|
|
272
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
273
|
+
readonly listUsers: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsers", "GET", "/api/auth/admin/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
274
274
|
readonly page: import("effect/Schema").Int;
|
|
275
275
|
readonly pageSize: import("effect/Schema").Int;
|
|
276
276
|
readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -309,8 +309,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
309
309
|
readonly total: import("effect/Schema").Int;
|
|
310
310
|
readonly pageCount: import("effect/Schema").Int;
|
|
311
311
|
}>;
|
|
312
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
313
|
-
readonly resetApiKeyRateLimit: HttpApiClient.Client.Method<import("effect/
|
|
312
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
313
|
+
readonly resetApiKeyRateLimit: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resetApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/reset-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
314
314
|
readonly id: import("effect/Schema").String;
|
|
315
315
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
316
316
|
readonly id: import("effect/Schema").String;
|
|
@@ -331,8 +331,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
331
331
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
332
332
|
readonly createdAt: import("effect/Schema").Date;
|
|
333
333
|
readonly updatedAt: import("effect/Schema").Date;
|
|
334
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
335
|
-
readonly updateApiKey: HttpApiClient.Client.Method<import("effect/
|
|
334
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
335
|
+
readonly updateApiKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/admin/api-keys/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
336
336
|
readonly id: import("effect/Schema").String;
|
|
337
337
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
338
338
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -360,8 +360,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
360
360
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
361
361
|
readonly createdAt: import("effect/Schema").Date;
|
|
362
362
|
readonly updatedAt: import("effect/Schema").Date;
|
|
363
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
364
|
-
readonly updateDomain: HttpApiClient.Client.Method<import("effect/
|
|
363
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
364
|
+
readonly updateDomain: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateDomain", "PATCH", "/api/auth/admin/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
365
365
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
366
366
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
367
367
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
@@ -384,8 +384,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
384
384
|
readonly active: import("effect/Schema").Boolean;
|
|
385
385
|
readonly createdAt: import("effect/Schema").Date;
|
|
386
386
|
readonly updatedAt: import("effect/Schema").Date;
|
|
387
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
388
|
-
readonly updateOrganization: HttpApiClient.Client.Method<import("effect/
|
|
387
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
388
|
+
readonly updateOrganization: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateOrganization", "PATCH", "/api/auth/admin/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
389
389
|
readonly id: import("effect/Schema").String;
|
|
390
390
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
391
391
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
@@ -413,10 +413,10 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
413
413
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
414
414
|
}>>>;
|
|
415
415
|
readonly createdAt: import("effect/Schema").Date;
|
|
416
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
416
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
417
417
|
};
|
|
418
418
|
readonly auth: {
|
|
419
|
-
readonly adminBanUser: HttpApiClient.Client.Method<import("effect/
|
|
419
|
+
readonly adminBanUser: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
420
420
|
readonly userId: import("effect/Schema").String;
|
|
421
421
|
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
422
422
|
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
@@ -469,7 +469,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
469
469
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
470
470
|
}>;
|
|
471
471
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
472
|
-
readonly adminImpersonateUser: HttpApiClient.Client.Method<import("effect/
|
|
472
|
+
readonly adminImpersonateUser: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
473
473
|
readonly userId: import("effect/Schema").String;
|
|
474
474
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
475
475
|
readonly session: import("effect/Schema").Struct<{
|
|
@@ -533,7 +533,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
533
533
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
534
534
|
}>;
|
|
535
535
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
536
|
-
readonly adminStopImpersonating: HttpApiClient.Client.Method<import("effect/
|
|
536
|
+
readonly adminStopImpersonating: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
537
537
|
readonly session: import("effect/Schema").Struct<{
|
|
538
538
|
readonly id: import("effect/Schema").String;
|
|
539
539
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -595,7 +595,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
595
595
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
596
596
|
}>;
|
|
597
597
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
598
|
-
readonly adminUnbanUser: HttpApiClient.Client.Method<import("effect/
|
|
598
|
+
readonly adminUnbanUser: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
599
599
|
readonly userId: import("effect/Schema").String;
|
|
600
600
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
601
601
|
readonly user: import("effect/Schema").Struct<{
|
|
@@ -646,13 +646,13 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
646
646
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
647
647
|
}>;
|
|
648
648
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
649
|
-
readonly apiKeyDelete: HttpApiClient.Client.Method<import("effect/
|
|
649
|
+
readonly apiKeyDelete: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
650
650
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
651
651
|
readonly keyId: import("effect/Schema").String;
|
|
652
652
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
653
653
|
readonly success: import("effect/Schema").Boolean;
|
|
654
654
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
655
|
-
readonly apiKeyList: HttpApiClient.Client.Method<import("effect/
|
|
655
|
+
readonly apiKeyList: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
656
656
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
657
657
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
658
658
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -689,7 +689,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
689
689
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
690
690
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
691
691
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
692
|
-
readonly changePassword: HttpApiClient.Client.Method<import("effect/
|
|
692
|
+
readonly changePassword: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
693
693
|
readonly newPassword: import("effect/Schema").String;
|
|
694
694
|
readonly currentPassword: import("effect/Schema").String;
|
|
695
695
|
readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -743,7 +743,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
743
743
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
744
744
|
}>;
|
|
745
745
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
746
|
-
readonly getSession: HttpApiClient.Client.Method<import("effect/
|
|
746
|
+
readonly getSession: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
747
747
|
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
748
748
|
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
749
749
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -808,7 +808,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
808
808
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
809
809
|
}>;
|
|
810
810
|
}>>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
811
|
-
readonly linkSocial: HttpApiClient.Client.Method<import("effect/
|
|
811
|
+
readonly linkSocial: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
812
812
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
813
813
|
readonly provider: import("effect/Schema").String;
|
|
814
814
|
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
@@ -876,7 +876,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
876
876
|
}>>;
|
|
877
877
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
878
878
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
879
|
-
readonly listAccounts: HttpApiClient.Client.Method<import("effect/
|
|
879
|
+
readonly listAccounts: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
880
880
|
readonly id: import("effect/Schema").String;
|
|
881
881
|
readonly providerId: import("effect/Schema").String;
|
|
882
882
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -885,7 +885,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
885
885
|
readonly userId: import("effect/Schema").String;
|
|
886
886
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
887
887
|
}>>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
888
|
-
readonly oauthConsent: HttpApiClient.Client.Method<import("effect/
|
|
888
|
+
readonly oauthConsent: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
889
889
|
readonly accept: import("effect/Schema").Boolean;
|
|
890
890
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
891
891
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -893,7 +893,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
893
893
|
readonly redirect: import("effect/Schema").Boolean;
|
|
894
894
|
readonly url: import("effect/Schema").String;
|
|
895
895
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
896
|
-
readonly oauthPublicClient: HttpApiClient.Client.Method<import("effect/
|
|
896
|
+
readonly oauthPublicClient: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
897
897
|
readonly client_id: import("effect/Schema").String;
|
|
898
898
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
899
899
|
readonly client_id: import("effect/Schema").String;
|
|
@@ -905,7 +905,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
905
905
|
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
906
906
|
readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
907
907
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
908
|
-
readonly organizationAcceptInvitation: HttpApiClient.Client.Method<import("effect/
|
|
908
|
+
readonly organizationAcceptInvitation: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
909
909
|
readonly invitationId: import("effect/Schema").String;
|
|
910
910
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
911
911
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -928,7 +928,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
928
928
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
929
929
|
}>>;
|
|
930
930
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
931
|
-
readonly organizationCancelInvitation: HttpApiClient.Client.Method<import("effect/
|
|
931
|
+
readonly organizationCancelInvitation: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
932
932
|
readonly invitationId: import("effect/Schema").String;
|
|
933
933
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
934
934
|
readonly id: import("effect/Schema").String;
|
|
@@ -942,7 +942,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
942
942
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
943
943
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
944
944
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
945
|
-
readonly organizationCreate: HttpApiClient.Client.Method<import("effect/
|
|
945
|
+
readonly organizationCreate: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
946
946
|
readonly name: import("effect/Schema").NonEmptyString;
|
|
947
947
|
readonly slug: import("effect/Schema").NonEmptyString;
|
|
948
948
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -959,7 +959,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
959
959
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
960
960
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
961
961
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
962
|
-
readonly organizationGetFull: HttpApiClient.Client.Method<import("effect/
|
|
962
|
+
readonly organizationGetFull: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
963
963
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
964
964
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
965
965
|
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -1030,7 +1030,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1030
1030
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1031
1031
|
}>>;
|
|
1032
1032
|
}>>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1033
|
-
readonly organizationGetInvitation: HttpApiClient.Client.Method<import("effect/
|
|
1033
|
+
readonly organizationGetInvitation: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1034
1034
|
readonly id: import("effect/Schema").String;
|
|
1035
1035
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1036
1036
|
readonly id: import("effect/Schema").String;
|
|
@@ -1046,7 +1046,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1046
1046
|
readonly organizationSlug: import("effect/Schema").String;
|
|
1047
1047
|
readonly inviterEmail: import("effect/Schema").String;
|
|
1048
1048
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1049
|
-
readonly organizationImpersonateUser: HttpApiClient.Client.Method<import("effect/
|
|
1049
|
+
readonly organizationImpersonateUser: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1050
1050
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1051
1051
|
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
1052
1052
|
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
@@ -1113,7 +1113,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1113
1113
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1114
1114
|
}>;
|
|
1115
1115
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1116
|
-
readonly organizationInviteMember: HttpApiClient.Client.Method<import("effect/
|
|
1116
|
+
readonly organizationInviteMember: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1117
1117
|
readonly email: import("effect/Schema").String;
|
|
1118
1118
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1119
1119
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1131,7 +1131,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1131
1131
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1132
1132
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1133
1133
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1134
|
-
readonly organizationLeave: HttpApiClient.Client.Method<import("effect/
|
|
1134
|
+
readonly organizationLeave: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1135
1135
|
readonly organizationId: import("effect/Schema").String;
|
|
1136
1136
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1137
1137
|
readonly id: import("effect/Schema").String;
|
|
@@ -1140,7 +1140,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1140
1140
|
readonly role: import("effect/Schema").String;
|
|
1141
1141
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1142
1142
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1143
|
-
readonly organizationList: HttpApiClient.Client.Method<import("effect/
|
|
1143
|
+
readonly organizationList: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1144
1144
|
readonly id: import("effect/Schema").String;
|
|
1145
1145
|
readonly name: import("effect/Schema").String;
|
|
1146
1146
|
readonly slug: import("effect/Schema").String;
|
|
@@ -1150,7 +1150,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1150
1150
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1151
1151
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1152
1152
|
}>>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1153
|
-
readonly organizationListInvitations: HttpApiClient.Client.Method<import("effect/
|
|
1153
|
+
readonly organizationListInvitations: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1154
1154
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1155
1155
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1156
1156
|
readonly id: import("effect/Schema").String;
|
|
@@ -1164,7 +1164,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1164
1164
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1165
1165
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1166
1166
|
}>>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1167
|
-
readonly organizationListMembers: HttpApiClient.Client.Method<import("effect/
|
|
1167
|
+
readonly organizationListMembers: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1168
1168
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1169
1169
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1170
1170
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1222,7 +1222,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1222
1222
|
}>>;
|
|
1223
1223
|
readonly total: import("effect/Schema").Number;
|
|
1224
1224
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1225
|
-
readonly organizationListUserInvitations: HttpApiClient.Client.Method<import("effect/
|
|
1225
|
+
readonly organizationListUserInvitations: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1226
1226
|
readonly id: import("effect/Schema").String;
|
|
1227
1227
|
readonly email: import("effect/Schema").String;
|
|
1228
1228
|
readonly role: import("effect/Schema").String;
|
|
@@ -1234,7 +1234,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1234
1234
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1235
1235
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1236
1236
|
}>>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1237
|
-
readonly organizationRejectInvitation: HttpApiClient.Client.Method<import("effect/
|
|
1237
|
+
readonly organizationRejectInvitation: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1238
1238
|
readonly invitationId: import("effect/Schema").String;
|
|
1239
1239
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1240
1240
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1257,7 +1257,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1257
1257
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1258
1258
|
}>>;
|
|
1259
1259
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1260
|
-
readonly organizationRemoveMember: HttpApiClient.Client.Method<import("effect/
|
|
1260
|
+
readonly organizationRemoveMember: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1261
1261
|
readonly memberIdOrEmail: import("effect/Schema").String;
|
|
1262
1262
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1263
1263
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -1269,7 +1269,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1269
1269
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1270
1270
|
}>;
|
|
1271
1271
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1272
|
-
readonly organizationSetActive: HttpApiClient.Client.Method<import("effect/
|
|
1272
|
+
readonly organizationSetActive: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1273
1273
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1274
1274
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1275
1275
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1282,7 +1282,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1282
1282
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1283
1283
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1284
1284
|
}>>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1285
|
-
readonly organizationUpdate: HttpApiClient.Client.Method<import("effect/
|
|
1285
|
+
readonly organizationUpdate: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1286
1286
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1287
1287
|
readonly data: import("effect/Schema").Struct<{
|
|
1288
1288
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
@@ -1301,7 +1301,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1301
1301
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1302
1302
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1303
1303
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1304
|
-
readonly organizationUpdateMemberRole: HttpApiClient.Client.Method<import("effect/
|
|
1304
|
+
readonly organizationUpdateMemberRole: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1305
1305
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1306
1306
|
readonly memberId: import("effect/Schema").String;
|
|
1307
1307
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1312,26 +1312,26 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1312
1312
|
readonly role: import("effect/Schema").String;
|
|
1313
1313
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1314
1314
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1315
|
-
readonly requestPasswordReset: HttpApiClient.Client.Method<import("effect/
|
|
1315
|
+
readonly requestPasswordReset: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1316
1316
|
readonly email: import("effect/Schema").String;
|
|
1317
1317
|
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1318
1318
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1319
1319
|
readonly status: import("effect/Schema").Boolean;
|
|
1320
1320
|
readonly message: import("effect/Schema").String;
|
|
1321
1321
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1322
|
-
readonly resetPassword: HttpApiClient.Client.Method<import("effect/
|
|
1322
|
+
readonly resetPassword: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1323
1323
|
readonly newPassword: import("effect/Schema").String;
|
|
1324
1324
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1325
1325
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1326
1326
|
readonly status: import("effect/Schema").Boolean;
|
|
1327
1327
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1328
|
-
readonly sendVerificationOtp: HttpApiClient.Client.Method<import("effect/
|
|
1328
|
+
readonly sendVerificationOtp: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1329
1329
|
readonly email: import("effect/Schema").String;
|
|
1330
1330
|
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
1331
1331
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1332
1332
|
readonly success: import("effect/Schema").Boolean;
|
|
1333
1333
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1334
|
-
readonly signInEmail: HttpApiClient.Client.Method<import("effect/
|
|
1334
|
+
readonly signInEmail: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1335
1335
|
readonly email: import("effect/Schema").String;
|
|
1336
1336
|
readonly password: import("effect/Schema").String;
|
|
1337
1337
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1393,7 +1393,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1393
1393
|
readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1394
1394
|
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1395
1395
|
}>]>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1396
|
-
readonly signInEmailOtp: HttpApiClient.Client.Method<import("effect/
|
|
1396
|
+
readonly signInEmailOtp: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1397
1397
|
readonly email: import("effect/Schema").String;
|
|
1398
1398
|
readonly otp: import("effect/Schema").String;
|
|
1399
1399
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1448,7 +1448,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1448
1448
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1449
1449
|
}>;
|
|
1450
1450
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1451
|
-
readonly signInSocial: HttpApiClient.Client.Method<import("effect/
|
|
1451
|
+
readonly signInSocial: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1452
1452
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1453
1453
|
readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1454
1454
|
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1526,27 +1526,27 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1526
1526
|
}>>;
|
|
1527
1527
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1528
1528
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1529
|
-
readonly signOut: HttpApiClient.Client.Method<import("effect/
|
|
1529
|
+
readonly signOut: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1530
1530
|
readonly success: import("effect/Schema").Boolean;
|
|
1531
1531
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1532
|
-
readonly twoFactorDisable: HttpApiClient.Client.Method<import("effect/
|
|
1532
|
+
readonly twoFactorDisable: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1533
1533
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1534
1534
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1535
1535
|
readonly status: import("effect/Schema").Boolean;
|
|
1536
1536
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1537
|
-
readonly twoFactorEnable: HttpApiClient.Client.Method<import("effect/
|
|
1537
|
+
readonly twoFactorEnable: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1538
1538
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1539
1539
|
readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1540
1540
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1541
1541
|
readonly totpURI: import("effect/Schema").String;
|
|
1542
1542
|
readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1543
1543
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1544
|
-
readonly twoFactorSendOtp: HttpApiClient.Client.Method<import("effect/
|
|
1544
|
+
readonly twoFactorSendOtp: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1545
1545
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1546
1546
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1547
1547
|
readonly status: import("effect/Schema").Boolean;
|
|
1548
1548
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1549
|
-
readonly twoFactorVerifyBackupCode: HttpApiClient.Client.Method<import("effect/
|
|
1549
|
+
readonly twoFactorVerifyBackupCode: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1550
1550
|
readonly code: import("effect/Schema").String;
|
|
1551
1551
|
readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1552
1552
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -1601,7 +1601,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1601
1601
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1602
1602
|
}>;
|
|
1603
1603
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1604
|
-
readonly twoFactorVerifyOtp: HttpApiClient.Client.Method<import("effect/
|
|
1604
|
+
readonly twoFactorVerifyOtp: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1605
1605
|
readonly code: import("effect/Schema").String;
|
|
1606
1606
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1607
1607
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1655,7 +1655,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1655
1655
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1656
1656
|
}>;
|
|
1657
1657
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1658
|
-
readonly twoFactorVerifyTotp: HttpApiClient.Client.Method<import("effect/
|
|
1658
|
+
readonly twoFactorVerifyTotp: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1659
1659
|
readonly code: import("effect/Schema").String;
|
|
1660
1660
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1661
1661
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1709,13 +1709,13 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1709
1709
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1710
1710
|
}>;
|
|
1711
1711
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1712
|
-
readonly unlinkAccount: HttpApiClient.Client.Method<import("effect/
|
|
1712
|
+
readonly unlinkAccount: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1713
1713
|
readonly providerId: import("effect/Schema").String;
|
|
1714
1714
|
readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1715
1715
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1716
1716
|
readonly status: import("effect/Schema").Boolean;
|
|
1717
1717
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1718
|
-
readonly updateUser: HttpApiClient.Client.Method<import("effect/
|
|
1718
|
+
readonly updateUser: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1719
1719
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1720
1720
|
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1721
1721
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1753,7 +1753,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1753
1753
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1754
1754
|
readonly status: import("effect/Schema").Boolean;
|
|
1755
1755
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1756
|
-
readonly verifyEmailOtp: HttpApiClient.Client.Method<import("effect/
|
|
1756
|
+
readonly verifyEmailOtp: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1757
1757
|
readonly email: import("effect/Schema").String;
|
|
1758
1758
|
readonly otp: import("effect/Schema").String;
|
|
1759
1759
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -1809,7 +1809,7 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1809
1809
|
}>>, import("effect/Schema").toCodecJson<typeof import("../auth/schema.js").AuthBadRequest | typeof import("../auth/schema.js").AuthUnauthorized | typeof import("../auth/schema.js").AuthForbidden | typeof import("../auth/schema.js").AuthNotFound | typeof import("../auth/schema.js").AuthConflict | typeof import("../auth/schema.js").AuthExpectationFailed | typeof import("../auth/schema.js").AuthTooManyRequests | typeof import("../auth/schema.js").AuthInternalServerError>, never, never>, never, never>;
|
|
1810
1810
|
};
|
|
1811
1811
|
readonly authExtra: {
|
|
1812
|
-
readonly createApiKey: HttpApiClient.Client.Method<import("effect/
|
|
1812
|
+
readonly createApiKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1813
1813
|
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1814
1814
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1815
1815
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1818,8 +1818,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1818
1818
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1819
1819
|
readonly id: import("effect/Schema").String;
|
|
1820
1820
|
readonly key: import("effect/Schema").String;
|
|
1821
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1822
|
-
readonly getOrganizationPublicProfile: HttpApiClient.Client.Method<import("effect/
|
|
1821
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("../extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
1822
|
+
readonly getOrganizationPublicProfile: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1823
1823
|
readonly organizationId: import("effect/Schema").String;
|
|
1824
1824
|
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
1825
1825
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -1872,8 +1872,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1872
1872
|
}>>>;
|
|
1873
1873
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1874
1874
|
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1875
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1876
|
-
readonly getProjectPublicConfig: HttpApiClient.Client.Method<import("effect/
|
|
1875
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
1876
|
+
readonly getProjectPublicConfig: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1877
1877
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1878
1878
|
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1879
1879
|
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1890,19 +1890,19 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1890
1890
|
readonly emailOtp: import("effect/Schema").Boolean;
|
|
1891
1891
|
readonly google: import("effect/Schema").Boolean;
|
|
1892
1892
|
}>;
|
|
1893
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1894
|
-
readonly listAssociatedProjects: HttpApiClient.Client.Method<import("effect/
|
|
1893
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
1894
|
+
readonly listAssociatedProjects: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1895
1895
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1896
1896
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1897
1897
|
readonly id: import("effect/Schema").String;
|
|
1898
1898
|
readonly name: import("effect/Schema").String;
|
|
1899
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1900
|
-
readonly setPassword: HttpApiClient.Client.Method<import("effect/
|
|
1899
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
|
|
1900
|
+
readonly setPassword: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1901
1901
|
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
1902
1902
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1903
1903
|
readonly ok: import("effect/Schema").Boolean;
|
|
1904
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1905
|
-
readonly updateApiKey: HttpApiClient.Client.Method<import("effect/
|
|
1904
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("../extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
1905
|
+
readonly updateApiKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1906
1906
|
keyId: import("effect/Schema").NonEmptyString;
|
|
1907
1907
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1908
1908
|
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
@@ -1912,13 +1912,13 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1912
1912
|
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1913
1913
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1914
1914
|
readonly ok: import("effect/Schema").Boolean;
|
|
1915
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1916
|
-
readonly uploadUserImage: HttpApiClient.Client.Method<import("effect/
|
|
1917
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/
|
|
1915
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("../extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
1916
|
+
readonly uploadUserImage: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
1917
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
|
|
1918
1918
|
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1919
1919
|
readonly url: import("effect/Schema").String;
|
|
1920
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1921
|
-
readonly verifyApiKey: HttpApiClient.Client.Method<import("effect/
|
|
1920
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("../extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
1921
|
+
readonly verifyApiKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1922
1922
|
readonly key: import("effect/Schema").NonEmptyString;
|
|
1923
1923
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
|
|
1924
1924
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -1942,11 +1942,11 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
|
|
|
1942
1942
|
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
1943
1943
|
}>>;
|
|
1944
1944
|
}>>, import("effect/Schema").toCodecJson<typeof import("../extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
1945
|
-
readonly verifyPassword: HttpApiClient.Client.Method<import("effect/
|
|
1945
|
+
readonly verifyPassword: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1946
1946
|
readonly password: import("effect/Schema").NonEmptyString;
|
|
1947
1947
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1948
1948
|
readonly ok: import("effect/Schema").Boolean;
|
|
1949
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1949
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("../extra/schema.js").ExtraBadRequest>, never, never>, never, never>;
|
|
1950
1950
|
};
|
|
1951
1951
|
}, never, never>;
|
|
1952
1952
|
type AuthClientApiGroups = typeof AuthClientApi extends HttpApi.HttpApi<string, infer Groups> ? Groups : never;
|