@krak-stack/auth 0.1.52 → 0.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,6 +69,12 @@ import { OrganizationSwitcher, UserButton } from "@krak-stack/auth";
69
69
  import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
70
70
 
71
71
  <OrganizationSwitcher
72
+ allowedOrganizationIds={["organization-id"]}
73
+ features={{
74
+ organizationCreation: false,
75
+ organizationSwitching: false,
76
+ userInvitations: false,
77
+ }}
72
78
  menuActions={
73
79
  <DropdownMenuItem render={<a href="/organization" />}>
74
80
  Dashboard
@@ -26,13 +26,26 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
26
26
  readonly name: Schema.NonEmptyString;
27
27
  readonly slug: Schema.NonEmptyString;
28
28
  readonly logo: Schema.optional<Schema.String>;
29
+ readonly parentId: Schema.optional<Schema.String>;
29
30
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
30
31
  readonly id: Schema.String;
31
32
  readonly name: Schema.String;
32
33
  readonly slug: Schema.String;
33
34
  readonly logo: Schema.optional<Schema.NullOr<Schema.String>>;
34
35
  readonly metadata: Schema.optional<Schema.NullOr<Schema.String>>;
36
+ readonly userId: Schema.optional<Schema.NullOr<Schema.String>>;
37
+ readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
35
38
  readonly memberCount: Schema.optional<Schema.Number>;
39
+ readonly memberPreviews: Schema.optional<Schema.$Array<Schema.Struct<{
40
+ readonly id: Schema.String;
41
+ readonly name: Schema.String;
42
+ readonly image: Schema.NullOr<Schema.String>;
43
+ }>>>;
44
+ readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
45
+ readonly id: Schema.String;
46
+ readonly name: Schema.String;
47
+ readonly logo: Schema.NullOr<Schema.String>;
48
+ }>>>;
36
49
  readonly createdAt: Schema.Date;
37
50
  }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"dashboardStats", "GET", "/admin/dashboard-stats", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
38
51
  readonly days: Schema.optional<Schema.Union<readonly [Schema.Literal<"7">, Schema.Literal<"14">, Schema.Literal<"30">, Schema.Literal<"90">]>>;
@@ -102,7 +115,19 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
102
115
  readonly slug: Schema.String;
103
116
  readonly logo: Schema.optional<Schema.NullOr<Schema.String>>;
104
117
  readonly metadata: Schema.optional<Schema.NullOr<Schema.String>>;
118
+ readonly userId: Schema.optional<Schema.NullOr<Schema.String>>;
119
+ readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
105
120
  readonly memberCount: Schema.optional<Schema.Number>;
121
+ readonly memberPreviews: Schema.optional<Schema.$Array<Schema.Struct<{
122
+ readonly id: Schema.String;
123
+ readonly name: Schema.String;
124
+ readonly image: Schema.NullOr<Schema.String>;
125
+ }>>>;
126
+ readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
127
+ readonly id: Schema.String;
128
+ readonly name: Schema.String;
129
+ readonly logo: Schema.NullOr<Schema.String>;
130
+ }>>>;
106
131
  readonly createdAt: Schema.Date;
107
132
  }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"disableApiKeyRateLimit", "POST", "/admin/api-keys/:id/disable-rate-limit", HttpApiEndpoint.StringTree<Schema.Struct<{
108
133
  readonly id: Schema.String;
@@ -198,7 +223,19 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
198
223
  readonly slug: string;
199
224
  readonly logo?: string | null | undefined;
200
225
  readonly metadata?: string | null | undefined;
226
+ readonly userId?: string | null | undefined;
227
+ readonly parentId?: string | null | undefined;
201
228
  readonly memberCount?: number | undefined;
229
+ readonly memberPreviews?: readonly Schema.Struct.ReadonlySide<{
230
+ readonly id: Schema.String;
231
+ readonly name: Schema.String;
232
+ readonly image: Schema.NullOr<Schema.String>;
233
+ }, "Type">[] | undefined;
234
+ readonly projects?: readonly Schema.Struct.ReadonlySide<{
235
+ readonly id: Schema.String;
236
+ readonly name: Schema.String;
237
+ readonly logo: Schema.NullOr<Schema.String>;
238
+ }, "Type">[] | undefined;
202
239
  readonly createdAt: Date;
203
240
  }>>;
