@krak-stack/auth 0.2.12 → 0.2.14
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 +1394 -1380
- package/dist/auth/api.group.d.ts +46 -46
- package/dist/components/admin-organizations.d.ts +111 -1
- package/dist/components/admin-organizations.js +142 -26
- package/dist/components/admin-users.js +54 -78
- 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 +55 -45
- package/dist/components/auth-forms.d.ts +1 -1
- package/dist/components/auth-forms.js +115 -33
- package/dist/components/auth-provider.d.ts +23 -0
- package/dist/components/auth-provider.js +68 -19
- package/dist/components/index.d.ts +4 -3
- package/dist/components/index.js +2 -2
- package/dist/components/organization-switcher.d.ts +4 -0
- package/dist/components/organization-switcher.js +47 -41
- 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 +75 -69
- 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 +102 -90
- package/package.json +3 -3
package/dist/extra/schema.js
CHANGED
|
@@ -220,6 +220,24 @@ export const ExtraProjectPublicConfig = Schema.Struct({
|
|
|
220
220
|
},
|
|
221
221
|
],
|
|
222
222
|
});
|
|
223
|
+
export const ExtraAssociatedProjectsQuery = Schema.Struct({
|
|
224
|
+
organizationId: Schema.optional(Schema.String),
|
|
225
|
+
}).annotate({
|
|
226
|
+
identifier: "ExtraAssociatedProjectsQuery",
|
|
227
|
+
title: "Associated projects query",
|
|
228
|
+
description: "Optionally scopes associated projects to an organization the current user belongs to.",
|
|
229
|
+
});
|
|
230
|
+
export const ExtraAssociatedProject = Schema.Struct({
|
|
231
|
+
id: Schema.String,
|
|
232
|
+
name: Schema.String,
|
|
233
|
+
}).annotate({
|
|
234
|
+
identifier: "ExtraAssociatedProject",
|
|
235
|
+
title: "Associated project",
|
|
236
|
+
});
|
|
237
|
+
export const ExtraAssociatedProjects = Schema.Array(ExtraAssociatedProject).annotate({
|
|
238
|
+
identifier: "ExtraAssociatedProjects",
|
|
239
|
+
title: "Associated projects",
|
|
240
|
+
});
|
|
223
241
|
export const ExtraOrganizationPublicProfileQuery = Schema.Struct({
|
|
224
242
|
organizationId: Schema.String,
|
|
225
243
|
locale: Schema.optional(OrganizationLocale),
|
package/dist/server/actor.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export type ActorConstraint = {
|
|
|
60
60
|
};
|
|
61
61
|
export declare function ActorRequired(): typeof AnyActorRequired;
|
|
62
62
|
export declare namespace ActorRequired {
|
|
63
|
-
|
|
63
|
+
export { actorRequiredLayer as layer };
|
|
64
64
|
}
|
|
65
65
|
export declare function ActorRequired(constraint: {
|
|
66
66
|
readonly type: "user";
|
|
@@ -76,4 +76,5 @@ export declare function ActorRequired(constraint: {
|
|
|
76
76
|
export declare function ActorRequired(constraint: {
|
|
77
77
|
readonly type: "apiKey";
|
|
78
78
|
}): typeof ApiKeyActorRequired;
|
|
79
|
+
declare const actorRequiredLayer: <Project extends string, Action extends string>(access: ProjectAccessDefinition<Project, Action>) => Layer.Layer<AnyActorRequired | ApiKeyActorRequired | OrganizationApiKeyActorRequired | UserActorRequired | UserApiKeyActorRequired, never, never>;
|
|
79
80
|
export {};
|