@krak-stack/auth 0.1.39 → 0.1.41

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.
Files changed (40) hide show
  1. package/dist/admin/api.d.ts +196 -0
  2. package/dist/admin/api.js +158 -0
  3. package/dist/admin/index.d.ts +2 -0
  4. package/dist/admin/index.js +2 -0
  5. package/dist/admin/schema.d.ts +128 -0
  6. package/dist/admin/schema.js +190 -0
  7. package/dist/api.d.ts +278 -1
  8. package/dist/api.js +11 -2
  9. package/dist/components/admin-organization-form.d.ts +6 -0
  10. package/dist/components/admin-organization-form.js +126 -0
  11. package/dist/components/admin-organizations.d.ts +7 -0
  12. package/dist/components/admin-organizations.js +122 -0
  13. package/dist/components/admin-users.d.ts +8 -0
  14. package/dist/components/admin-users.js +282 -0
  15. package/dist/components/{auth-api-client.d.ts → auth-client-api.d.ts} +186 -196
  16. package/dist/components/auth-client-api.js +29 -0
  17. package/dist/components/auth-client.d.ts +2 -1
  18. package/dist/components/auth-forms.js +3 -3
  19. package/dist/components/auth-provider.d.ts +16 -15
  20. package/dist/components/auth-provider.js +30 -5
  21. package/dist/components/index.d.ts +3 -0
  22. package/dist/components/index.js +3 -0
  23. package/dist/components/organization-switcher.js +4 -5
  24. package/dist/components/user-button.d.ts +11 -1
  25. package/dist/components/user-button.js +57 -6
  26. package/dist/components/utils.d.ts +11 -0
  27. package/dist/components/utils.js +24 -0
  28. package/dist/index.d.ts +4 -2
  29. package/dist/index.js +4 -2
  30. package/dist/query.d.ts +49 -0
  31. package/dist/query.js +114 -0
  32. package/dist/server/api.d.ts +32 -0
  33. package/dist/server/index.d.ts +2 -2
  34. package/dist/server/index.js +2 -1
  35. package/dist/server/schema.d.ts +4 -0
  36. package/dist/server/schema.js +8 -0
  37. package/dist/service.d.ts +462 -434
  38. package/dist/service.js +2 -2
  39. package/package.json +9 -1
  40. package/dist/components/auth-api-client.js +0 -29
@@ -127,7 +127,11 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"domains",
127
127
  readonly hostname: import("effect/Schema").String;
128
128
  readonly rootHostname: import("effect/Schema").String;
129
129
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
130
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
131
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
130
132
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
133
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
134
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
131
135
  readonly hostnameId: import("effect/Schema").String;
132
136
  readonly managed: import("effect/Schema").Boolean;
133
137
  readonly active: import("effect/Schema").Boolean;
@@ -140,7 +144,11 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"domains",
140
144
  readonly hostname: import("effect/Schema").String;
141
145
  readonly rootHostname: import("effect/Schema").String;
142
146
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
147
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
148
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
143
149
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
150
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
151
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
144
152
  readonly hostnameId: import("effect/Schema").String;
145
153
  readonly managed: import("effect/Schema").Boolean;
146
154
  readonly active: import("effect/Schema").Boolean;
@@ -153,7 +161,11 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"domains",
153
161
  readonly hostname: import("effect/Schema").String;
154
162
  readonly rootHostname: import("effect/Schema").String;
155
163
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
164
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
165
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
156
166
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
167
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
168
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
157
169
  readonly hostnameId: import("effect/Schema").String;
158
170
  readonly managed: import("effect/Schema").Boolean;
159
171
  readonly active: import("effect/Schema").Boolean;
@@ -166,7 +178,11 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"domains",
166
178
  readonly hostname: import("effect/Schema").String;
167
179
  readonly rootHostname: import("effect/Schema").String;
168
180
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
181
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
182
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
169
183
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
184
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
185
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
170
186
  readonly hostnameId: import("effect/Schema").String;
171
187
  readonly managed: import("effect/Schema").Boolean;
172
188
  readonly active: import("effect/Schema").Boolean;
@@ -192,7 +208,11 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
192
208
  readonly hostname: import("effect/Schema").String;
193
209
  readonly rootHostname: import("effect/Schema").String;
194
210
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
211
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
212
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
195
213
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
214
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
215
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
196
216
  readonly hostnameId: import("effect/Schema").String;
197
217
  readonly managed: import("effect/Schema").Boolean;
198
218
  readonly active: import("effect/Schema").Boolean;
@@ -205,7 +225,11 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
205
225
  readonly hostname: import("effect/Schema").String;
206
226
  readonly rootHostname: import("effect/Schema").String;
207
227
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
228
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
229
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
208
230
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
231
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
232
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
209
233
  readonly hostnameId: import("effect/Schema").String;
210
234
  readonly managed: import("effect/Schema").Boolean;
211
235
  readonly active: import("effect/Schema").Boolean;
@@ -218,7 +242,11 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
218
242
  readonly hostname: import("effect/Schema").String;
219
243
  readonly rootHostname: import("effect/Schema").String;
