@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
package/dist/extra/schema.d.ts
CHANGED
|
@@ -101,6 +101,17 @@ export declare const ExtraProjectPublicConfig: Schema.Struct<{
|
|
|
101
101
|
readonly google: Schema.Boolean;
|
|
102
102
|
}>;
|
|
103
103
|
}>;
|
|
104
|
+
export declare const ExtraAssociatedProjectsQuery: Schema.Struct<{
|
|
105
|
+
readonly organizationId: Schema.optional<Schema.String>;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const ExtraAssociatedProject: Schema.Struct<{
|
|
108
|
+
readonly id: Schema.String;
|
|
109
|
+
readonly name: Schema.String;
|
|
110
|
+
}>;
|
|
111
|
+
export declare const ExtraAssociatedProjects: Schema.$Array<Schema.Struct<{
|
|
112
|
+
readonly id: Schema.String;
|
|
113
|
+
readonly name: Schema.String;
|
|
114
|
+
}>>;
|
|
104
115
|
export declare const ExtraOrganizationPublicProfileQuery: Schema.Struct<{
|
|
105
116
|
readonly organizationId: Schema.String;
|
|
106
117
|
readonly locale: Schema.optional<Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>>;
|
|
@@ -178,6 +189,7 @@ export type ExtraVerifyApiKeyPayload = typeof ExtraVerifyApiKeyPayload.Type;
|
|
|
178
189
|
export type ExtraVerifyApiKeyResponse = typeof ExtraVerifyApiKeyResponse.Type;
|
|
179
190
|
export type ExtraProjectPublicConfigQuery = typeof ExtraProjectPublicConfigQuery.Type;
|
|
180
191
|
export type ExtraProjectPublicConfig = typeof ExtraProjectPublicConfig.Type;
|
|
192
|
+
export type ExtraAssociatedProject = typeof ExtraAssociatedProject.Type;
|
|
181
193
|
export type ExtraOrganizationPublicProfileQuery = typeof ExtraOrganizationPublicProfileQuery.Type;
|
|
182
194
|
export type ExtraOrganizationPublicProfile = typeof ExtraOrganizationPublicProfile.Type;
|
|
183
195
|
export type ExtraOkResponse = typeof ExtraOkResponse.Type;
|
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 {};
|