@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 +6 -0
- 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 +82 -1
- package/dist/components/admin-organization-form.js +110 -69
- package/dist/components/admin-organizations.js +107 -7
- package/dist/components/admin-users.js +45 -4
- package/dist/components/auth-client-api.d.ts +60 -0
- package/dist/components/auth-client.d.ts +4 -0
- package/dist/components/auth-client.js +4 -0
- package/dist/components/auth-forms.js +274 -292
- package/dist/components/index.d.ts +2 -2
- package/dist/components/organization-switcher.d.ts +15 -2
- package/dist/components/organization-switcher.js +250 -200
- package/dist/components/user-button.js +197 -178
- package/dist/index.d.ts +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
package/dist/server/schema.d.ts
CHANGED
|
@@ -53,10 +53,29 @@ export declare const ServerOrganizationsResponse: Schema.Struct<{
|
|
|
53
53
|
readonly location: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
54
54
|
}>>;
|
|
55
55
|
}>>;
|
|
56
|
+
readonly parentId: Schema.NullOr<Schema.String>;
|
|
56
57
|
readonly createdAt: Schema.Date;
|
|
57
58
|
}>>;
|
|
58
59
|
readonly missingIds: Schema.$Array<Schema.String>;
|
|
59
60
|
}>;
|
|
61
|
+
export declare const ServerOrganizationChildrenResponse: Schema.$Array<Schema.Struct<{
|
|
62
|
+
readonly id: Schema.String;
|
|
63
|
+
readonly name: Schema.String;
|
|
64
|
+
readonly slug: Schema.String;
|
|
65
|
+
readonly logo: Schema.NullOr<Schema.String>;
|
|
66
|
+
readonly metadata: Schema.NullOr<Schema.Struct<{
|
|
67
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
68
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
69
|
+
readonly name: Schema.String;
|
|
70
|
+
readonly logo: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
71
|
+
readonly icon: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
72
|
+
readonly contactEmail: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
73
|
+
readonly location: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
74
|
+
}>>;
|
|
75
|
+
}>>;
|
|
76
|
+
readonly parentId: Schema.NullOr<Schema.String>;
|
|
77
|
+
readonly createdAt: Schema.Date;
|
|
78
|
+
}>>;
|
|
60
79
|
export declare const ServerMembersResponse: Schema.$Array<Schema.Struct<{
|
|
61
80
|
readonly id: Schema.String;
|
|
62
81
|
readonly organizationId: Schema.String;
|
|
@@ -128,6 +147,7 @@ export declare const ServerDomainRecordsResponse: Schema.$Array<Schema.Struct<{
|
|
|
128
147
|
}>>;
|
|
129
148
|
export type ServerUsersResponse = typeof ServerUsersResponse.Type;
|
|
130
149
|
export type ServerOrganizationsResponse = typeof ServerOrganizationsResponse.Type;
|
|
150
|
+
export type ServerOrganizationChildrenResponse = typeof ServerOrganizationChildrenResponse.Type;
|
|
131
151
|
export type ServerMembersResponse = typeof ServerMembersResponse.Type;
|
|
132
152
|
export type ServerActiveOrganization = typeof ServerActiveOrganization.Type;
|
|
133
153
|
export type ServerDomain = typeof ServerDomain.Type;
|
package/dist/server/schema.js
CHANGED
|
@@ -74,6 +74,11 @@ export const ServerOrganizationsResponse = Schema.Struct({
|
|
|
74
74
|
title: "Server organizations response",
|
|
75
75
|
description: "Batch organization response with records and requested IDs that were not found.",
|
|
76
76
|
});
|
|
77
|
+
export const ServerOrganizationChildrenResponse = Schema.Array(Organization).annotate({
|
|
78
|
+
identifier: "ServerOrganizationChildrenResponse",
|
|
79
|
+
title: "Server organization children response",
|
|
80
|
+
description: "Direct child organizations belonging to an organization.",
|
|
81
|
+
});
|
|
77
82
|
export const ServerMembersResponse = Schema.Array(Member).annotate({
|
|
78
83
|
identifier: "ServerMembersResponse",
|
|
79
84
|
title: "Server members response",
|
package/dist/service.d.ts
CHANGED
|
@@ -355,8 +355,32 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
355
355
|
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
356
356
|
}>>;
|
|
357
357
|
}>>;
|
|
358
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
358
359
|
readonly createdAt: import("effect/Schema").Date;
|
|
359
360
|
}, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
361
|
+
readonly getOrganizationChildren: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
362
|
+
readonly params: import("effect/Schema").Struct.ReadonlySide<{
|
|
363
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
364
|
+
}, "Type">;
|
|
365
|
+
readonly responseMode?: Mode;
|
|
366
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
367
|
+
readonly id: import("effect/Schema").String;
|
|
368
|
+
readonly name: import("effect/Schema").String;
|
|
369
|
+
readonly slug: import("effect/Schema").String;
|
|
370
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
371
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
372
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
373
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
374
|
+
readonly name: import("effect/Schema").String;
|
|
375
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
376
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
377
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
378
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
379
|
+
}>>;
|
|
380
|
+
}>>;
|
|
381
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
382
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
383
|
+
}, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
360
384
|
readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
361
385
|
readonly params: import("effect/Schema").Struct.ReadonlySide<{
|
|
362
386
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
@@ -403,6 +427,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
403
427
|
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
404
428
|
}>>;
|
|
405
429
|
}>>;
|
|
430
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
406
431
|
readonly createdAt: import("effect/Schema").Date;
|
|
407
432
|
}>>;
|
|
408
433
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -781,8 +806,32 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
781
806
|
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
782
807
|
}>>;
|
|
783
808
|
}>>;
|
|
809
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
784
810
|
readonly createdAt: import("effect/Schema").Date;
|
|
785
811
|
}, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
812
|
+
readonly getOrganizationChildren: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
813
|
+
readonly params: import("effect/Schema").Struct.ReadonlySide<{
|
|
814
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
815
|
+
}, "Type">;
|
|
816
|
+
readonly responseMode?: Mode;
|
|
817
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
818
|
+
readonly id: import("effect/Schema").String;
|
|
819
|
+
readonly name: import("effect/Schema").String;
|
|
820
|
+
readonly slug: import("effect/Schema").String;
|
|
821
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
822
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
823
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
824
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
825
|
+
readonly name: import("effect/Schema").String;
|
|
826
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
827
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
828
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
829
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
830
|
+
}>>;
|
|
831
|
+
}>>;
|
|
832
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
833
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
834
|
+
}, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
|
|
786
835
|
readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
787
836
|
readonly params: import("effect/Schema").Struct.ReadonlySide<{
|
|
788
837
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
@@ -829,6 +878,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
|
|
|
829
878
|
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
830
879
|
}>>;
|
|
831
880
|
}>>;
|
|
881
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
832
882
|
readonly createdAt: import("effect/Schema").Date;
|
|
833
883
|
}>>;
|
|
834
884
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|