204
241
  readonly meta: Schema.Struct<{
@@ -229,6 +266,16 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
229
266
  readonly banned: Schema.NullOr<Schema.Boolean>;
230
267
  readonly banReason: Schema.NullOr<Schema.String>;
231
268
  readonly banExpires: Schema.NullOr<Schema.Date>;
269
+ readonly organizations: Schema.$Array<Schema.Struct<{
270
+ readonly id: Schema.String;
271
+ readonly name: Schema.String;
272
+ readonly logo: Schema.NullOr<Schema.String>;
273
+ }>>;
274
+ readonly projects: Schema.$Array<Schema.Struct<{
275
+ readonly id: Schema.String;
276
+ readonly name: Schema.String;
277
+ readonly logo: Schema.NullOr<Schema.String>;
278
+ }>>;
232
279
  }, "Type">>>;
233
280
  readonly meta: Schema.Struct<{
234
281
  readonly page: Schema.Int;
@@ -309,12 +356,25 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
309
356
  readonly name: Schema.optional<Schema.NonEmptyString>;
310
357
  readonly slug: Schema.optional<Schema.NonEmptyString>;
311
358
  readonly logo: Schema.optional<Schema.String>;
359
+ readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
312
360
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
313
361
  readonly id: Schema.String;
314
362
  readonly name: Schema.String;
315
363
  readonly slug: Schema.String;
316
364
  readonly logo: Schema.optional<Schema.NullOr<Schema.String>>;
317
365
  readonly metadata: Schema.optional<Schema.NullOr<Schema.String>>;
366
+ readonly userId: Schema.optional<Schema.NullOr<Schema.String>>;
367
+ readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
318
368
  readonly memberCount: Schema.optional<Schema.Number>;
369
+ readonly memberPreviews: Schema.optional<Schema.$Array<Schema.Struct<{
370
+ readonly id: Schema.String;
371
+ readonly name: Schema.String;
372
+ readonly image: Schema.NullOr<Schema.String>;
373
+ }>>>;
374
+ readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
375
+ readonly id: Schema.String;
376
+ readonly name: Schema.String;
377
+ readonly logo: Schema.NullOr<Schema.String>;
378
+ }>>>;
319
379
  readonly createdAt: Schema.Date;
320
380
  }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>;
@@ -10,6 +10,16 @@ export declare const AdminListQuery: Schema.Struct<{
10
10
  }>>, Schema.String, never, never>, never, never>>;
11
11
  readonly projectId: Schema.optional<Schema.String>;
12
12
  }>;
