@krak-stack/auth 0.1.24 → 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/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./schema";
2
- export { AuthApiClients, AuthClient, } from "./client";
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";
@@ -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<"serverUsers", HttpApiEndpoint.HttpApiEndpoint<"listUsersByIds", "GET", "/users", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
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>, false>;
35
- export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"serverOrganizations", HttpApiEndpoint.HttpApiEndpoint<"listOrganizations", "GET", "/organizations", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
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 slug: import("effect/Schema").String;
43
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
44
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
45
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
46
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
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.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getOrganization", "GET", "/organizations/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
58
- readonly id: import("effect/Schema").NonEmptyString;
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,12 +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>, false>;
115
- export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDomains", HttpApiEndpoint.HttpApiEndpoint<"createDomain", "POST", "/domains", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
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").Boolean;
120
121
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
121
122
  readonly id: import("effect/Schema").String;
122
123
  readonly hostname: import("effect/Schema").String;
@@ -124,10 +125,24 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
124
125
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
125
126
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
126
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;
127
142
  readonly active: import("effect/Schema").Boolean;
128
143
  readonly createdAt: import("effect/Schema").Date;
129
144
  readonly updatedAt: import("effect/Schema").Date;
130
- }>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomain", "GET", "/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
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<{
131
146
  readonly id: import("effect/Schema").NonEmptyString;
132
147
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
133
148
  readonly id: import("effect/Schema").String;
@@ -136,6 +151,7 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
136
151
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
137
152
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
138
153
  readonly hostnameId: import("effect/Schema").String;
154
+ readonly managed: import("effect/Schema").Boolean;
139
155
  readonly active: import("effect/Schema").Boolean;
140
156
  readonly createdAt: import("effect/Schema").Date;
141
157
  readonly updatedAt: import("effect/Schema").Date;
@@ -148,6 +164,7 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
148
164
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
149
165
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
150
166
  readonly hostnameId: import("effect/Schema").String;
167
+ readonly managed: import("effect/Schema").Boolean;
151
168
  readonly active: import("effect/Schema").Boolean;
152
169
  readonly createdAt: import("effect/Schema").Date;
153
170
  readonly updatedAt: import("effect/Schema").Date;
@@ -159,7 +176,25 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
159
176
  readonly type: import("effect/Schema").String;
160
177
  readonly name: import("effect/Schema").String;
161
178
  readonly value: import("effect/Schema").String;
162
- }>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDomain", "DELETE", "/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
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<{
163
198
  readonly id: import("effect/Schema").NonEmptyString;
164
199
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
165
200
  readonly id: import("effect/Schema").String;
@@ -168,64 +203,65 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
168
203
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
169
204
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
170
205
  readonly hostnameId: import("effect/Schema").String;
206
+ readonly managed: import("effect/Schema").Boolean;
171
207
  readonly active: import("effect/Schema").Boolean;
172
208
  readonly createdAt: import("effect/Schema").Date;
173
209
  readonly updatedAt: import("effect/Schema").Date;
174
- }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>;
175
- 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<{
176
- readonly ids: import("effect/Schema").NonEmptyString;
177
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
178
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
179
- readonly id: import("effect/Schema").String;
180
- readonly name: import("effect/Schema").String;
181
- readonly email: import("effect/Schema").String;
182
- readonly emailVerified: import("effect/Schema").Boolean;
183
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
184
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
185
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
186
- readonly createdAt: import("effect/Schema").Date;
187
- readonly updatedAt: import("effect/Schema").Date;
188
- }>>;
189
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
190
- }>>, 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<{
191
211
  readonly id: import("effect/Schema").NonEmptyString;
192
212
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
193
213
  readonly id: import("effect/Schema").String;
194
- readonly name: import("effect/Schema").String;
195
- readonly email: import("effect/Schema").String;
196
- readonly emailVerified: import("effect/Schema").Boolean;
197
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
198
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
199
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
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;
200
221
  readonly createdAt: import("effect/Schema").Date;
201
222
  readonly updatedAt: import("effect/Schema").Date;
202
- }>>, 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<{
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;
203
246
  readonly userId: import("effect/Schema").NonEmptyString;
204
247
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
205
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
206
- }>>, 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<{
207
- readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
208
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
209
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
210
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
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<{
211
254
  readonly id: import("effect/Schema").String;
212
255
  readonly name: import("effect/Schema").String;
213
- readonly slug: import("effect/Schema").String;
214
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
215
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
216
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
217
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
218
- readonly name: import("effect/Schema").String;
219
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
220
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
221
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
222
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
223
- }>>;
224
- }>>;
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>;
225
261
  readonly createdAt: import("effect/Schema").Date;