220
244
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
245
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
246
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
221
247
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
248
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
249
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
222
250
  readonly hostnameId: import("effect/Schema").String;
223
251
  readonly managed: import("effect/Schema").Boolean;
224
252
  readonly active: import("effect/Schema").Boolean;
@@ -231,7 +259,11 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
231
259
  readonly hostname: import("effect/Schema").String;
232
260
  readonly rootHostname: import("effect/Schema").String;
233
261
  readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
262
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
263
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
234
264
  readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
265
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
266
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
235
267
  readonly hostnameId: import("effect/Schema").String;
236
268
  readonly managed: import("effect/Schema").Boolean;
237
269
  readonly active: import("effect/Schema").Boolean;
@@ -1,9 +1,9 @@
1
1
  export { AuthService } from "../service";
2
2
  export type { AuthSession, AuthSessionWithOrganization, AuthSessionWithUser, AuthSessionWithUserAndOrganization, } from "../service";
3
3
  export { AuthClientConfig } from "../config";
4
- export { ServerApi, ServerOrganizationsApiGroup, ServerUsersApiGroup, } from "./api";
4
+ export { ServerApi, ServerDomainsApiGroup, ServerOrganizationsApiGroup, ServerUsersApiGroup, } from "./api";
5
5
  export { proxyAuthRequest } from "./proxy";
6
6
  export { ApiKeySecurity, AuthMiddleware, makeAuthenticationLive, } from "./middleware";
7
7
  export type { AuthenticationLiveOptions } from "./middleware";
8
- export type { ServerActiveOrganization, ServerMembersResponse, ServerOrganizationsResponse, ServerUsersResponse, } from "./schema";
8
+ export { ServerActiveOrganization, ServerCreateDomainPayload, ServerDomain, ServerDomainHostParams, ServerDomainIdParams, ServerDomainRecordsResponse, ServerMembersResponse, ServerOrganizationsResponse, ServerUpdateDomainPayload, ServerUsersResponse, } from "./schema";
9
9
  export type { Member, Organization, OrganizationMetadata, User, } from "../schema";
@@ -1,5 +1,6 @@
1
1
  export { AuthService } from "../service";
2
2
  export { AuthClientConfig } from "../config";
3
- export { ServerApi, ServerOrganizationsApiGroup, ServerUsersApiGroup, } from "./api";
3
+ export { ServerApi, ServerDomainsApiGroup, ServerOrganizationsApiGroup, ServerUsersApiGroup, } from "./api";
4
4
  export { proxyAuthRequest } from "./proxy";
5
5
  export { ApiKeySecurity, AuthMiddleware, makeAuthenticationLive, } from "./middleware";
6
+ export { ServerActiveOrganization, ServerCreateDomainPayload, ServerDomain, ServerDomainHostParams, ServerDomainIdParams, ServerDomainRecordsResponse, ServerMembersResponse, ServerOrganizationsResponse, ServerUpdateDomainPayload, ServerUsersResponse, } from "./schema";
@@ -81,7 +81,11 @@ export declare const ServerDomain: Schema.Struct<{
81
81
  readonly hostname: Schema.String;
82
82
  readonly rootHostname: Schema.String;
83
83
  readonly projectId: Schema.NullOr<Schema.String>;
84
+ readonly projectName: Schema.optional<Schema.NullOr<Schema.String>>;
85
+ readonly projectLogo: Schema.optional<Schema.NullOr<Schema.String>>;
84
86
  readonly organizationId: Schema.NullOr<Schema.String>;
87
+ readonly organizationName: Schema.optional<Schema.NullOr<Schema.String>>;
88
+ readonly organizationLogo: Schema.optional<Schema.NullOr<Schema.String>>;
85
89
  readonly hostnameId: Schema.String;
86
90
  readonly managed: Schema.Boolean;
87
91
  readonly active: Schema.Boolean;
@@ -84,7 +84,11 @@ export const ServerDomain = Schema.Struct({
84
84
  hostname: Schema.String,
85
85
  rootHostname: Schema.String,
86
86
  projectId: Schema.NullOr(Schema.String),
87
+ projectName: Schema.optional(Schema.NullOr(Schema.String)),
88
+ projectLogo: Schema.optional(Schema.NullOr(Schema.String)),
87
89
  organizationId: Schema.NullOr(Schema.String),
90
+ organizationName: Schema.optional(Schema.NullOr(Schema.String)),
91
+ organizationLogo: Schema.optional(Schema.NullOr(Schema.String)),
88
92
  hostnameId: Schema.String,
89
93
  managed: Schema.Boolean,
90
94
  active: Schema.Boolean,
@@ -100,7 +104,11 @@ export const ServerDomain = Schema.Struct({
100
104
  hostname: "auth.institute.example.com",
101
105
  rootHostname: "institute.example.com",
102
106
  projectId: "kokobi",
107
+ projectName: "Kokobi",
108
+ projectLogo: "https://example.com/kokobi.svg",
103
109
  organizationId: "org_1",
110
+ organizationName: "Institute Example",
111
+ organizationLogo: "https://example.com/institute.svg",
104
112
  hostnameId: "cloudflare-hostname-id",
105
113
  managed: true,
106
114
  active: false,