13
+ export declare const AdminProjectPreview: Schema.Struct<{
14
+ readonly id: Schema.String;
15
+ readonly name: Schema.String;
16
+ readonly logo: Schema.NullOr<Schema.String>;
17
+ }>;
18
+ export declare const AdminOrganizationPreview: Schema.Struct<{
19
+ readonly id: Schema.String;
20
+ readonly name: Schema.String;
21
+ readonly logo: Schema.NullOr<Schema.String>;
22
+ }>;
13
23
  export declare const AdminUser: Schema.Struct<{
14
24
  readonly id: Schema.String;
15
25
  readonly name: Schema.String;
@@ -22,6 +32,21 @@ export declare const AdminUser: Schema.Struct<{
22
32
  readonly banned: Schema.NullOr<Schema.Boolean>;
23
33
  readonly banReason: Schema.NullOr<Schema.String>;
24
34
  readonly banExpires: Schema.NullOr<Schema.Date>;
35
+ readonly organizations: Schema.$Array<Schema.Struct<{
36
+ readonly id: Schema.String;
37
+ readonly name: Schema.String;
38
+ readonly logo: Schema.NullOr<Schema.String>;
39
+ }>>;
40
+ readonly projects: Schema.$Array<Schema.Struct<{
41
+ readonly id: Schema.String;
42
+ readonly name: Schema.String;
43
+ readonly logo: Schema.NullOr<Schema.String>;
44
+ }>>;
45
+ }>;
46
+ export declare const AdminOrganizationMember: Schema.Struct<{
47
+ readonly id: Schema.String;
48
+ readonly name: Schema.String;
49
+ readonly image: Schema.NullOr<Schema.String>;
25
50
  }>;
26
51
  export declare const AdminOrganization: Schema.Struct<{
27
52
  readonly id: Schema.String;
@@ -29,7 +54,19 @@ export declare const AdminOrganization: Schema.Struct<{
29
54
  readonly slug: Schema.String;
30
55
  readonly logo: Schema.optional<Schema.NullOr<Schema.String>>;
31
56
  readonly metadata: Schema.optional<Schema.NullOr<Schema.String>>;
57
+ readonly userId: Schema.optional<Schema.NullOr<Schema.String>>;
58
+ readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
32
59
  readonly memberCount: Schema.optional<Schema.Number>;
60
+ readonly memberPreviews: Schema.optional<Schema.$Array<Schema.Struct<{
61
+ readonly id: Schema.String;
62
+ readonly name: Schema.String;
63
+ readonly image: Schema.NullOr<Schema.String>;
64
+ }>>>;
65
+ readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
66
+ readonly id: Schema.String;
67
+ readonly name: Schema.String;
68
+ readonly logo: Schema.NullOr<Schema.String>;
69
+ }>>>;
33
70
  readonly createdAt: Schema.Date;
34
71
  }>;
35
72
  export declare const AdminOrganizationIdParams: Schema.Struct<{
@@ -67,11 +104,13 @@ export declare const AdminCreateOrganizationPayload: Schema.Struct<{
67
104
  readonly name: Schema.NonEmptyString;
68
105
  readonly slug: Schema.NonEmptyString;
69
106
  readonly logo: Schema.optional<Schema.String>;
107
+ readonly parentId: Schema.optional<Schema.String>;
70
108
  }>;
71
109
  export declare const AdminUpdateOrganizationPayload: Schema.Struct<{
72
110
  readonly name: Schema.optional<Schema.NonEmptyString>;
73
111
  readonly slug: Schema.optional<Schema.NonEmptyString>;
74
112
  readonly logo: Schema.optional<Schema.String>;
113
+ readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
75
114
  }>;
76
115
  export declare const DashboardStatsQuery: Schema.Struct<{
77
116
  readonly days: Schema.optional<Schema.Union<readonly [Schema.Literal<"7">, Schema.Literal<"14">, Schema.Literal<"30">, Schema.Literal<"90">]>>;
@@ -126,6 +165,16 @@ export declare const PaginatedAdminUsers: Schema.Struct<{
126
165
  readonly banned: Schema.NullOr<Schema.Boolean>;
127
166
  readonly banReason: Schema.NullOr<Schema.String>;
128
167
  readonly banExpires: Schema.NullOr<Schema.Date>;
168
+ readonly organizations: Schema.$Array<Schema.Struct<{
169
+ readonly id: Schema.String;
170
+ readonly name: Schema.String;
171
+ readonly logo: Schema.NullOr<Schema.String>;
172
+ }>>;
173
+ readonly projects: Schema.$Array<Schema.Struct<{
174
+ readonly id: Schema.String;
175
+ readonly name: Schema.String;
176
+ readonly logo: Schema.NullOr<Schema.String>;
177
+ }>>;
129
178
  }, "Type">>>;
130
179
  readonly meta: Schema.Struct<{
131
180
  readonly page: Schema.Int;
@@ -141,7 +190,19 @@ export declare const PaginatedAdminOrganizations: Schema.Struct<{
141
190
  readonly slug: string;
142
191
  readonly logo?: string | null | undefined;
143
192
  readonly metadata?: string | null | undefined;
193
+ readonly userId?: string | null | undefined;
194
+ readonly parentId?: string | null | undefined;
144
195
  readonly memberCount?: number | undefined;
196
+ readonly memberPreviews?: readonly Schema.Struct.ReadonlySide<{
197
+ readonly id: Schema.String;
198
+ readonly name: Schema.String;
199
+ readonly image: Schema.NullOr<Schema.String>;
200
+ }, "Type">[] | undefined;
201
+ readonly projects?: readonly Schema.Struct.ReadonlySide<{
202
+ readonly id: Schema.String;
203
+ readonly name: Schema.String;
204
+ readonly logo: Schema.NullOr<Schema.String>;
205
+ }, "Type">[] | undefined;
145
206
  readonly createdAt: Date;
146
207
  }>>;
147
208
  readonly meta: Schema.Struct<{
@@ -153,7 +214,10 @@ export declare const PaginatedAdminOrganizations: Schema.Struct<{
153
214
  }>;
154
215
  export type AdminListQuery = typeof AdminListQuery.Type;
155
216
  export type AdminUser = typeof AdminUser.Type;
217
+ export type AdminOrganizationPreview = typeof AdminOrganizationPreview.Type;
218
+ export type AdminProjectPreview = typeof AdminProjectPreview.Type;
156
219
  export type AdminOrganization = typeof AdminOrganization.Type;
220
+ export type AdminOrganizationMember = typeof AdminOrganizationMember.Type;
157
221
  export type AdminApiKey = typeof AdminApiKey.Type;
158
222
  export type AdminUpdateApiKeyPayload = typeof AdminUpdateApiKeyPayload.Type;
159
223
  export type AdminCreateOrganizationPayload = typeof AdminCreateOrganizationPayload.Type;
@@ -10,6 +10,24 @@ export const AdminListQuery = Schema.Struct({
10
10
  description: "Paginated administrative list query optionally scoped to linked project records.",
11
11
  examples: [{ page: 0, pageSize: 10, projectId: "project-id" }],
12
12
  });
13
+ export const AdminProjectPreview = Schema.Struct({
14
+ id: Schema.String,
15
+ name: Schema.String,
16
+ logo: Schema.NullOr(Schema.String),
17
+ }).annotate({
18
+ identifier: "AdminProjectPreview",
19
+ title: "Admin project preview",
20
+ description: "Project summary displayed in administrative relationship lists.",
21
+ });
22
+ export const AdminOrganizationPreview = Schema.Struct({
23
+ id: Schema.String,
24
+ name: Schema.String,
25
+ logo: Schema.NullOr(Schema.String),
26
+ }).annotate({
27
+ identifier: "AdminOrganizationPreview",
28
+ title: "Admin organization preview",
29
+ description: "Organization summary displayed in administrative relationship lists.",
30
+ });
13
31
  export const AdminUser = Schema.Struct({
14
32
  id: Schema.String,
15
33
  name: Schema.String,
@@ -22,6 +40,8 @@ export const AdminUser = Schema.Struct({
22
40
  banned: Schema.NullOr(Schema.Boolean),
23
41
  banReason: Schema.NullOr(Schema.String),
24
42
  banExpires: Schema.NullOr(Schema.Date),
43
+ organizations: Schema.Array(AdminOrganizationPreview),
44
+ projects: Schema.Array(AdminProjectPreview),
25
45
  }).annotate({
26
46
  identifier: "AdminUser",
27
47
  title: "Admin user",
@@ -39,16 +59,31 @@ export const AdminUser = Schema.Struct({
39
59
  banned: false,
40
60
  banReason: null,
41
61
  banExpires: null,
62
+ organizations: [{ id: "organization-id", name: "KrakStack", logo: null }],
63
+ projects: [{ id: "project-id", name: "Portal", logo: null }],
42
64
  },
43
65
  ],
44
66
  });
67
+ export const AdminOrganizationMember = Schema.Struct({
68
+ id: Schema.String,
69
+ name: Schema.String,
70
+ image: Schema.NullOr(Schema.String),
71
+ }).annotate({
72
+ identifier: "AdminOrganizationMember",
73
+ title: "Admin organization member",
74
+ description: "Member summary displayed in administrative organization lists.",
75
+ });
45
76
  export const AdminOrganization = Schema.Struct({
46
77
  id: Schema.String,
47
78
  name: Schema.String,
48
79
  slug: Schema.String,
49
80
  logo: Schema.optional(Schema.NullOr(Schema.String)),
50
81
  metadata: Schema.optional(Schema.NullOr(Schema.String)),
82
+ userId: Schema.optional(Schema.NullOr(Schema.String)),
83
+ parentId: Schema.optional(Schema.NullOr(Schema.String)),
51
84
  memberCount: Schema.optional(Schema.Number),
85
+ memberPreviews: Schema.optional(Schema.Array(AdminOrganizationMember)),
86
+ projects: Schema.optional(Schema.Array(AdminProjectPreview)),
52
87
  createdAt: Schema.Date,
53
88
  }).annotate({
54
89
  identifier: "AdminOrganization",
@@ -61,7 +96,11 @@ export const AdminOrganization = Schema.Struct({
61
96
  slug: "krakstack",
62
97
  logo: "https://example.com/logo.svg",
63
98
  metadata: '{"tier":"internal"}',
99
+ userId: null,
100
+ parentId: null,
64
101
  memberCount: 12,
102
+ memberPreviews: [{ id: "user-id", name: "Ada Lovelace", image: null }],
103
+ projects: [{ id: "project-id", name: "Portal", logo: null }],
65
104
  createdAt: new Date("2026-01-01T00:00:00.000Z"),
66
105
  },
67
106
  ],
@@ -148,6 +187,7 @@ export const AdminCreateOrganizationPayload = Schema.Struct({
148
187
  name: Schema.NonEmptyString,
149
188
  slug: Schema.NonEmptyString,
150
189
  logo: Schema.optional(Schema.String),
190
+ parentId: Schema.optional(Schema.String),
151
191
  }).annotate({
152
192
  identifier: "AdminCreateOrganizationPayload",
153
193
  title: "Create organization payload",
@@ -158,6 +198,7 @@ export const AdminUpdateOrganizationPayload = Schema.Struct({
158
198
  name: Schema.optional(Schema.NonEmptyString),
159
199
  slug: Schema.optional(Schema.NonEmptyString),
160
200
  logo: Schema.optional(Schema.String),
201
+ parentId: Schema.optional(Schema.NullOr(Schema.String)),
161
202
  }).annotate({
162
203
  identifier: "AdminUpdateOrganizationPayload",
163
204
  title: "Update organization payload",
package/dist/api.d.ts CHANGED
@@ -247,8 +247,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
247
247
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
248
248
  }>>;
249
249
  }>>;
250
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
250
251
  readonly createdAt: import("effect/Schema").Date;
251
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
252
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
253
+ readonly organizationId: import("effect/Schema").NonEmptyString;
254
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
255
+ readonly id: import("effect/Schema").String;
256
+ readonly name: import("effect/Schema").String;
257
+ readonly slug: import("effect/Schema").String;
258
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
259
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
260
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
261
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
262
+ readonly name: import("effect/Schema").String;
263
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
264
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
265
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
266
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
267
+ }>>;
268
+ }>>;
269
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
270
+ readonly createdAt: import("effect/Schema").Date;
271
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
252
272
  readonly organizationId: import("effect/Schema").NonEmptyString;
253
273
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
254
274
  readonly id: import("effect/Schema").String;
@@ -287,6 +307,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
287
307
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
288
308
  }>>;
289
309
  }>>;
310
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
290
311
  readonly createdAt: import("effect/Schema").Date;
291
312
  }>>;
292
313
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -349,13 +370,26 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
349
370
  readonly name: import("effect/Schema").NonEmptyString;
350
371
  readonly slug: import("effect/Schema").NonEmptyString;
351
372
  readonly logo: import("effect/Schema").optional<import("effect/Schema").String>;
373
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").String>;
352
374
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
353
375
  readonly id: import("effect/Schema").String;
354
376
  readonly name: import("effect/Schema").String;
355
377
  readonly slug: import("effect/Schema").String;
356
378
  readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
357
379
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
380
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
381
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
358
382
  readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
383
+ readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
384
+ readonly id: import("effect/Schema").String;
385
+ readonly name: import("effect/Schema").String;
386
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
387
+ }>>>;
388
+ readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
389
+ readonly id: import("effect/Schema").String;
390
+ readonly name: import("effect/Schema").String;
391
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
392
+ }>>>;
359
393
  readonly createdAt: import("effect/Schema").Date;
360
394
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"dashboardStats", "GET", "/api/auth/admin/dashboard-stats", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
361
395
  readonly days: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"7">, import("effect/Schema").Literal<"14">, import("effect/Schema").Literal<"30">, import("effect/Schema").Literal<"90">]>>;
@@ -425,7 +459,19 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
425
459
  readonly slug: import("effect/Schema").String;
426
460
  readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
427
461
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
462
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
463
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
428
464
  readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
465
+ readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
466
+ readonly id: import("effect/Schema").String;
467
+ readonly name: import("effect/Schema").String;
468
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
469
+ }>>>;
470
+ readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
471
+ readonly id: import("effect/Schema").String;
472
+ readonly name: import("effect/Schema").String;
473
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
474
+ }>>>;
429
475
  readonly createdAt: import("effect/Schema").Date;
430
476
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"disableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/disable-rate-limit", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
431
477
  readonly id: import("effect/Schema").String;
@@ -521,7 +567,19 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
521
567
  readonly slug: string;
522
568
  readonly logo?: string | null | undefined;
523
569
  readonly metadata?: string | null | undefined;
570
+ readonly userId?: string | null | undefined;
571
+ readonly parentId?: string | null | undefined;
524
572
  readonly memberCount?: number | undefined;
573
+ readonly memberPreviews?: readonly import("effect/Schema").Struct.ReadonlySide<{
574
+ readonly id: import("effect/Schema").String;
575
+ readonly name: import("effect/Schema").String;
576
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
577
+ }, "Type">[] | undefined;
578
+ readonly projects?: readonly import("effect/Schema").Struct.ReadonlySide<{
579
+ readonly id: import("effect/Schema").String;
580
+ readonly name: import("effect/Schema").String;
581
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
582
+ }, "Type">[] | undefined;
525
583
  readonly createdAt: Date;
526
584
  }>>;
