@krak-stack/auth 0.1.28 → 0.1.30

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/api.d.ts CHANGED
@@ -31,23 +31,19 @@ export declare const AuthApi: HttpApi.HttpApi<"AuthApi", import("effect/unstable
31
31
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
32
32
  readonly id: import("effect/Schema").String;
33
33
  readonly key: import("effect/Schema").String;
34
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"presign", "POST", "/api/organizations/logo/presign", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
35
- readonly fileName: import("effect/Schema").NonEmptyString;
36
- readonly contentType: import("effect/Schema").NonEmptyString;
37
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
38
- readonly uploadUrl: import("effect/Schema").String;
39
- readonly url: import("effect/Schema").String;
40
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"presignUserImageUpload", "POST", "/api/auth/image/presign", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
41
- readonly fileName: import("effect/Schema").NonEmptyString;
42
- readonly contentType: import("effect/Schema").NonEmptyString;
43
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
44
- readonly uploadUrl: import("effect/Schema").String;
45
- readonly url: import("effect/Schema").String;
46
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
34
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
47
35
  readonly newPassword: import("effect/Schema").NonEmptyString;
48
36
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
49
37
  readonly ok: import("effect/Schema").Boolean;
50
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
38
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadOrganizationLogo", "POST", "/api/organizations/logo/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
39
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
40
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
41
+ readonly url: import("effect/Schema").String;
42
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
43
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
44
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
45
+ readonly url: import("effect/Schema").String;
46
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
51
47
  readonly key: import("effect/Schema").NonEmptyString;
52
48
  readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
53
49
  readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
@@ -23,38 +23,119 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
23
23
  readonly createdAt: import("effect/Schema").Date;
24
24
  readonly updatedAt: import("effect/Schema").Date;
25
25
  }>;
26
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../better-auth").TooManyRequests>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
26
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../better-auth").TooManyRequests>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
27
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
28
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
29
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
30
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
31
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
32
+ readonly id: import("effect/Schema").String;
33
+ readonly key: import("effect/Schema").String;
34
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
35
+ readonly newPassword: import("effect/Schema").NonEmptyString;
36
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
37
+ readonly ok: import("effect/Schema").Boolean;
38
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadOrganizationLogo", "POST", "/api/organizations/logo/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
39
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
40
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
41
+ readonly url: import("effect/Schema").String;
42
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
43
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
44
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
45
+ readonly url: import("effect/Schema").String;
46
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
47
+ readonly key: import("effect/Schema").NonEmptyString;
48
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
49
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
50
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
51
+ readonly valid: import("effect/Schema").Boolean;
52
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
53
+ readonly message: import("effect/Schema").String;
54
+ readonly code: import("effect/Schema").String;
55
+ }>>;
56
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
57
+ readonly id: import("effect/Schema").String;
58
+ readonly configId: import("effect/Schema").String;
59
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
60
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
61
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
62
+ readonly referenceId: import("effect/Schema").String;
63
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
64
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
65
+ readonly createdAt: import("effect/Schema").Date;
66
+ readonly updatedAt: import("effect/Schema").Date;
67
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
68
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
69
+ }>>;
70
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
71
+ readonly password: import("effect/Schema").NonEmptyString;
72
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
73
+ readonly ok: import("effect/Schema").Boolean;
74
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
75
+ readonly hostname: import("effect/Schema").NonEmptyString;
76
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
77
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
78
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
79
+ readonly managed: import("effect/Schema").Boolean;
80
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
81
+ readonly id: import("effect/Schema").String;
82
+ readonly hostname: import("effect/Schema").String;
83
+ readonly rootHostname: import("effect/Schema").String;
84
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
85
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
86
+ readonly hostnameId: import("effect/Schema").String;
87
+ readonly managed: import("effect/Schema").Boolean;
88
+ readonly active: import("effect/Schema").Boolean;
89
+ readonly createdAt: import("effect/Schema").Date;
90
+ readonly updatedAt: import("effect/Schema").Date;
91
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
92
+ readonly id: import("effect/Schema").NonEmptyString;
93
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
94
+ readonly id: import("effect/Schema").String;
95
+ readonly hostname: import("effect/Schema").String;
96
+ readonly rootHostname: import("effect/Schema").String;
97
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
98
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
99
+ readonly hostnameId: import("effect/Schema").String;
100
+ readonly managed: import("effect/Schema").Boolean;
101
+ readonly active: import("effect/Schema").Boolean;
102
+ readonly createdAt: import("effect/Schema").Date;
103
+ readonly updatedAt: import("effect/Schema").Date;
104
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
27
105
  readonly id: import("effect/Schema").NonEmptyString;
28
106
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
29
107
  readonly id: import("effect/Schema").String;
