@krak-stack/auth 0.1.1 → 0.1.3
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 +32 -12
- package/dist/backend/api.d.ts +170 -8
- package/dist/backend/api.d.ts.map +1 -1
- package/dist/backend/api.js +70 -8
- package/dist/backend/api.js.map +1 -1
- package/dist/backend/index.d.ts +3 -95
- package/dist/backend/index.d.ts.map +1 -1
- package/dist/backend/index.js +1 -21
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/schema.d.ts +49 -1
- package/dist/backend/schema.d.ts.map +1 -1
- package/dist/backend/schema.js +59 -4
- package/dist/backend/schema.js.map +1 -1
- package/dist/client.d.ts +325 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +35 -0
- package/dist/client.js.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/organization-switcher.d.ts +11 -0
- package/dist/components/organization-switcher.d.ts.map +1 -0
- package/dist/components/organization-switcher.js +569 -0
- package/dist/components/organization-switcher.js.map +1 -0
- package/dist/components/user-button.d.ts +11 -0
- package/dist/components/user-button.d.ts.map +1 -0
- package/dist/components/user-button.js +613 -0
- package/dist/components/user-button.js.map +1 -0
- package/dist/frontend/api.d.ts +4 -30
- package/dist/frontend/api.d.ts.map +1 -1
- package/dist/frontend/api.js +2 -20
- package/dist/frontend/api.js.map +1 -1
- package/dist/frontend/index.d.ts +5 -102
- package/dist/frontend/index.d.ts.map +1 -1
- package/dist/frontend/index.js +3 -20
- package/dist/frontend/index.js.map +1 -1
- package/dist/frontend/schema.d.ts +0 -16
- package/dist/frontend/schema.d.ts.map +1 -1
- package/dist/frontend/schema.js +0 -22
- package/dist/frontend/schema.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +48 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +93 -2
- package/dist/schema.js.map +1 -1
- package/package.json +16 -5
package/dist/backend/schema.js
CHANGED
|
@@ -1,20 +1,70 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { Organization, User } from "../schema";
|
|
2
|
+
import { Member, Organization, User } from "../schema";
|
|
3
3
|
export const BackendIdsQuery = Schema.Struct({
|
|
4
4
|
ids: Schema.NonEmptyString,
|
|
5
5
|
}).annotate({
|
|
6
6
|
identifier: "BackendIdsQuery",
|
|
7
7
|
title: "Backend IDs query",
|
|
8
|
-
description: "Comma-separated resource IDs used to
|
|
8
|
+
description: "Comma-separated resource IDs used to return backend records.",
|
|
9
9
|
examples: [{ ids: "user_1,user_2,user_3" }],
|
|
10
10
|
});
|
|
11
|
+
export const BackendOrganizationsQuery = Schema.Struct({
|
|
12
|
+
ids: Schema.optional(Schema.NonEmptyString),
|
|
13
|
+
userId: Schema.optional(Schema.NonEmptyString),
|
|
14
|
+
}).annotate({
|
|
15
|
+
identifier: "BackendOrganizationsQuery",
|
|
16
|
+
title: "Backend organizations query",
|
|
17
|
+
description: "Query used to return organizations. Provide either comma-separated organization IDs or a user ID, but not both.",
|
|
18
|
+
examples: [{ ids: "org_1,org_2" }, { userId: "user_1" }],
|
|
19
|
+
});
|
|
20
|
+
export const BackendIdParams = Schema.Struct({
|
|
21
|
+
id: Schema.NonEmptyString,
|
|
22
|
+
}).annotate({
|
|
23
|
+
identifier: "BackendIdParams",
|
|
24
|
+
title: "Backend ID params",
|
|
25
|
+
description: "Resource ID used to return a backend record.",
|
|
26
|
+
examples: [{ id: "user_1" }],
|
|
27
|
+
});
|
|
28
|
+
export const BackendUserIdParams = Schema.Struct({
|
|
29
|
+
userId: Schema.NonEmptyString,
|
|
30
|
+
}).annotate({
|
|
31
|
+
identifier: "BackendUserIdParams",
|
|
32
|
+
title: "Backend user ID params",
|
|
33
|
+
description: "User ID used to return backend records scoped to a user.",
|
|
34
|
+
examples: [{ userId: "user_1" }],
|
|
35
|
+
});
|
|
36
|
+
export const BackendOrganizationIdParams = Schema.Struct({
|
|
37
|
+
organizationId: Schema.NonEmptyString,
|
|
38
|
+
}).annotate({
|
|
39
|
+
identifier: "BackendOrganizationIdParams",
|
|
40
|
+
title: "Backend organization ID params",
|
|
41
|
+
description: "Organization ID used to return backend organization records.",
|
|
42
|
+
examples: [{ organizationId: "org_1" }],
|
|
43
|
+
});
|
|
44
|
+
export const BackendMemberParams = Schema.Struct({
|
|
45
|
+
organizationId: Schema.NonEmptyString,
|
|
46
|
+
userId: Schema.NonEmptyString,
|
|
47
|
+
}).annotate({
|
|
48
|
+
identifier: "BackendMemberParams",
|
|
49
|
+
title: "Backend member params",
|
|
50
|
+
description: "Organization and user IDs used to return a member record.",
|
|
51
|
+
examples: [{ organizationId: "org_1", userId: "user_1" }],
|
|
52
|
+
});
|
|
53
|
+
export const BackendActiveOrganization = Schema.Struct({
|
|
54
|
+
id: Schema.NullOr(Schema.String),
|
|
55
|
+
}).annotate({
|
|
56
|
+
identifier: "BackendActiveOrganization",
|
|
57
|
+
title: "Backend active organization",
|
|
58
|
+
description: "The active organization ID from a user's latest auth session.",
|
|
59
|
+
examples: [{ id: "org_1" }],
|
|
60
|
+
});
|
|
11
61
|
export const BackendUsersResponse = Schema.Struct({
|
|
12
62
|
data: Schema.Array(User),
|
|
13
63
|
missingIds: Schema.Array(Schema.String),
|
|
14
64
|
}).annotate({
|
|
15
65
|
identifier: "BackendUsersResponse",
|
|
16
66
|
title: "Backend users response",
|
|
17
|
-
description: "Batch user
|
|
67
|
+
description: "Batch user response with records and requested IDs that were not found.",
|
|
18
68
|
});
|
|
19
69
|
export const BackendOrganizationsResponse = Schema.Struct({
|
|
20
70
|
data: Schema.Array(Organization),
|
|
@@ -22,6 +72,11 @@ export const BackendOrganizationsResponse = Schema.Struct({
|
|
|
22
72
|
}).annotate({
|
|
23
73
|
identifier: "BackendOrganizationsResponse",
|
|
24
74
|
title: "Backend organizations response",
|
|
25
|
-
description: "Batch organization
|
|
75
|
+
description: "Batch organization response with records and requested IDs that were not found.",
|
|
76
|
+
});
|
|
77
|
+
export const BackendMembersResponse = Schema.Array(Member).annotate({
|
|
78
|
+
identifier: "BackendMembersResponse",
|
|
79
|
+
title: "Backend members response",
|
|
80
|
+
description: "Organization members with user contact details.",
|
|
26
81
|
});
|
|
27
82
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/backend/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/backend/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEvD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3C,GAAG,EAAE,MAAM,CAAC,cAAc;CAC3B,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,iBAAiB;IAC7B,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,8DAA8D;IAC3E,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,sBAAsB,EAAE,CAAC;CAC5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC;IACrD,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,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wB;IACpC,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,iDAAiD;CAC/D,CAAC,CAAC"}
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { Context, Effect, Layer, Redacted } from "effect";
|
|
2
|
+
import { HttpClient } from "effect/unstable/http";
|
|
3
|
+
import { HttpApiClient } from "effect/unstable/httpapi";
|
|
4
|
+
declare const AuthClientConfig_base: Context.ServiceClass<AuthClientConfig, "@krak-stack/auth/AuthClientConfig", {
|
|
5
|
+
baseUrl: string;
|
|
6
|
+
apiKey: Redacted.Redacted<string>;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly make: Effect.Effect<{
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
apiKey: Redacted.Redacted<string>;
|
|
11
|
+
}, import("effect/Config").ConfigError, never>;
|
|
12
|
+
};
|
|
13
|
+
export declare class AuthClientConfig extends AuthClientConfig_base {
|
|
14
|
+
static readonly layer: Layer.Layer<AuthClientConfig, import("effect/Config").ConfigError, never>;
|
|
15
|
+
}
|
|
16
|
+
declare const AuthClient_base: Context.ServiceClass<AuthClient, "@krak-stack/auth/AuthClient", {
|
|
17
|
+
backend: {
|
|
18
|
+
readonly listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
19
|
+
readonly query: {
|
|
20
|
+
readonly ids: string;
|
|
21
|
+
};
|
|
22
|
+
readonly responseMode?: Mode;
|
|
23
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
24
|
+
readonly data: readonly {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly name: string;
|
|
27
|
+
readonly email: string;
|
|
28
|
+
readonly emailVerified: boolean;
|
|
29
|
+
readonly image: string | null;
|
|
30
|
+
readonly role: string | null;
|
|
31
|
+
readonly banned: boolean | null;
|
|
32
|
+
readonly createdAt: Date;
|
|
33
|
+
readonly updatedAt: Date;
|
|
34
|
+
}[];
|
|
35
|
+
readonly missingIds: readonly string[];
|
|
36
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
37
|
+
readonly getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
38
|
+
readonly params: {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
};
|
|
41
|
+
readonly responseMode?: Mode;
|
|
42
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly email: string;
|
|
46
|
+
readonly emailVerified: boolean;
|
|
47
|
+
readonly image: string | null;
|
|
48
|
+
readonly role: string | null;
|
|
49
|
+
readonly banned: boolean | null;
|
|
50
|
+
readonly createdAt: Date;
|
|
51
|
+
readonly updatedAt: Date;
|
|
52
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound), [Mode] extends ["response-only"] ? never : never>;
|
|
53
|
+
readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
54
|
+
readonly params: {
|
|
55
|
+
readonly userId: string;
|
|
56
|
+
};
|
|
57
|
+
readonly responseMode?: Mode;
|
|
58
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
59
|
+
readonly id: string | null;
|
|
60
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
61
|
+
readonly listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
62
|
+
readonly query: {
|
|
63
|
+
readonly ids?: string | undefined;
|
|
64
|
+
readonly userId?: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
readonly responseMode?: Mode;
|
|
67
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
68
|
+
readonly data: readonly {
|
|
69
|
+
readonly id: string;
|
|
70
|
+
readonly name: string;
|
|
71
|
+
readonly slug: string;
|
|
72
|
+
readonly logo: string | null;
|
|
73
|
+
readonly metadata: {
|
|
74
|
+
readonly translations: readonly {
|
|
75
|
+
readonly locale: "en" | "fr";
|
|
76
|
+
readonly name: string;
|
|
77
|
+
readonly logo: string | null;
|
|
78
|
+
readonly contactEmail: string | null;
|
|
79
|
+
readonly location: string | null;
|
|
80
|
+
}[];
|
|
81
|
+
} | null;
|
|
82
|
+
readonly createdAt: Date;
|
|
83
|
+
}[];
|
|
84
|
+
readonly missingIds: readonly string[];
|
|
85
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").BadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
86
|
+
readonly getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
87
|
+
readonly params: {
|
|
88
|
+
readonly id: string;
|
|
89
|
+
};
|
|
90
|
+
readonly responseMode?: Mode;
|
|
91
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
92
|
+
readonly id: string;
|
|
93
|
+
readonly name: string;
|
|
94
|
+
readonly slug: string;
|
|
95
|
+
readonly logo: string | null;
|
|
96
|
+
readonly metadata: {
|
|
97
|
+
readonly translations: readonly {
|
|
98
|
+
readonly locale: "en" | "fr";
|
|
99
|
+
readonly name: string;
|
|
100
|
+
readonly logo: string | null;
|
|
101
|
+
readonly contactEmail: string | null;
|
|
102
|
+
readonly location: string | null;
|
|
103
|
+
}[];
|
|
104
|
+
} | null;
|
|
105
|
+
readonly createdAt: Date;
|
|
106
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound), [Mode] extends ["response-only"] ? never : never>;
|
|
107
|
+
readonly getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
108
|
+
readonly params: {
|
|
109
|
+
readonly organizationId: string;
|
|
110
|
+
readonly userId: string;
|
|
111
|
+
};
|
|
112
|
+
readonly responseMode?: Mode;
|
|
113
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
114
|
+
readonly id: string;
|
|
115
|
+
readonly organizationId: string;
|
|
116
|
+
readonly userId: string;
|
|
117
|
+
readonly role: string;
|
|
118
|
+
readonly createdAt: Date;
|
|
119
|
+
readonly user: {
|
|
120
|
+
readonly id: string;
|
|
121
|
+
readonly name: string;
|
|
122
|
+
readonly email: string;
|
|
123
|
+
readonly emailVerified: boolean;
|
|
124
|
+
readonly image: string | null;
|
|
125
|
+
readonly role: string | null;
|
|
126
|
+
readonly banned: boolean | null;
|
|
127
|
+
readonly createdAt: Date;
|
|
128
|
+
readonly updatedAt: Date;
|
|
129
|
+
};
|
|
130
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound), [Mode] extends ["response-only"] ? never : never>;
|
|
131
|
+
readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
132
|
+
readonly params: {
|
|
133
|
+
readonly organizationId: string;
|
|
134
|
+
};
|
|
135
|
+
readonly responseMode?: Mode;
|
|
136
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly organizationId: string;
|
|
139
|
+
readonly userId: string;
|
|
140
|
+
readonly role: string;
|
|
141
|
+
readonly createdAt: Date;
|
|
142
|
+
readonly user: {
|
|
143
|
+
readonly id: string;
|
|
144
|
+
readonly name: string;
|
|
145
|
+
readonly email: string;
|
|
146
|
+
readonly emailVerified: boolean;
|
|
147
|
+
readonly image: string | null;
|
|
148
|
+
readonly role: string | null;
|
|
149
|
+
readonly banned: boolean | null;
|
|
150
|
+
readonly createdAt: Date;
|
|
151
|
+
readonly updatedAt: Date;
|
|
152
|
+
};
|
|
153
|
+
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
154
|
+
};
|
|
155
|
+
frontend: {
|
|
156
|
+
presignOrganizationLogoUpload: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
157
|
+
readonly payload: {
|
|
158
|
+
readonly fileName: string;
|
|
159
|
+
readonly contentType: string;
|
|
160
|
+
};
|
|
161
|
+
readonly responseMode?: Mode;
|
|
162
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
163
|
+
readonly uploadUrl: string;
|
|
164
|
+
readonly url: string;
|
|
165
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Forbidden), [Mode] extends ["response-only"] ? never : never>;
|
|
166
|
+
};
|
|
167
|
+
}> & {
|
|
168
|
+
readonly make: Effect.Effect<{
|
|
169
|
+
backend: {
|
|
170
|
+
readonly listUsersByIds: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
171
|
+
readonly query: {
|
|
172
|
+
readonly ids: string;
|
|
173
|
+
};
|
|
174
|
+
readonly responseMode?: Mode;
|
|
175
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
176
|
+
readonly data: readonly {
|
|
177
|
+
readonly id: string;
|
|
178
|
+
readonly name: string;
|
|
179
|
+
readonly email: string;
|
|
180
|
+
readonly emailVerified: boolean;
|
|
181
|
+
readonly image: string | null;
|
|
182
|
+
readonly role: string | null;
|
|
183
|
+
readonly banned: boolean | null;
|
|
184
|
+
readonly createdAt: Date;
|
|
185
|
+
readonly updatedAt: Date;
|
|
186
|
+
}[];
|
|
187
|
+
readonly missingIds: readonly string[];
|
|
188
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
189
|
+
readonly getUser: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
190
|
+
readonly params: {
|
|
191
|
+
readonly id: string;
|
|
192
|
+
};
|
|
193
|
+
readonly responseMode?: Mode;
|
|
194
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
195
|
+
readonly id: string;
|
|
196
|
+
readonly name: string;
|
|
197
|
+
readonly email: string;
|
|
198
|
+
readonly emailVerified: boolean;
|
|
199
|
+
readonly image: string | null;
|
|
200
|
+
readonly role: string | null;
|
|
201
|
+
readonly banned: boolean | null;
|
|
202
|
+
readonly createdAt: Date;
|
|
203
|
+
readonly updatedAt: Date;
|
|
204
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound), [Mode] extends ["response-only"] ? never : never>;
|
|
205
|
+
readonly getUserActiveOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
206
|
+
readonly params: {
|
|
207
|
+
readonly userId: string;
|
|
208
|
+
};
|
|
209
|
+
readonly responseMode?: Mode;
|
|
210
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
211
|
+
readonly id: string | null;
|
|
212
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
213
|
+
readonly listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
214
|
+
readonly query: {
|
|
215
|
+
readonly ids?: string | undefined;
|
|
216
|
+
readonly userId?: string | undefined;
|
|
217
|
+
};
|
|
218
|
+
readonly responseMode?: Mode;
|
|
219
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
220
|
+
readonly data: readonly {
|
|
221
|
+
readonly id: string;
|
|
222
|
+
readonly name: string;
|
|
223
|
+
readonly slug: string;
|
|
224
|
+
readonly logo: string | null;
|
|
225
|
+
readonly metadata: {
|
|
226
|
+
readonly translations: readonly {
|
|
227
|
+
readonly locale: "en" | "fr";
|
|
228
|
+
readonly name: string;
|
|
229
|
+
readonly logo: string | null;
|
|
230
|
+
readonly contactEmail: string | null;
|
|
231
|
+
readonly location: string | null;
|
|
232
|
+
}[];
|
|
233
|
+
} | null;
|
|
234
|
+
readonly createdAt: Date;
|
|
235
|
+
}[];
|
|
236
|
+
readonly missingIds: readonly string[];
|
|
237
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").BadRequest), [Mode] extends ["response-only"] ? never : never>;
|
|
238
|
+
readonly getOrganization: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
239
|
+
readonly params: {
|
|
240
|
+
readonly id: string;
|
|
241
|
+
};
|
|
242
|
+
readonly responseMode?: Mode;
|
|
243
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
244
|
+
readonly id: string;
|
|
245
|
+
readonly name: string;
|
|
246
|
+
readonly slug: string;
|
|
247
|
+
readonly logo: string | null;
|
|
248
|
+
readonly metadata: {
|
|
249
|
+
readonly translations: readonly {
|
|
250
|
+
readonly locale: "en" | "fr";
|
|
251
|
+
readonly name: string;
|
|
252
|
+
readonly logo: string | null;
|
|
253
|
+
readonly contactEmail: string | null;
|
|
254
|
+
readonly location: string | null;
|
|
255
|
+
}[];
|
|
256
|
+
} | null;
|
|
257
|
+
readonly createdAt: Date;
|
|
258
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound), [Mode] extends ["response-only"] ? never : never>;
|
|
259
|
+
readonly getActiveMember: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
260
|
+
readonly params: {
|
|
261
|
+
readonly organizationId: string;
|
|
262
|
+
readonly userId: string;
|
|
263
|
+
};
|
|
264
|
+
readonly responseMode?: Mode;
|
|
265
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
266
|
+
readonly id: string;
|
|
267
|
+
readonly organizationId: string;
|
|
268
|
+
readonly userId: string;
|
|
269
|
+
readonly role: string;
|
|
270
|
+
readonly createdAt: Date;
|
|
271
|
+
readonly user: {
|
|
272
|
+
readonly id: string;
|
|
273
|
+
readonly name: string;
|
|
274
|
+
readonly email: string;
|
|
275
|
+
readonly emailVerified: boolean;
|
|
276
|
+
readonly image: string | null;
|
|
277
|
+
readonly role: string | null;
|
|
278
|
+
readonly banned: boolean | null;
|
|
279
|
+
readonly createdAt: Date;
|
|
280
|
+
readonly updatedAt: Date;
|
|
281
|
+
};
|
|
282
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").NotFound), [Mode] extends ["response-only"] ? never : never>;
|
|
283
|
+
readonly listOrganizationMembers: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
284
|
+
readonly params: {
|
|
285
|
+
readonly organizationId: string;
|
|
286
|
+
};
|
|
287
|
+
readonly responseMode?: Mode;
|
|
288
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<readonly {
|
|
289
|
+
readonly id: string;
|
|
290
|
+
readonly organizationId: string;
|
|
291
|
+
readonly userId: string;
|
|
292
|
+
readonly role: string;
|
|
293
|
+
readonly createdAt: Date;
|
|
294
|
+
readonly user: {
|
|
295
|
+
readonly id: string;
|
|
296
|
+
readonly name: string;
|
|
297
|
+
readonly email: string;
|
|
298
|
+
readonly emailVerified: boolean;
|
|
299
|
+
readonly image: string | null;
|
|
300
|
+
readonly role: string | null;
|
|
301
|
+
readonly banned: boolean | null;
|
|
302
|
+
readonly createdAt: Date;
|
|
303
|
+
readonly updatedAt: Date;
|
|
304
|
+
};
|
|
305
|
+
}[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
306
|
+
};
|
|
307
|
+
frontend: {
|
|
308
|
+
presignOrganizationLogoUpload: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
309
|
+
readonly payload: {
|
|
310
|
+
readonly fileName: string;
|
|
311
|
+
readonly contentType: string;
|
|
312
|
+
};
|
|
313
|
+
readonly responseMode?: Mode;
|
|
314
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
315
|
+
readonly uploadUrl: string;
|
|
316
|
+
readonly url: string;
|
|
317
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Forbidden), [Mode] extends ["response-only"] ? never : never>;
|
|
318
|
+
};
|
|
319
|
+
}, never, AuthClientConfig | HttpClient.HttpClient>;
|
|
320
|
+
};
|
|
321
|
+
export declare class AuthClient extends AuthClient_base {
|
|
322
|
+
static readonly layer: Layer.Layer<AuthClient, import("effect/Config").ConfigError, never>;
|
|
323
|
+
}
|
|
324
|
+
export {};
|
|
325
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAEL,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;;;;;;;;;;AAMxD,qBAAa,gBAAiB,SAAQ,qBAGrC;IACC,MAAM,CAAC,QAAQ,CAAC,KAAK,4EAAiC;CACvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,UAAW,SAAQ,eA6B/B;IACC,MAAM,CAAC,QAAQ,CAAC,KAAK,sEAGnB;CACH"}
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Context, Effect, Layer, Redacted } from "effect";
|
|
2
|
+
import { FetchHttpClient, HttpClient, HttpClientRequest, } from "effect/unstable/http";
|
|
3
|
+
import { HttpApiClient } from "effect/unstable/httpapi";
|
|
4
|
+
import { BackendApi } from "./backend/api";
|
|
5
|
+
import { readClientConfig } from "./config";
|
|
6
|
+
import { FrontendApi } from "./frontend/api";
|
|
7
|
+
export class AuthClientConfig extends Context.Service()("@krak-stack/auth/AuthClientConfig", { make: readClientConfig }) {
|
|
8
|
+
static layer = Layer.effect(this, this.make);
|
|
9
|
+
}
|
|
10
|
+
export class AuthClient extends Context.Service()("@krak-stack/auth/AuthClient", {
|
|
11
|
+
make: Effect.gen(function* () {
|
|
12
|
+
const config = yield* AuthClientConfig;
|
|
13
|
+
const http = yield* HttpClient.HttpClient;
|
|
14
|
+
const httpClient = HttpClient.mapRequest(http, (request) => HttpClientRequest.bearerToken(request, Redacted.value(config.apiKey)));
|
|
15
|
+
const backend = yield* HttpApiClient.group(BackendApi, {
|
|
16
|
+
group: "backend",
|
|
17
|
+
baseUrl: config.baseUrl,
|
|
18
|
+
httpClient,
|
|
19
|
+
});
|
|
20
|
+
const frontend = yield* HttpApiClient.group(FrontendApi, {
|
|
21
|
+
group: "organizations",
|
|
22
|
+
baseUrl: config.baseUrl,
|
|
23
|
+
httpClient,
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
backend,
|
|
27
|
+
frontend: {
|
|
28
|
+
presignOrganizationLogoUpload: frontend.presignOrganizationLogoUpload,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}),
|
|
32
|
+
}) {
|
|
33
|
+
static layer = Layer.effect(this, this.make).pipe(Layer.provide(AuthClientConfig.layer), Layer.provide(FetchHttpClient.layer));
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EACL,eAAe,EACf,UAAU,EACV,iBAAiB,GAClB,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H,OAAO;YACL,OAAO;YACP,QAAQ,EAAE;gBACR,6BAA6B,EAAE,QAAQ,CAAC,6BAA6B;aACtE;SACF,CAAC;IACJ,CAAC,CAAC;CACH,CACF;IACC,MAAM,CAAU,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CACxD,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,EACrC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
2
|
+
import { DropdownMenuContent } from "@/components/ui/dropdown-menu";
|
|
3
|
+
type OrganizationSwitcherProps = {
|
|
4
|
+
side?: ComponentProps<typeof DropdownMenuContent>["side"];
|
|
5
|
+
className?: string;
|
|
6
|
+
renderUnauthenticated?: () => ReactNode;
|
|
7
|
+
locked?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function OrganizationSwitcher({ side, className, renderUnauthenticated, locked, }: OrganizationSwitcherProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=organization-switcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-switcher.d.ts","sourceRoot":"","sources":["../../src/components/organization-switcher.tsx"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AAkBf,OAAO,EAEL,mBAAmB,EAMpB,MAAM,+BAA+B,CAAC;AAmBvC,KAAK,yBAAyB,GAAG;IAC/B,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AA8NF,wBAAgB,oBAAoB,CAAC,EACnC,IAAe,EACf,SAAS,EACT,qBAAqB,EACrB,MAAc,GACf,EAAE,yBAAyB,+BA8P3B"}
|