@krak-stack/auth 0.2.11 → 0.2.13
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 +4 -0
- package/dist/admin/schema.d.ts +3 -0
- package/dist/admin/schema.js +4 -1
- package/dist/api.d.ts +922 -908
- package/dist/auth/api.group.d.ts +46 -46
- package/dist/auth/api.group.js +2 -1
- package/dist/auth/schema.d.ts +1 -0
- package/dist/auth/schema.js +4 -0
- package/dist/components/admin-organizations.d.ts +111 -1
- package/dist/components/admin-organizations.js +184 -35
- package/dist/components/admin-users.js +56 -80
- package/dist/components/associated-projects-notice.d.ts +6 -0
- package/dist/components/associated-projects-notice.js +24 -0
- package/dist/components/auth-atoms.d.ts +3 -3
- package/dist/components/auth-client-api.d.ts +56 -46
- package/dist/components/auth-forms.d.ts +1 -1
- package/dist/components/auth-forms.js +115 -33
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +1 -1
- package/dist/components/organization-switcher.d.ts +4 -0
- package/dist/components/organization-switcher.js +50 -44
- package/dist/components/scrollable-dialog.d.ts +13 -0
- package/dist/components/scrollable-dialog.js +12 -0
- package/dist/components/user-button.d.ts +4 -0
- package/dist/components/user-button.js +76 -70
- package/dist/extra/api.group.d.ts +6 -1
- package/dist/extra/api.group.js +14 -1
- package/dist/extra/schema.d.ts +12 -0
- package/dist/extra/schema.js +18 -0
- package/dist/server/actor.d.ts +2 -1
- package/dist/service.d.ts +104 -92
- package/package.json +3 -3
|
@@ -40,6 +40,7 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
|
|
|
40
40
|
readonly id: Schema.String;
|
|
41
41
|
readonly name: Schema.String;
|
|
42
42
|
readonly image: Schema.NullOr<Schema.String>;
|
|
43
|
+
readonly role: Schema.String;
|
|
43
44
|
}>>>;
|
|
44
45
|
readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
45
46
|
readonly id: Schema.String;
|
|
@@ -124,6 +125,7 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
|
|
|
124
125
|
readonly id: Schema.String;
|
|
125
126
|
readonly name: Schema.String;
|
|
126
127
|
readonly image: Schema.NullOr<Schema.String>;
|
|
128
|
+
readonly role: Schema.String;
|
|
127
129
|
}>>>;
|
|
128
130
|
readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
129
131
|
readonly id: Schema.String;
|
|
@@ -238,6 +240,7 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
|
|
|
238
240
|
readonly id: Schema.String;
|
|
239
241
|
readonly name: Schema.String;
|
|
240
242
|
readonly image: Schema.NullOr<Schema.String>;
|
|
243
|
+
readonly role: Schema.String;
|
|
241
244
|
}>>>;
|
|
242
245
|
readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
243
246
|
readonly id: Schema.String;
|
|
@@ -383,6 +386,7 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
|
|
|
383
386
|
readonly id: Schema.String;
|
|
384
387
|
readonly name: Schema.String;
|
|
385
388
|
readonly image: Schema.NullOr<Schema.String>;
|
|
389
|
+
readonly role: Schema.String;
|
|
386
390
|
}>>>;
|
|
387
391
|
readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
388
392
|
readonly id: Schema.String;
|
package/dist/admin/schema.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const AdminOrganizationMember: Schema.Struct<{
|
|
|
47
47
|
readonly id: Schema.String;
|
|
48
48
|
readonly name: Schema.String;
|
|
49
49
|
readonly image: Schema.NullOr<Schema.String>;
|
|
50
|
+
readonly role: Schema.String;
|
|
50
51
|
}>;
|
|
51
52
|
export declare const AdminOrganization: Schema.Struct<{
|
|
52
53
|
readonly id: Schema.String;
|
|
@@ -61,6 +62,7 @@ export declare const AdminOrganization: Schema.Struct<{
|
|
|
61
62
|
readonly id: Schema.String;
|
|
62
63
|
readonly name: Schema.String;
|
|
63
64
|
readonly image: Schema.NullOr<Schema.String>;
|
|
65
|
+
readonly role: Schema.String;
|
|
64
66
|
}>>>;
|
|
65
67
|
readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
66
68
|
readonly id: Schema.String;
|
|
@@ -200,6 +202,7 @@ export declare const PaginatedAdminOrganizations: Schema.Struct<{
|
|
|
200
202
|
readonly id: Schema.String;
|
|
201
203
|
readonly name: Schema.String;
|
|
202
204
|
readonly image: Schema.NullOr<Schema.String>;
|
|
205
|
+
readonly role: Schema.String;
|
|
203
206
|
}>>>;
|
|
204
207
|
readonly projects: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
205
208
|
readonly id: Schema.String;
|
package/dist/admin/schema.js
CHANGED
|
@@ -69,6 +69,7 @@ export const AdminOrganizationMember = Schema.Struct({
|
|
|
69
69
|
id: Schema.String,
|
|
70
70
|
name: Schema.String,
|
|
71
71
|
image: Schema.NullOr(Schema.String),
|
|
72
|
+
role: Schema.String,
|
|
72
73
|
}).annotate({
|
|
73
74
|
identifier: "AdminOrganizationMember",
|
|
74
75
|
title: "Admin organization member",
|
|
@@ -100,7 +101,9 @@ export const AdminOrganization = Schema.Struct({
|
|
|
100
101
|
userId: null,
|
|
101
102
|
parentId: null,
|
|
102
103
|
memberCount: 12,
|
|
103
|
-
memberPreviews: [
|
|
104
|
+
memberPreviews: [
|
|
105
|
+
{ id: "user-id", name: "Ada Lovelace", image: null, role: "owner" },
|
|
106
|
+
],
|
|
104
107
|
projects: [{ id: "project-id", name: "Portal", logo: null }],
|
|
105
108
|
createdAt: new Date("2026-01-01T00:00:00.000Z"),
|
|
106
109
|
},
|