30
- readonly name: import("effect/Schema").String;
31
- readonly email: import("effect/Schema").String;
32
- readonly emailVerified: import("effect/Schema").Boolean;
33
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
34
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
35
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
108
+ readonly hostname: import("effect/Schema").String;
109
+ readonly rootHostname: import("effect/Schema").String;
110
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
111
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
112
+ readonly hostnameId: import("effect/Schema").String;
113
+ readonly managed: import("effect/Schema").Boolean;
114
+ readonly active: import("effect/Schema").Boolean;
36
115
  readonly createdAt: import("effect/Schema").Date;
37
116
  readonly updatedAt: import("effect/Schema").Date;
38
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
39
- readonly userId: import("effect/Schema").NonEmptyString;
117
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
118
+ readonly hostname: import("effect/Schema").NonEmptyString;
40
119
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
41
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
42
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
43
- readonly ids: import("effect/Schema").NonEmptyString;
44
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
45
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
46
- readonly id: import("effect/Schema").String;
47
- readonly name: import("effect/Schema").String;
48
- readonly email: import("effect/Schema").String;
49
- readonly emailVerified: import("effect/Schema").Boolean;
50
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
51
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
52
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
53
- readonly createdAt: import("effect/Schema").Date;
54
- readonly updatedAt: import("effect/Schema").Date;
55
- }>>;
56
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
57
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
120
+ readonly id: import("effect/Schema").String;
121
+ readonly hostname: import("effect/Schema").String;
122
+ readonly rootHostname: import("effect/Schema").String;
123
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
124
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
125
+ readonly hostnameId: import("effect/Schema").String;
126
+ readonly managed: import("effect/Schema").Boolean;
127
+ readonly active: import("effect/Schema").Boolean;
128
+ readonly createdAt: import("effect/Schema").Date;
129
+ readonly updatedAt: import("effect/Schema").Date;
130
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
131
+ readonly id: import("effect/Schema").NonEmptyString;
132
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
133
+ readonly required: import("effect/Schema").Boolean;
134
+ readonly status: import("effect/Schema").String;
135
+ readonly type: import("effect/Schema").String;
136
+ readonly name: import("effect/Schema").String;
137
+ readonly value: import("effect/Schema").String;
138
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
58
139
  readonly organizationId: import("effect/Schema").NonEmptyString;
59
140
  readonly userId: import("effect/Schema").NonEmptyString;
60
141
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
@@ -133,120 +214,35 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
133
214
  readonly createdAt: import("effect/Schema").Date;
134
215
  }>>;
135
216
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
136
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
137
- readonly hostname: import("effect/Schema").NonEmptyString;
138
- readonly rootHostname: import("effect/Schema").NonEmptyString;
139
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
140
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
141
- readonly managed: import("effect/Schema").Boolean;
142
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
143
- readonly id: import("effect/Schema").String;
144
- readonly hostname: import("effect/Schema").String;
145
- readonly rootHostname: import("effect/Schema").String;
146
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
147
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
148
- readonly hostnameId: import("effect/Schema").String;
149
- readonly managed: import("effect/Schema").Boolean;
150
- readonly active: import("effect/Schema").Boolean;
151
- readonly createdAt: import("effect/Schema").Date;
152
- readonly updatedAt: import("effect/Schema").Date;
153
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
154
- readonly id: import("effect/Schema").NonEmptyString;
155
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
156
- readonly id: import("effect/Schema").String;
157
- readonly hostname: import("effect/Schema").String;
158
- readonly rootHostname: import("effect/Schema").String;
159
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
160
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
161
- readonly hostnameId: import("effect/Schema").String;
162
- readonly managed: import("effect/Schema").Boolean;
163
- readonly active: import("effect/Schema").Boolean;
164
- readonly createdAt: import("effect/Schema").Date;
165
- readonly updatedAt: import("effect/Schema").Date;
166
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
217
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
167
218
  readonly id: import("effect/Schema").NonEmptyString;
168
219
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
169
220
  readonly id: import("effect/Schema").String;
170
- readonly hostname: import("effect/Schema").String;
171
- readonly rootHostname: import("effect/Schema").String;
172
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
173
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
174
- readonly hostnameId: import("effect/Schema").String;
175
- readonly managed: import("effect/Schema").Boolean;
176
- readonly active: import("effect/Schema").Boolean;
221
+ readonly name: import("effect/Schema").String;
222
+ readonly email: import("effect/Schema").String;
223
+ readonly emailVerified: import("effect/Schema").Boolean;
224
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
225
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
226
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
177
227
  readonly createdAt: import("effect/Schema").Date;
178
228
  readonly updatedAt: import("effect/Schema").Date;