226
- }>>;
227
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
228
- }>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
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<{
229
265
  readonly id: import("effect/Schema").NonEmptyString;
230
266
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
231
267
  readonly id: import("effect/Schema").String;
@@ -243,10 +279,9 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
243
279
  }>>;
244
280
  }>>;
245
281
  readonly createdAt: import("effect/Schema").Date;
246
- }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
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<{
247
283
  readonly organizationId: import("effect/Schema").NonEmptyString;
248
- readonly userId: import("effect/Schema").NonEmptyString;
249
- }>>, 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<{
250
285
  readonly id: import("effect/Schema").String;
251
286
  readonly organizationId: import("effect/Schema").String;
252
287
  readonly userId: import("effect/Schema").String;
@@ -263,15 +298,48 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
263
298
  readonly createdAt: import("effect/Schema").Date;
264
299
  readonly updatedAt: import("effect/Schema").Date;
265
300
  }>;
266
- }>>, 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<{
267
- readonly organizationId: import("effect/Schema").NonEmptyString;
268
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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<{
269
326
  readonly id: import("effect/Schema").String;
270
- readonly organizationId: import("effect/Schema").String;
271
- readonly userId: import("effect/Schema").String;
272
- readonly role: import("effect/Schema").String;
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>;
273
333
  readonly createdAt: import("effect/Schema").Date;
274
- readonly user: import("effect/Schema").Struct<{
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<{
275
343
  readonly id: import("effect/Schema").String;
276
344
  readonly name: import("effect/Schema").String;
277
345
  readonly email: import("effect/Schema").String;
@@ -281,64 +349,6 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
281
349
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
282
350
  readonly createdAt: import("effect/Schema").Date;
283
351
  readonly updatedAt: import("effect/Schema").Date;
284
- }>;
285
- }>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"serverDomains", HttpApiEndpoint.HttpApiEndpoint<"createDomain", "POST", "/api/domains", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
286
- readonly hostname: import("effect/Schema").NonEmptyString;
287
- readonly rootHostname: import("effect/Schema").NonEmptyString;
288
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
289
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
290
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
291
- readonly id: import("effect/Schema").String;
292
- readonly hostname: import("effect/Schema").String;
293
- readonly rootHostname: import("effect/Schema").String;
294
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
295
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
296
- readonly hostnameId: import("effect/Schema").String;
297
- readonly active: import("effect/Schema").Boolean;
298
- readonly createdAt: import("effect/Schema").Date;
299
- readonly updatedAt: import("effect/Schema").Date;
300
- }>>, 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<{
301
- readonly id: import("effect/Schema").NonEmptyString;
302
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
303
- readonly id: import("effect/Schema").String;
304
- readonly hostname: import("effect/Schema").String;
305
- readonly rootHostname: import("effect/Schema").String;
306
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
307
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
308
- readonly hostnameId: import("effect/Schema").String;
309
- readonly active: import("effect/Schema").Boolean;
310
- readonly createdAt: import("effect/Schema").Date;
311
- readonly updatedAt: import("effect/Schema").Date;
312
- }>>, 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<{
313
- readonly hostname: import("effect/Schema").NonEmptyString;
314
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
315
- readonly id: import("effect/Schema").String;
316
- readonly hostname: import("effect/Schema").String;
317
- readonly rootHostname: import("effect/Schema").String;
318
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
319
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
320
- readonly hostnameId: import("effect/Schema").String;
321
- readonly active: import("effect/Schema").Boolean;
322
- readonly createdAt: import("effect/Schema").Date;
323
- readonly updatedAt: import("effect/Schema").Date;
324
- }>>, 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<{
325
- readonly id: import("effect/Schema").NonEmptyString;
326
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
327
- readonly required: import("effect/Schema").Boolean;
328
- readonly status: import("effect/Schema").String;
329
- readonly type: import("effect/Schema").String;
330
- readonly name: import("effect/Schema").String;
331
- readonly value: import("effect/Schema").String;
332
- }>>>, 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<{
333
- readonly id: import("effect/Schema").NonEmptyString;
334
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
335
- readonly id: import("effect/Schema").String;
336
- readonly hostname: import("effect/Schema").String;
337
- readonly rootHostname: import("effect/Schema").String;
338
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
339
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
340
- readonly hostnameId: import("effect/Schema").String;
341
- readonly active: import("effect/Schema").Boolean;
342
- readonly createdAt: import("effect/Schema").Date;
343
- readonly updatedAt: import("effect/Schema").Date;
344
- }>>, 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>>;
@@ -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("serverUsers")
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("serverOrganizations")
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("serverDomains")
94
+ export const ServerDomainsApiGroup = HttpApiGroup.make("domains")
95
95
  .add(HttpApiEndpoint.post("createDomain", "/domains", {
96
96
  payload: ServerCreateDomainPayload,
97
97
  success: ServerDomain,
@@ -102,8 +102,8 @@ export const ServerDomainsApiGroup = HttpApiGroup.make("serverDomains")
102
102
  ],
103
103
  }).annotateMerge(OpenApi.annotations({
104
104
  title: "Create server domain",
105
- summary: "Create an auth-owned custom hostname",
106
- description: "Registers an auth custom hostname for a trusted service. Requires a service API key.",
105
+ summary: "Register an auth hostname",
106
+ description: "Registers an auth hostname for a trusted service. Managed domains are provisioned in Cloudflare by auth; unmanaged domains are only registered for auth request resolution. Requires a service API key.",
107
107
  })))
