@krak-stack/auth 0.1.28 → 0.1.29
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/components/auth-api-client.d.ts +133 -133
- package/dist/server/api.d.ts +85 -85
- package/package.json +4 -2
- package/tailwind.css +1 -0
|
@@ -23,38 +23,123 @@ 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<"
|
|
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<"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<{
|
|
47
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
48
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
49
|
+
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<{
|
|
51
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
52
|
+
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
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
54
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
55
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
56
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
57
|
+
readonly message: import("effect/Schema").String;
|
|
58
|
+
readonly code: import("effect/Schema").String;
|
|
59
|
+
}>>;
|
|
60
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
61
|
+
readonly id: import("effect/Schema").String;
|
|
62
|
+
readonly configId: import("effect/Schema").String;
|
|
63
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
64
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
65
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
66
|
+
readonly referenceId: import("effect/Schema").String;
|
|
67
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
68
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
69
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
70
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
71
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
72
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
73
|
+
}>>;
|
|
74
|
+
}>>, 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<{
|
|
75
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
76
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
77
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
78
|
+
}>>, 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<{
|
|
79
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
80
|
+
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
81
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
82
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
83
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
84
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
85
|
+
readonly id: import("effect/Schema").String;
|
|
86
|
+
readonly hostname: import("effect/Schema").String;
|
|
87
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
88
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
89
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
90
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
91
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
92
|
+
readonly active: import("effect/Schema").Boolean;
|
|
93
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
94
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
95
|
+
}>>, 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<{
|
|
96
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
97
|
+
}>>, 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<{
|
|
98
|
+
readonly id: import("effect/Schema").String;
|
|
99
|
+
readonly hostname: import("effect/Schema").String;
|
|
100
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
101
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
102
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
103
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
104
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
105
|
+
readonly active: import("effect/Schema").Boolean;
|
|
106
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
107
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
108
|
+
}>>, 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
109
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
28
110
|
}>>, 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
111
|
readonly id: import("effect/Schema").String;
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
112
|
+
readonly hostname: import("effect/Schema").String;
|
|
113
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
114
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
115
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
116
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
117
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
118
|
+
readonly active: import("effect/Schema").Boolean;
|
|
36
119
|
readonly createdAt: import("effect/Schema").Date;
|
|
37
120
|
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<"
|
|
39
|
-
readonly
|
|
121
|
+
}>>, 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<{
|
|
122
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
40
123
|
}>>, 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").
|
|
42
|
-
|
|
43
|
-
readonly
|
|
44
|
-
|
|
45
|
-
readonly
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
readonly
|
|
57
|
-
|
|
124
|
+
readonly id: import("effect/Schema").String;
|
|
125
|
+
readonly hostname: import("effect/Schema").String;
|
|
126
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
127
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
128
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
129
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
130
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
131
|
+
readonly active: import("effect/Schema").Boolean;
|
|
132
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
133
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
134
|
+
}>>, 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<{
|
|
135
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
136
|
+
}>>, 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<{
|
|
137
|
+
readonly required: import("effect/Schema").Boolean;
|
|
138
|
+
readonly status: import("effect/Schema").String;
|
|
139
|
+
readonly type: import("effect/Schema").String;
|
|
140
|
+
readonly name: import("effect/Schema").String;
|
|
141
|
+
readonly value: import("effect/Schema").String;
|
|
142
|
+
}>>>, 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
143
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
59
144
|
readonly userId: import("effect/Schema").NonEmptyString;
|
|
60
145
|
}>>, 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 +218,35 @@ export declare const authApiClient: (baseUrl?: string | undefined) => AtomHttpAp
|
|
|
133
218
|
readonly createdAt: import("effect/Schema").Date;
|
|
134
219
|
}>>;
|
|
135
220
|
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<"
|
|
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<{
|
|
221
|
+
}>>, 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
222
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
168
223
|
}>>, 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
224
|
readonly id: import("effect/Schema").String;
|
|
170
|
-
readonly
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
175
|
-
readonly
|
|
176
|
-
readonly active: import("effect/Schema").Boolean;
|
|
225
|
+
readonly name: import("effect/Schema").String;
|
|
226
|
+
readonly email: import("effect/Schema").String;
|
|
227
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
228
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
229
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
230
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
177
231
|
readonly createdAt: import("effect/Schema").Date;
|
|
178
232
|
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<"
|
|
180
|
-
readonly
|
|
233
|
+
}>>, 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<{
|
|
234
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
181
235
|
}>>, 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
|
-
|
|
184
|
-
readonly
|
|
185
|
-
|
|
186
|
-
readonly
|
|
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<{
|
|
236
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
237
|
+
}>>, 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<{
|
|
238
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
239
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
240
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
235
241
|
readonly id: import("effect/Schema").String;
|
|
236
|
-
readonly
|
|
237
|
-
readonly
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
readonly
|
|
242
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
242
|
+
readonly name: import("effect/Schema").String;
|
|
243
|
+
readonly email: import("effect/Schema").String;
|
|
244
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
245
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
246
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
247
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
243
248
|
readonly createdAt: import("effect/Schema").Date;
|
|
244
249
|
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
250
|
}>>;
|
|
248
|
-
|
|
249
|
-
|
|
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>>;
|
|
251
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
252
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
|
package/dist/server/api.d.ts
CHANGED
|
@@ -177,38 +177,71 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"domains",
|
|
|
177
177
|
readonly name: import("effect/Schema").String;
|
|
178
178
|
readonly value: import("effect/Schema").String;
|
|
179
179
|
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>;
|
|
180
|
-
export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpApiGroup<"
|
|
180
|
+
export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpApiGroup<"domains", HttpApiEndpoint.HttpApiEndpoint<"createDomain", "POST", "/api/domains", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
181
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
182
|
+
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
183
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
184
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
185
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
186
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
187
|
+
readonly id: import("effect/Schema").String;
|
|
188
|
+
readonly hostname: import("effect/Schema").String;
|
|
189
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
190
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
191
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
192
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
193
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
194
|
+
readonly active: import("effect/Schema").Boolean;
|
|
195
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
196
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
197
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
198
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
199
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
200
|
+
readonly id: import("effect/Schema").String;
|
|
201
|
+
readonly hostname: import("effect/Schema").String;
|
|
202
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
203
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
204
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
205
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
206
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
207
|
+
readonly active: import("effect/Schema").Boolean;
|
|
208
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
209
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
210
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
181
211
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
182
212
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
183
213
|
readonly id: import("effect/Schema").String;
|
|
184
|
-
readonly
|
|
185
|
-
readonly
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
189
|
-
readonly
|
|
214
|
+
readonly hostname: import("effect/Schema").String;
|
|
215
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
216
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
217
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
218
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
219
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
220
|
+
readonly active: import("effect/Schema").Boolean;
|
|
190
221
|
readonly createdAt: import("effect/Schema").Date;
|
|
191
222
|
readonly updatedAt: import("effect/Schema").Date;
|
|
192
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
193
|
-
readonly
|
|
223
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
224
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
194
225
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
195
|
-
readonly id: import("effect/Schema").
|
|
196
|
-
|
|
197
|
-
readonly
|
|
198
|
-
|
|
199
|
-
readonly
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
readonly
|
|
211
|
-
|
|
226
|
+
readonly id: import("effect/Schema").String;
|
|
227
|
+
readonly hostname: import("effect/Schema").String;
|
|
228
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
229
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
230
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
231
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
232
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
233
|
+
readonly active: import("effect/Schema").Boolean;
|
|
234
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
235
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
236
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
237
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
238
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
239
|
+
readonly required: import("effect/Schema").Boolean;
|
|
240
|
+
readonly status: import("effect/Schema").String;
|
|
241
|
+
readonly type: import("effect/Schema").String;
|
|
242
|
+
readonly name: import("effect/Schema").String;
|
|
243
|
+
readonly value: import("effect/Schema").String;
|
|
244
|
+
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
212
245
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
213
246
|
readonly userId: import("effect/Schema").NonEmptyString;
|
|
214
247
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
@@ -287,68 +320,35 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
287
320
|
readonly createdAt: import("effect/Schema").Date;
|
|
288
321
|
}>>;
|
|
289
322
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
290
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"
|
|
291
|
-
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
292
|
-
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
293
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
294
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
295
|
-
readonly managed: import("effect/Schema").Boolean;
|
|
296
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
297
|
-
readonly id: import("effect/Schema").String;
|
|
298
|
-
readonly hostname: import("effect/Schema").String;
|
|
299
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
300
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
301
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
302
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
303
|
-
readonly managed: import("effect/Schema").Boolean;
|
|
304
|
-
readonly active: import("effect/Schema").Boolean;
|
|
305
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
306
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
307
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
308
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
309
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
310
|
-
readonly id: import("effect/Schema").String;
|
|
311
|
-
readonly hostname: import("effect/Schema").String;
|
|
312
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
313
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
314
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
315
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
316
|
-
readonly managed: import("effect/Schema").Boolean;
|
|
317
|
-
readonly active: import("effect/Schema").Boolean;
|
|
318
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
319
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
320
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
323
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"users", HttpApiEndpoint.HttpApiEndpoint<"getUser", "GET", "/api/users/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
321
324
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
322
325
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
323
326
|
readonly id: import("effect/Schema").String;
|
|
324
|
-
readonly
|
|
325
|
-
readonly
|
|
326
|
-
readonly
|
|
327
|
-
readonly
|
|
328
|
-
readonly
|
|
329
|
-
readonly
|
|
330
|
-
readonly active: import("effect/Schema").Boolean;
|
|
327
|
+
readonly name: import("effect/Schema").String;
|
|
328
|
+
readonly email: import("effect/Schema").String;
|
|
329
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
330
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
331
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
332
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
331
333
|
readonly createdAt: import("effect/Schema").Date;
|
|
332
334
|
readonly updatedAt: import("effect/Schema").Date;
|
|
333
|
-
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
334
|
-
readonly
|
|
335
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
336
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
335
337
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
336
|
-
readonly id: import("effect/Schema").String
|
|
337
|
-
|
|
338
|
-
readonly
|
|
339
|
-
|
|
340
|
-
readonly
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
readonly
|
|
352
|
-
|
|
353
|
-
readonly value: import("effect/Schema").String;
|
|
354
|
-
}>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>>;
|
|
338
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
339
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
|
|
340
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
341
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
342
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
343
|
+
readonly id: import("effect/Schema").String;
|
|
344
|
+
readonly name: import("effect/Schema").String;
|
|
345
|
+
readonly email: import("effect/Schema").String;
|
|
346
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
347
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
348
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
349
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
350
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
351
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
352
|
+
}>>;
|
|
353
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
354
|
+
}>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false>>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"description": "Effect HttpApi clients and schemas for KrakStack Auth.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist"
|
|
7
|
+
"dist",
|
|
8
|
+
"tailwind.css"
|
|
8
9
|
],
|
|
9
10
|
"type": "module",
|
|
10
11
|
"sideEffects": false,
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"types": "./dist/components/index.d.ts",
|
|
30
31
|
"default": "./dist/components/index.js"
|
|
31
32
|
},
|
|
33
|
+
"./tailwind.css": "./tailwind.css",
|
|
32
34
|
"./better-auth": {
|
|
33
35
|
"types": "./dist/better-auth/index.d.ts",
|
|
34
36
|
"default": "./dist/better-auth/index.js"
|
package/tailwind.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@source "./dist";
|