@krak-stack/auth 0.1.25 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +252 -0
- package/dist/api.js +12 -0
- package/dist/better-auth/api.d.ts +4 -4
- package/dist/better-auth/api.js +1 -1
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/components/api-key.d.ts +4 -0
- package/dist/components/api-key.js +20 -0
- package/dist/components/auth-api-client.d.ts +252 -0
- package/dist/components/auth-api-client.js +29 -0
- package/dist/components/organization-switcher.d.ts +2 -0
- package/dist/components/organization-switcher.js +71 -71
- package/dist/components/user-button.js +26 -39
- package/dist/extra/api.d.ts +37 -37
- package/dist/extra/api.js +1 -1
- package/dist/extra/index.d.ts +22 -22
- package/dist/extra/index.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/server/api.d.ts +141 -133
- package/dist/server/api.js +3 -3
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/schema.d.ts +9 -1
- package/dist/server/schema.js +21 -1
- package/dist/service.d.ts +694 -0
- package/dist/service.js +67 -0
- package/package.json +11 -1
- package/dist/client.d.ts +0 -1352
- package/dist/client.js +0 -105
package/dist/extra/index.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { AtomHttpApi } from "effect/unstable/reactivity";
|
|
2
|
-
declare const ExtraApiClient_base: AtomHttpApi.AtomHttpApiClient<ExtraApiClient, "ExtraApiClient", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"
|
|
3
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
4
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
5
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
6
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
7
|
-
readonly password: import("effect/Schema").NonEmptyString;
|
|
8
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
9
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
10
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
2
|
+
declare const ExtraApiClient_base: AtomHttpApi.AtomHttpApiClient<ExtraApiClient, "ExtraApiClient", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
11
3
|
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
12
4
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
13
5
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -15,6 +7,22 @@ declare const ExtraApiClient_base: AtomHttpApi.AtomHttpApiClient<ExtraApiClient,
|
|
|
15
7
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
16
8
|
readonly id: import("effect/Schema").String;
|
|
17
9
|
readonly key: import("effect/Schema").String;
|
|
10
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"presign", "POST", "/api/organizations/logo/presign", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
11
|
+
readonly fileName: import("effect/Schema").NonEmptyString;
|
|
12
|
+
readonly contentType: import("effect/Schema").NonEmptyString;
|
|
13
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
14
|
+
readonly uploadUrl: import("effect/Schema").String;
|
|
15
|
+
readonly url: import("effect/Schema").String;
|
|
16
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"presignUserImageUpload", "POST", "/api/auth/image/presign", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
17
|
+
readonly fileName: import("effect/Schema").NonEmptyString;
|
|
18
|
+
readonly contentType: import("effect/Schema").NonEmptyString;
|
|
19
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
20
|
+
readonly uploadUrl: import("effect/Schema").String;
|
|
21
|
+
readonly url: import("effect/Schema").String;
|
|
22
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
23
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
24
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
25
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
18
26
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
19
27
|
readonly key: import("effect/Schema").NonEmptyString;
|
|
20
28
|
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">]>>;
|
|
@@ -39,22 +47,14 @@ declare const ExtraApiClient_base: AtomHttpApi.AtomHttpApiClient<ExtraApiClient,
|
|
|
39
47
|
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
40
48
|
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
41
49
|
}>>;
|
|
42
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
43
|
-
readonly
|
|
44
|
-
readonly contentType: import("effect/Schema").NonEmptyString;
|
|
45
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
46
|
-
readonly uploadUrl: import("effect/Schema").String;
|
|
47
|
-
readonly url: import("effect/Schema").String;
|
|
48
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"presign", "POST", "/api/organizations/logo/presign", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
49
|
-
readonly fileName: import("effect/Schema").NonEmptyString;
|
|
50
|
-
readonly contentType: import("effect/Schema").NonEmptyString;
|
|
50
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
51
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
51
52
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
52
|
-
readonly
|
|
53
|
-
|
|
54
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
|
|
53
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
54
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./schema").ExtraBadRequest>, never, never>, false>>;
|
|
55
55
|
export declare class ExtraApiClient extends ExtraApiClient_base {
|
|
56
56
|
}
|
|
57
|
-
export {
|
|
57
|
+
export { AuthService } from "../service";
|
|
58
58
|
export { AuthClientConfig } from "../config";
|
|
59
59
|
export { ExtraApi, ExtraApiGroup } from "./api";
|
|
60
60
|
export * from "./schema";
|
package/dist/extra/index.js
CHANGED
|
@@ -8,7 +8,7 @@ export class ExtraApiClient extends AtomHttpApi.Service()("ExtraApiClient", {
|
|
|
8
8
|
httpClient: FetchHttpClient.layer,
|
|
9
9
|
}) {
|
|
10
10
|
}
|
|
11
|
-
export {
|
|
11
|
+
export { AuthService } from "../service";
|
|
12
12
|
export { AuthClientConfig } from "../config";
|
|
13
13
|
export { ExtraApi, ExtraApiGroup } from "./api";
|
|
14
14
|
export * from "./schema";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./schema";
|
|
2
|
-
export {
|
|
2
|
+
export { AuthApi } from "./api";
|
|
3
|
+
export { AuthService, type AuthServiceLayerOptions } from "./service";
|
|
3
4
|
export { AuthClientConfig } from "./config";
|
|
4
5
|
export { OrganizationSwitcher, UserButton, type AuthUiClient, type OrganizationSwitcherDialog, type UserButtonDialog, } from "./components";
|
|
5
6
|
export * as BetterAuth from "./better-auth";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./schema";
|
|
2
|
-
export {
|
|
2
|
+
export { AuthApi } from "./api";
|
|
3
|
+
export { AuthService } from "./service";
|
|
3
4
|
export { AuthClientConfig } from "./config";
|
|
4
5
|
export { OrganizationSwitcher, UserButton, } from "./components";
|
|
5
6
|
export * as BetterAuth from "./better-auth";
|
package/dist/server/api.d.ts
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import { HttpApi } from "effect/unstable/httpapi";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiError, HttpApiGroup } from "effect/unstable/httpapi";
|
|
3
|
-
export declare const ServerUsersApiGroup: HttpApiGroup.HttpApiGroup<"
|
|
4
|
-
readonly ids: import("effect/Schema").NonEmptyString;
|
|
5
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
6
|
-
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
7
|
-
readonly id: import("effect/Schema").String;
|
|
8
|
-
readonly name: import("effect/Schema").String;
|
|
9
|
-
readonly email: import("effect/Schema").String;
|
|
10
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
11
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
12
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
13
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
14
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
15
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
16
|
-
}>>;
|
|
17
|
-
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
18
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getUser", "GET", "/users/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
3
|
+
export declare const ServerUsersApiGroup: HttpApiGroup.HttpApiGroup<"users", HttpApiEndpoint.HttpApiEndpoint<"getUser", "GET", "/users/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
19
4
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
20
5
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
21
6
|
readonly id: import("effect/Schema").String;
|
|
@@ -31,48 +16,23 @@ export declare const ServerUsersApiGroup: HttpApiGroup.HttpApiGroup<"serverUsers
|
|
|
31
16
|
readonly userId: import("effect/Schema").NonEmptyString;
|
|
32
17
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
33
18
|
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
34
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>,
|
|
35
|
-
|
|
36
|
-
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
37
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
19
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listUsersByIds", "GET", "/users", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
20
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
38
21
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
39
22
|
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
40
23
|
readonly id: import("effect/Schema").String;
|
|
41
24
|
readonly name: import("effect/Schema").String;
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
readonly name: import("effect/Schema").String;
|
|
48
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
49
|
-
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
50
|
-
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
51
|
-
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
52
|
-
}>>;
|
|
53
|
-
}>>;
|
|
25
|
+
readonly email: import("effect/Schema").String;
|
|
26
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
27
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
28
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
29
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
54
30
|
readonly createdAt: import("effect/Schema").Date;
|
|
31
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
55
32
|
}>>;
|
|
56
33
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
57
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.
|
|
58
|
-
|
|
59
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
60
|
-
readonly id: import("effect/Schema").String;
|
|
61
|
-
readonly name: import("effect/Schema").String;
|
|
62
|
-
readonly slug: import("effect/Schema").String;
|
|
63
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
64
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
65
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
66
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
67
|
-
readonly name: import("effect/Schema").String;
|
|
68
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
69
|
-
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
70
|
-
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
71
|
-
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
72
|
-
}>>;
|
|
73
|
-
}>>;
|
|
74
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
75
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getActiveMember", "GET", "/organizations/:organizationId/members/:userId", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
34
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false>;
|
|
35
|
+
export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"getActiveMember", "GET", "/organizations/:organizationId/members/:userId", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
76
36
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
77
37
|
readonly userId: import("effect/Schema").NonEmptyString;
|
|
78
38
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
@@ -92,6 +52,24 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"ser
|
|
|
92
52
|
readonly createdAt: import("effect/Schema").Date;
|
|
93
53
|
readonly updatedAt: import("effect/Schema").Date;
|
|
94
54
|
}>;
|
|
55
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getOrganization", "GET", "/organizations/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
56
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
57
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
58
|
+
readonly id: import("effect/Schema").String;
|
|
59
|
+
readonly name: import("effect/Schema").String;
|
|
60
|
+
readonly slug: import("effect/Schema").String;
|
|
61
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
62
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
63
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
64
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
65
|
+
readonly name: import("effect/Schema").String;
|
|
66
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
67
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
68
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
69
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
70
|
+
}>>;
|
|
71
|
+
}>>;
|
|
72
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
95
73
|
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listOrganizationMembers", "GET", "/organizations/:organizationId/members", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
96
74
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
97
75
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -111,13 +89,35 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"ser
|
|
|
111
89
|
readonly createdAt: import("effect/Schema").Date;
|
|
112
90
|
readonly updatedAt: import("effect/Schema").Date;
|
|
113
91
|
}>;
|
|
114
|
-
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>,
|
|
115
|
-
|
|
92
|
+
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listOrganizations", "GET", "/organizations", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
93
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
94
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
95
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
96
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
97
|
+
readonly id: import("effect/Schema").String;
|
|
98
|
+
readonly name: import("effect/Schema").String;
|
|
99
|
+
readonly slug: import("effect/Schema").String;
|
|
100
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
101
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
102
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
103
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
104
|
+
readonly name: import("effect/Schema").String;
|
|
105
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
106
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
107
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
108
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
109
|
+
}>>;
|
|
110
|
+
}>>;
|
|
111
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
112
|
+
}>>;
|
|
113
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
114
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false>;
|
|
115
|
+
export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"domains", HttpApiEndpoint.HttpApiEndpoint<"createDomain", "POST", "/domains", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
116
116
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
117
117
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
118
118
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
119
119
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
120
|
-
readonly managed: import("effect/Schema").
|
|
120
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
121
121
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
122
122
|
readonly id: import("effect/Schema").String;
|
|
123
123
|
readonly hostname: import("effect/Schema").String;
|
|
@@ -125,10 +125,24 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
|
|
|
125
125
|
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
126
126
|
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
127
127
|
readonly hostnameId: import("effect/Schema").String;
|
|
128
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
129
|
+
readonly active: import("effect/Schema").Boolean;
|
|
130
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
131
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
132
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDomain", "DELETE", "/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
133
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
134
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
135
|
+
readonly id: import("effect/Schema").String;
|
|
136
|
+
readonly hostname: import("effect/Schema").String;
|
|
137
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
138
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
139
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
140
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
141
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
128
142
|
readonly active: import("effect/Schema").Boolean;
|
|
129
143
|
readonly createdAt: import("effect/Schema").Date;
|
|
130
144
|
readonly updatedAt: import("effect/Schema").Date;
|
|
131
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.
|
|
145
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomain", "GET", "/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
132
146
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
133
147
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
134
148
|
readonly id: import("effect/Schema").String;
|
|
@@ -137,6 +151,7 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
|
|
|
137
151
|
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
138
152
|
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
139
153
|
readonly hostnameId: import("effect/Schema").String;
|
|
154
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
140
155
|
readonly active: import("effect/Schema").Boolean;
|
|
141
156
|
readonly createdAt: import("effect/Schema").Date;
|
|
142
157
|
readonly updatedAt: import("effect/Schema").Date;
|
|
@@ -149,6 +164,7 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
|
|
|
149
164
|
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
150
165
|
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
151
166
|
readonly hostnameId: import("effect/Schema").String;
|
|
167
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
152
168
|
readonly active: import("effect/Schema").Boolean;
|
|
153
169
|
readonly createdAt: import("effect/Schema").Date;
|
|
154
170
|
readonly updatedAt: import("effect/Schema").Date;
|
|
@@ -160,20 +176,24 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
|
|
|
160
176
|
readonly type: import("effect/Schema").String;
|
|
161
177
|
readonly name: import("effect/Schema").String;
|
|
162
178
|
readonly value: import("effect/Schema").String;
|
|
163
|
-
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never
|
|
179
|
+
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>;
|
|
180
|
+
export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpApiGroup<"users", HttpApiEndpoint.HttpApiEndpoint<"getUser", "GET", "/api/users/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
164
181
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
165
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.
|
|
182
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
166
183
|
readonly id: import("effect/Schema").String;
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
170
|
-
readonly
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
184
|
+
readonly name: import("effect/Schema").String;
|
|
185
|
+
readonly email: import("effect/Schema").String;
|
|
186
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
187
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
188
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
189
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
173
190
|
readonly createdAt: import("effect/Schema").Date;
|
|
174
191
|
readonly updatedAt: import("effect/Schema").Date;
|
|
175
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never
|
|
176
|
-
|
|
192
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
193
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
194
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
195
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
196
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
177
197
|
readonly ids: import("effect/Schema").NonEmptyString;
|
|
178
198
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
179
199
|
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -188,45 +208,27 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
188
208
|
readonly updatedAt: import("effect/Schema").Date;
|
|
189
209
|
}>>;
|
|
190
210
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
191
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
192
|
-
readonly
|
|
211
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
212
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
213
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
193
214
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
194
215
|
readonly id: import("effect/Schema").String;
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly
|
|
198
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
199
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
200
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
216
|
+
readonly organizationId: import("effect/Schema").String;
|
|
217
|
+
readonly userId: import("effect/Schema").String;
|
|
218
|
+
readonly role: import("effect/Schema").String;
|
|
201
219
|
readonly createdAt: import("effect/Schema").Date;
|
|
202
|
-
readonly
|
|
203
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
204
|
-
readonly userId: import("effect/Schema").NonEmptyString;
|
|
205
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
206
|
-
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
207
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"serverOrganizations", HttpApiEndpoint.HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
208
|
-
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
209
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
210
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
211
|
-
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
220
|
+
readonly user: import("effect/Schema").Struct<{
|
|
212
221
|
readonly id: import("effect/Schema").String;
|
|
213
222
|
readonly name: import("effect/Schema").String;
|
|
214
|
-
readonly
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
readonly name: import("effect/Schema").String;
|
|
220
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
221
|
-
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
222
|
-
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
223
|
-
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
224
|
-
}>>;
|
|
225
|
-
}>>;
|
|
223
|
+
readonly email: import("effect/Schema").String;
|
|
224
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
225
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
226
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
227
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
226
228
|
readonly createdAt: import("effect/Schema").Date;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.
|
|
229
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
230
|
+
}>;
|
|
231
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
230
232
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
231
233
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
232
234
|
readonly id: import("effect/Schema").String;
|
|
@@ -244,10 +246,9 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
244
246
|
}>>;
|
|
245
247
|
}>>;
|
|
246
248
|
readonly createdAt: import("effect/Schema").Date;
|
|
247
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
249
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
248
250
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
249
|
-
|
|
250
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
251
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
251
252
|
readonly id: import("effect/Schema").String;
|
|
252
253
|
readonly organizationId: import("effect/Schema").String;
|
|
253
254
|
readonly userId: import("effect/Schema").String;
|
|
@@ -264,31 +265,34 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
264
265
|
readonly createdAt: import("effect/Schema").Date;
|
|
265
266
|
readonly updatedAt: import("effect/Schema").Date;
|
|
266
267
|
}>;
|
|
267
|
-
}
|
|
268
|
-
readonly
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
readonly
|
|
272
|
-
readonly userId: import("effect/Schema").String;
|
|
273
|
-
readonly role: import("effect/Schema").String;
|
|
274
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
275
|
-
readonly user: import("effect/Schema").Struct<{
|
|
268
|
+
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
269
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
270
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
271
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
272
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
276
273
|
readonly id: import("effect/Schema").String;
|
|
277
274
|
readonly name: import("effect/Schema").String;
|
|
278
|
-
readonly
|
|
279
|
-
readonly
|
|
280
|
-
readonly
|
|
281
|
-
|
|
282
|
-
|
|
275
|
+
readonly slug: import("effect/Schema").String;
|
|
276
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
277
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
278
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
279
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
280
|
+
readonly name: import("effect/Schema").String;
|
|
281
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
282
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
283
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
284
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
285
|
+
}>>;
|
|
286
|
+
}>>;
|
|
283
287
|
readonly createdAt: import("effect/Schema").Date;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}
|
|
288
|
+
}>>;
|
|
289
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
290
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"domains", HttpApiEndpoint.HttpApiEndpoint<"createDomain", "POST", "/api/domains", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
287
291
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
288
292
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
289
293
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
290
294
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
291
|
-
readonly managed: import("effect/Schema").
|
|
295
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
292
296
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
293
297
|
readonly id: import("effect/Schema").String;
|
|
294
298
|
readonly hostname: import("effect/Schema").String;
|
|
@@ -296,10 +300,24 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
296
300
|
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
297
301
|
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
298
302
|
readonly hostnameId: import("effect/Schema").String;
|
|
303
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
304
|
+
readonly active: import("effect/Schema").Boolean;
|
|
305
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
306
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
307
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
308
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
309
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
310
|
+
readonly id: import("effect/Schema").String;
|
|
311
|
+
readonly hostname: import("effect/Schema").String;
|
|
312
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
313
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
314
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
315
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
316
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
299
317
|
readonly active: import("effect/Schema").Boolean;
|
|
300
318
|
readonly createdAt: import("effect/Schema").Date;
|
|
301
319
|
readonly updatedAt: import("effect/Schema").Date;
|
|
302
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.
|
|
320
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
303
321
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
304
322
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
305
323
|
readonly id: import("effect/Schema").String;
|
|
@@ -308,6 +326,7 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
308
326
|
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
309
327
|
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
310
328
|
readonly hostnameId: import("effect/Schema").String;
|
|
329
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
311
330
|
readonly active: import("effect/Schema").Boolean;
|
|
312
331
|
readonly createdAt: import("effect/Schema").Date;
|
|
313
332
|
readonly updatedAt: import("effect/Schema").Date;
|
|
@@ -320,6 +339,7 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
320
339
|
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
321
340
|
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
322
341
|
readonly hostnameId: import("effect/Schema").String;
|
|
342
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
323
343
|
readonly active: import("effect/Schema").Boolean;
|
|
324
344
|
readonly createdAt: import("effect/Schema").Date;
|
|
325
345
|
readonly updatedAt: import("effect/Schema").Date;
|
|
@@ -331,16 +351,4 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
331
351
|
readonly type: import("effect/Schema").String;
|
|
332
352
|
readonly name: import("effect/Schema").String;
|
|
333
353
|
readonly value: import("effect/Schema").String;
|
|
334
|
-
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never
|
|
335
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
336
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
337
|
-
readonly id: import("effect/Schema").String;
|
|
338
|
-
readonly hostname: import("effect/Schema").String;
|
|
339
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
340
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
341
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
342
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
343
|
-
readonly active: import("effect/Schema").Boolean;
|
|
344
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
345
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
346
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>>;
|
|
354
|
+
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>>;
|
package/dist/server/api.js
CHANGED
|
@@ -2,7 +2,7 @@ import { HttpApi, OpenApi } from "effect/unstable/httpapi";
|
|
|
2
2
|
import { HttpApiEndpoint, HttpApiError, HttpApiGroup, } from "effect/unstable/httpapi";
|
|
3
3
|
import { Member, Organization, User } from "../schema";
|
|
4
4
|
import { ServerActiveOrganization, ServerCreateDomainPayload, ServerDomain, ServerDomainHostParams, ServerDomainIdParams, ServerDomainRecordsResponse, ServerIdParams, ServerIdsQuery, ServerMemberParams, ServerMembersResponse, ServerOrganizationIdParams, ServerOrganizationsQuery, ServerOrganizationsResponse, ServerUserIdParams, ServerUsersResponse, } from "./schema";
|
|
5
|
-
export const ServerUsersApiGroup = HttpApiGroup.make("
|
|
5
|
+
export const ServerUsersApiGroup = HttpApiGroup.make("users")
|
|
6
6
|
.add(HttpApiEndpoint.get("listUsersByIds", "/users", {
|
|
7
7
|
query: ServerIdsQuery,
|
|
8
8
|
success: ServerUsersResponse,
|
|
@@ -38,7 +38,7 @@ export const ServerUsersApiGroup = HttpApiGroup.make("serverUsers")
|
|
|
38
38
|
title: "Users (Server)",
|
|
39
39
|
description: "Server-to-server user endpoints for trusted services.",
|
|
40
40
|
}));
|
|
41
|
-
export const ServerOrganizationsApiGroup = HttpApiGroup.make("
|
|
41
|
+
export const ServerOrganizationsApiGroup = HttpApiGroup.make("organizations")
|
|
42
42
|
.add(HttpApiEndpoint.get("listOrganizations", "/organizations", {
|
|
43
43
|
query: ServerOrganizationsQuery,
|
|
44
44
|
success: ServerOrganizationsResponse,
|
|
@@ -91,7 +91,7 @@ export const ServerOrganizationsApiGroup = HttpApiGroup.make("serverOrganization
|
|
|
91
91
|
title: "Organizations (Server)",
|
|
92
92
|
description: "Server-to-server organization and membership endpoints for trusted services.",
|
|
93
93
|
}));
|
|
94
|
-
export const ServerDomainsApiGroup = HttpApiGroup.make("
|
|
94
|
+
export const ServerDomainsApiGroup = HttpApiGroup.make("domains")
|
|
95
95
|
.add(HttpApiEndpoint.post("createDomain", "/domains", {
|
|
96
96
|
payload: ServerCreateDomainPayload,
|
|
97
97
|
success: ServerDomain,
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AuthService } from "../service";
|
|
2
2
|
export { AuthClientConfig } from "../config";
|
|
3
3
|
export { ServerApi, ServerOrganizationsApiGroup, ServerUsersApiGroup, } from "./api";
|
|
4
4
|
export type { ServerActiveOrganization, ServerMembersResponse, ServerOrganizationsResponse, ServerUsersResponse, } from "./schema";
|
package/dist/server/index.js
CHANGED