527
585
  readonly meta: import("effect/Schema").Struct<{
@@ -552,6 +610,16 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
552
610
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
553
611
  readonly banReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
554
612
  readonly banExpires: import("effect/Schema").NullOr<import("effect/Schema").Date>;
613
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
614
+ readonly id: import("effect/Schema").String;
615
+ readonly name: import("effect/Schema").String;
616
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
617
+ }>>;
618
+ readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
619
+ readonly id: import("effect/Schema").String;
620
+ readonly name: import("effect/Schema").String;
621
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
622
+ }>>;
555
623
  }, "Type">>>;
556
624
  readonly meta: import("effect/Schema").Struct<{
557
625
  readonly page: import("effect/Schema").Int;
@@ -632,13 +700,26 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
632
700
  readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
633
701
  readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
634
702
  readonly logo: import("effect/Schema").optional<import("effect/Schema").String>;
703
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
635
704
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
636
705
  readonly id: import("effect/Schema").String;
637
706
  readonly name: import("effect/Schema").String;
638
707
  readonly slug: import("effect/Schema").String;
639
708
  readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
640
709
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
710
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
711
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
641
712
  readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
713
+ readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
714
+ readonly id: import("effect/Schema").String;
715
+ readonly name: import("effect/Schema").String;
716
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
717
+ }>>>;
718
+ readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
719
+ readonly id: import("effect/Schema").String;
720
+ readonly name: import("effect/Schema").String;
721
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
722
+ }>>>;
642
723
  readonly createdAt: import("effect/Schema").Date;
643
724
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
644
725
  readonly session: import("effect/Schema").Struct<{