108
108
  .add(HttpApiEndpoint.get("getDomain", "/domains/:id", {
109
109
  params: ServerDomainIdParams,
@@ -143,7 +143,7 @@ export const ServerDomainsApiGroup = HttpApiGroup.make("serverDomains")
143
143
  }))
144
144
  .annotateMerge(OpenApi.annotations({
145
145
  title: "Domains (Server)",
146
- description: "Server-to-server auth custom hostname endpoints.",
146
+ description: "Server-to-server auth hostname endpoints.",
147
147
  }));
148
148
  export const ServerApi = HttpApi.make("ServerApi")
149
149
  .add(ServerUsersApiGroup)
@@ -1,4 +1,4 @@
1
- export { AuthClient } from "../client";
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";
@@ -1,3 +1,3 @@
1
- export { AuthClient } from "../client";
1
+ export { AuthService } from "../service";
2
2
  export { AuthClientConfig } from "../config";
3
3
  export { ServerApi, ServerOrganizationsApiGroup, ServerUsersApiGroup, } from "./api";
@@ -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,6 +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>>;
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;
93
101
  }>;
94
102
  export declare const ServerDomainIdParams: Schema.Struct<{
95
103
  readonly id: Schema.NonEmptyString;
@@ -117,4 +125,5 @@ export type ServerMembersResponse = typeof ServerMembersResponse.Type;
117
125
  export type ServerActiveOrganization = typeof ServerActiveOrganization.Type;
118
126
  export type ServerDomain = typeof ServerDomain.Type;
119
127
  export type ServerCreateDomainPayload = typeof ServerCreateDomainPayload.Type;
128
+ export type ServerUpdateDomainPayload = typeof ServerUpdateDomainPayload.Type;
120
129
  export type ServerDomainRecordsResponse = typeof ServerDomainRecordsResponse.Type;