@krak-stack/auth 0.1.51 → 0.1.53
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/admin/api.group.d.ts +60 -0
- package/dist/admin/schema.d.ts +64 -0
- package/dist/admin/schema.js +41 -0
- package/dist/api.d.ts +297 -216
- package/dist/components/admin-organization-form.js +110 -69
- package/dist/components/admin-organizations.js +99 -6
- package/dist/components/admin-users.js +38 -4
- package/dist/components/auth-client-api.d.ts +60 -0
- package/dist/components/auth-client.d.ts +17 -1
- package/dist/components/auth-client.js +15 -1
- package/dist/components/auth-forms.d.ts +1 -0
- package/dist/components/auth-forms.js +309 -252
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/organization-switcher.d.ts +18 -7
- package/dist/components/organization-switcher.js +264 -189
- package/dist/components/user-button.js +197 -178
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schema.d.ts +1 -0
- package/dist/schema.js +2 -0
- package/dist/server/api.group.d.ts +22 -1
- package/dist/server/api.group.js +10 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/schema.d.ts +20 -0
- package/dist/server/schema.js +5 -0
- package/dist/service.d.ts +50 -0
- package/package.json +1 -1
|
@@ -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>;
|
package/dist/admin/schema.d.ts
CHANGED
|
@@ -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;
|
package/dist/admin/schema.js
CHANGED
|
@@ -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",
|