@krak-stack/auth 0.1.25 → 0.1.27
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/organization-switcher.d.ts +2 -0
- package/dist/components/organization-switcher.js +86 -60
- package/dist/components/user-button.js +14 -23
- 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 +181 -173
- 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/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,7 +176,25 @@ 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<"domains", HttpApiEndpoint.HttpApiEndpoint<"createDomain", "POST", "/api/domains", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
181
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
182
|
+
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
183
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
184
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
185
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
186
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
187
|
+
readonly id: import("effect/Schema").String;
|
|
188
|
+
readonly hostname: import("effect/Schema").String;
|
|
189
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
190
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
191
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
192
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
193
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
194
|
+
readonly active: import("effect/Schema").Boolean;
|
|
195
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
196
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
197
|
+
}>>, 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<{
|
|
164
198
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
165
199
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
166
200
|
readonly id: import("effect/Schema").String;
|
|
@@ -169,64 +203,65 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
|
|
|
169
203
|
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
170
204
|
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
171
205
|
readonly hostnameId: import("effect/Schema").String;
|
|
206
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
172
207
|
readonly active: import("effect/Schema").Boolean;
|
|
173
208
|
readonly createdAt: import("effect/Schema").Date;
|
|
174
209
|
readonly updatedAt: import("effect/Schema").Date;
|
|
175
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never
|
|
176
|
-
export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpApiGroup<"serverUsers", HttpApiEndpoint.HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
177
|
-
readonly ids: import("effect/Schema").NonEmptyString;
|
|
178
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
179
|
-
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
180
|
-
readonly id: import("effect/Schema").String;
|
|
181
|
-
readonly name: import("effect/Schema").String;
|
|
182
|
-
readonly email: import("effect/Schema").String;
|
|
183
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
184
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
185
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
186
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
187
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
188
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
189
|
-
}>>;
|
|
190
|
-
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
191
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getUser", "GET", "/api/users/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
210
|
+
}>>, 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<{
|
|
192
211
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
193
212
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
194
213
|
readonly id: import("effect/Schema").String;
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly
|
|
198
|
-
readonly
|
|
199
|
-
readonly
|
|
200
|
-
readonly
|
|
214
|
+
readonly hostname: import("effect/Schema").String;
|
|
215
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
216
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
217
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
218
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
219
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
220
|
+
readonly active: import("effect/Schema").Boolean;
|
|
201
221
|
readonly createdAt: import("effect/Schema").Date;
|
|
202
222
|
readonly updatedAt: import("effect/Schema").Date;
|
|
203
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
223
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
224
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
225
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
226
|
+
readonly id: import("effect/Schema").String;
|
|
227
|
+
readonly hostname: import("effect/Schema").String;
|
|
228
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
229
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
230
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
231
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
232
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
233
|
+
readonly active: import("effect/Schema").Boolean;
|
|
234
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
235
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
236
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
237
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
238
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
239
|
+
readonly required: import("effect/Schema").Boolean;
|
|
240
|
+
readonly status: import("effect/Schema").String;
|
|
241
|
+
readonly type: import("effect/Schema").String;
|
|
242
|
+
readonly name: import("effect/Schema").String;
|
|
243
|
+
readonly value: import("effect/Schema").String;
|
|
244
|
+
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
245
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
204
246
|
readonly userId: import("effect/Schema").NonEmptyString;
|
|
205
247
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
206
|
-
readonly id: import("effect/Schema").
|
|
207
|
-
|
|
208
|
-
readonly
|
|
209
|
-
readonly
|
|
210
|
-
|
|
211
|
-
readonly
|
|
248
|
+
readonly id: import("effect/Schema").String;
|
|
249
|
+
readonly organizationId: import("effect/Schema").String;
|
|
250
|
+
readonly userId: import("effect/Schema").String;
|
|
251
|
+
readonly role: import("effect/Schema").String;
|
|
252
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
253
|
+
readonly user: import("effect/Schema").Struct<{
|
|
212
254
|
readonly id: import("effect/Schema").String;
|
|
213
255
|
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
|
-
}>>;
|
|
256
|
+
readonly email: import("effect/Schema").String;
|
|
257
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
258
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
259
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
260
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
226
261
|
readonly createdAt: import("effect/Schema").Date;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.
|
|
262
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
263
|
+
}>;
|
|
264
|
+
}>>, 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
265
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
231
266
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
232
267
|
readonly id: import("effect/Schema").String;
|
|
@@ -244,10 +279,9 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
244
279
|
}>>;
|
|
245
280
|
}>>;
|
|
246
281
|
readonly createdAt: import("effect/Schema").Date;
|
|
247
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
282
|
+
}>>, 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
283
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
249
|
-
|
|
250
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
284
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
251
285
|
readonly id: import("effect/Schema").String;
|
|
252
286
|
readonly organizationId: import("effect/Schema").String;
|
|
253
287
|
readonly userId: import("effect/Schema").String;
|
|
@@ -264,15 +298,48 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
264
298
|
readonly createdAt: import("effect/Schema").Date;
|
|
265
299
|
readonly updatedAt: import("effect/Schema").Date;
|
|
266
300
|
}>;
|
|
267
|
-
}
|
|
268
|
-
readonly
|
|
269
|
-
|
|
301
|
+
}>>>, 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<{
|
|
302
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
303
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
304
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
305
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
306
|
+
readonly id: import("effect/Schema").String;
|
|
307
|
+
readonly name: import("effect/Schema").String;
|
|
308
|
+
readonly slug: import("effect/Schema").String;
|
|
309
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
310
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
311
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
312
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
313
|
+
readonly name: import("effect/Schema").String;
|
|
314
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
315
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
316
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
317
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
318
|
+
}>>;
|
|
319
|
+
}>>;
|
|
320
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
321
|
+
}>>;
|
|
322
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
323
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"users", HttpApiEndpoint.HttpApiEndpoint<"getUser", "GET", "/api/users/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
324
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
325
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
270
326
|
readonly id: import("effect/Schema").String;
|
|
271
|
-
readonly
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
327
|
+
readonly name: import("effect/Schema").String;
|
|
328
|
+
readonly email: import("effect/Schema").String;
|
|
329
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
330
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
331
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
332
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
274
333
|
readonly createdAt: import("effect/Schema").Date;
|
|
275
|
-
readonly
|
|
334
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
335
|
+
}>>, 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<{
|
|
336
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
337
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
338
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
339
|
+
}>>, 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<{
|
|
340
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
341
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
342
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
276
343
|
readonly id: import("effect/Schema").String;
|
|
277
344
|
readonly name: import("effect/Schema").String;
|
|
278
345
|
readonly email: import("effect/Schema").String;
|
|
@@ -282,65 +349,6 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
282
349
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
283
350
|
readonly createdAt: import("effect/Schema").Date;
|
|
284
351
|
readonly updatedAt: import("effect/Schema").Date;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
289
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
290
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
291
|
-
readonly managed: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
292
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
293
|
-
readonly id: import("effect/Schema").String;
|
|
294
|
-
readonly hostname: import("effect/Schema").String;
|
|
295
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
296
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
297
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
298
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
299
|
-
readonly active: import("effect/Schema").Boolean;
|
|
300
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
301
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
302
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
303
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
304
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
305
|
-
readonly id: import("effect/Schema").String;
|
|
306
|
-
readonly hostname: import("effect/Schema").String;
|
|
307
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
308
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
309
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
310
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
311
|
-
readonly active: import("effect/Schema").Boolean;
|
|
312
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
313
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
314
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
315
|
-
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
316
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
317
|
-
readonly id: import("effect/Schema").String;
|
|
318
|
-
readonly hostname: import("effect/Schema").String;
|
|
319
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
320
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
321
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
322
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
323
|
-
readonly active: import("effect/Schema").Boolean;
|
|
324
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
325
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
326
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
327
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
328
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
329
|
-
readonly required: import("effect/Schema").Boolean;
|
|
330
|
-
readonly status: import("effect/Schema").String;
|
|
331
|
-
readonly type: import("effect/Schema").String;
|
|
332
|
-
readonly name: import("effect/Schema").String;
|
|
333
|
-
readonly value: import("effect/Schema").String;
|
|
334
|
-
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
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>>;
|
|
352
|
+
}>>;
|
|
353
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
354
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | 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
package/dist/server/schema.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export declare const ServerDomain: Schema.Struct<{
|
|
|
81
81
|
readonly projectId: Schema.NullOr<Schema.String>;
|
|
82
82
|
readonly organizationId: Schema.NullOr<Schema.String>;
|
|
83
83
|
readonly hostnameId: Schema.String;
|
|
84
|
+
readonly managed: Schema.Boolean;
|
|
84
85
|
readonly active: Schema.Boolean;
|
|
85
86
|
readonly createdAt: Schema.Date;
|
|
86
87
|
readonly updatedAt: Schema.Date;
|
|
@@ -90,7 +91,13 @@ export declare const ServerCreateDomainPayload: Schema.Struct<{
|
|
|
90
91
|
readonly rootHostname: Schema.NonEmptyString;
|
|
91
92
|
readonly projectId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
92
93
|
readonly organizationId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
93
|
-
readonly managed: Schema.
|
|
94
|
+
readonly managed: Schema.Boolean;
|
|
95
|
+
}>;
|
|
96
|
+
export declare const ServerUpdateDomainPayload: Schema.Struct<{
|
|
97
|
+
readonly rootHostname: Schema.NonEmptyString;
|
|
98
|
+
readonly projectId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
99
|
+
readonly organizationId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
100
|
+
readonly managed: Schema.Boolean;
|
|
94
101
|
}>;
|
|
95
102
|
export declare const ServerDomainIdParams: Schema.Struct<{
|
|
96
103
|
readonly id: Schema.NonEmptyString;
|
|
@@ -118,4 +125,5 @@ export type ServerMembersResponse = typeof ServerMembersResponse.Type;
|
|
|
118
125
|
export type ServerActiveOrganization = typeof ServerActiveOrganization.Type;
|
|
119
126
|
export type ServerDomain = typeof ServerDomain.Type;
|
|
120
127
|
export type ServerCreateDomainPayload = typeof ServerCreateDomainPayload.Type;
|
|
128
|
+
export type ServerUpdateDomainPayload = typeof ServerUpdateDomainPayload.Type;
|
|
121
129
|
export type ServerDomainRecordsResponse = typeof ServerDomainRecordsResponse.Type;
|