179
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
180
- readonly hostname: import("effect/Schema").NonEmptyString;
229
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
230
+ readonly userId: import("effect/Schema").NonEmptyString;
181
231
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
182
- readonly id: import("effect/Schema").String;
183
- readonly hostname: import("effect/Schema").String;
184
- readonly rootHostname: import("effect/Schema").String;
185
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
186
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
187
- readonly hostnameId: import("effect/Schema").String;
188
- readonly managed: import("effect/Schema").Boolean;
189
- readonly active: import("effect/Schema").Boolean;
190
- readonly createdAt: import("effect/Schema").Date;
191
- readonly updatedAt: import("effect/Schema").Date;
192
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
193
- readonly id: import("effect/Schema").NonEmptyString;
194
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
195
- readonly required: import("effect/Schema").Boolean;
196
- readonly status: import("effect/Schema").String;
197
- readonly type: import("effect/Schema").String;
198
- readonly name: import("effect/Schema").String;
199
- readonly value: import("effect/Schema").String;
200
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
201
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
202
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
203
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
204
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
205
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
206
- readonly id: import("effect/Schema").String;
207
- readonly key: import("effect/Schema").String;
208
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"presign", "POST", "/api/organizations/logo/presign", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
209
- readonly fileName: import("effect/Schema").NonEmptyString;
210
- readonly contentType: import("effect/Schema").NonEmptyString;
211
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
212
- readonly uploadUrl: import("effect/Schema").String;
213
- readonly url: import("effect/Schema").String;
214
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"presignUserImageUpload", "POST", "/api/auth/image/presign", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
215
- readonly fileName: import("effect/Schema").NonEmptyString;
216
- readonly contentType: import("effect/Schema").NonEmptyString;
217
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
218
- readonly uploadUrl: import("effect/Schema").String;
219
- readonly url: import("effect/Schema").String;
220
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("../extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
221
- readonly newPassword: import("effect/Schema").NonEmptyString;
222
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
223
- readonly ok: import("effect/Schema").Boolean;
224
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
225
- readonly key: import("effect/Schema").NonEmptyString;
226
- readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
227
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
228
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
229
- readonly valid: import("effect/Schema").Boolean;
230
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
231
- readonly message: import("effect/Schema").String;
232
- readonly code: import("effect/Schema").String;
233
- }>>;
234
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
232
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
233
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
234
+ readonly ids: import("effect/Schema").NonEmptyString;
235
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
236
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
235
237
  readonly id: import("effect/Schema").String;
236
- readonly configId: import("effect/Schema").String;
237
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
238
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
239
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
240
- readonly referenceId: import("effect/Schema").String;
241
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
242
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
238
+ readonly name: import("effect/Schema").String;
239
+ readonly email: import("effect/Schema").String;
240
+ readonly emailVerified: import("effect/Schema").Boolean;
241
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
242
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
243
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
243
244
  readonly createdAt: import("effect/Schema").Date;
244
245
  readonly updatedAt: import("effect/Schema").Date;
245
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
246
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
247
246
  }>>;
248
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
249
- readonly password: import("effect/Schema").NonEmptyString;
250
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
251
- readonly ok: import("effect/Schema").Boolean;
252
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../extra").ExtraBadRequest>, never, never>, false>>;
247
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
248
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
@@ -1,10 +1,12 @@
1
1
  import type { apiKeyClient } from "@better-auth/api-key/client";
2
- import type { organizationClient, twoFactorClient } from "better-auth/client/plugins";
2
+ import type { emailOTPClient, genericOAuthClient, organizationClient, twoFactorClient } from "better-auth/client/plugins";
3
3
  import type { createAuthClient } from "better-auth/react";
4
4
  export type AuthUiClient = ReturnType<typeof createAuthClient<{
5
5
  plugins: [
6
+ ReturnType<typeof emailOTPClient>,
6
7
  ReturnType<typeof organizationClient>,
7
8
  ReturnType<typeof twoFactorClient>,
8
- ReturnType<typeof apiKeyClient>
9
+ ReturnType<typeof apiKeyClient>,
10
+ ReturnType<typeof genericOAuthClient>
9
11
  ];
10
12
  }>>;
@@ -0,0 +1,13 @@
1
+ import type { AuthUiClient } from "./auth-client";
2
+ export declare function Signin({ authClient }: {
3
+ authClient: AuthUiClient;
4
+ }): import("react").JSX.Element;
5
+ export declare function Signup({ authClient }: {
6
+ authClient: AuthUiClient;
7
+ }): import("react").JSX.Element;
8
+ export declare function ResetPassword({ authClient }: {
9
+ authClient: AuthUiClient;
10
+ }): import("react").JSX.Element;
11
+ export declare function TwoFactor({ authClient }: {
12
+ authClient: AuthUiClient;
13
+ }): import("react").JSX.Element;