@krak-stack/auth 0.2.32 → 0.3.1
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/CHANGELOG.md +14 -0
- package/README.md +101 -5
- package/dist/access.d.ts +3 -1
- package/dist/admin/api.group.d.ts +41 -41
- package/dist/admin/schema.d.ts +23 -23
- package/dist/admin/schema.js +21 -19
- package/dist/api.d.ts +126 -77
- package/dist/auth/api.group.d.ts +18 -18
- package/dist/auth/schema.d.ts +49 -33
- package/dist/auth/schema.js +18 -18
- package/dist/components/admin-organization-form.js +2 -2
- package/dist/components/admin-organizations.js +6 -5
- package/dist/components/admin-users.js +6 -6
- package/dist/components/api-key-edit-form.js +19 -11
- package/dist/components/associated-projects-notice.d.ts +2 -1
- package/dist/components/associated-projects-notice.js +6 -2
- package/dist/components/auth-atoms.js +1 -2
- package/dist/components/auth-client-api.d.ts +61 -61
- package/dist/components/auth-forms.d.ts +1 -0
- package/dist/components/auth-forms.js +41 -56
- package/dist/components/auth-provider.d.ts +3 -1
- package/dist/components/hooks.d.ts +2 -0
- package/dist/components/hooks.js +13 -6
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +2 -0
- package/dist/components/member-required.js +3 -5
- package/dist/components/oauth-consent.d.ts +22 -0
- package/dist/components/oauth-consent.js +79 -0
- package/dist/components/organization-switcher.d.ts +1 -1
- package/dist/components/organization-switcher.js +83 -54
- package/dist/components/project-card-list.d.ts +6 -0
- package/dist/components/project-card-list.js +4 -0
- package/dist/components/user-button.js +115 -54
- package/dist/extra/schema.d.ts +3 -1
- package/dist/oauth/authorization.d.ts +3 -0
- package/dist/oauth/authorization.js +39 -0
- package/dist/oauth/schema.d.ts +24 -0
- package/dist/oauth/schema.js +12 -0
- package/dist/oauth/verify.d.ts +13 -0
- package/dist/oauth/verify.js +67 -0
- package/dist/schema.js +1 -1
- package/dist/server/actor.js +2 -4
- package/dist/server/api.group.d.ts +49 -0
- package/dist/server/api.group.js +10 -1
- package/dist/server/index.d.ts +3 -1
- package/dist/server/index.js +2 -1
- package/dist/server/mcp.d.ts +20 -0
- package/dist/server/mcp.js +66 -0
- package/dist/server/middleware.d.ts +5 -5
- package/dist/server/middleware.js +15 -5
- package/dist/server/schema.d.ts +51 -0
- package/dist/server/schema.js +7 -0
- package/dist/server/webhook-layer.js +8 -4
- package/dist/server/webhooks.d.ts +9 -3
- package/dist/service.d.ts +152 -46
- package/dist/service.js +56 -9
- package/package.json +2 -1
package/dist/api.d.ts
CHANGED
|
@@ -49,6 +49,55 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
49
49
|
readonly userId: import("effect/Schema").NonEmptyString;
|
|
50
50
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
51
51
|
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
52
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByEmails", "GET", "/api/users/by-email", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
53
|
+
readonly emails: import("effect/Schema").NonEmptyString;
|
|
54
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
55
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
56
|
+
readonly id: import("effect/Schema").String;
|
|
57
|
+
readonly name: import("effect/Schema").String;
|
|
58
|
+
readonly email: import("effect/Schema").String;
|
|
59
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
60
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
61
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
62
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
63
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
64
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
65
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
66
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
67
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
68
|
+
}>>;
|
|
69
|
+
}>>>;
|
|
70
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
71
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
72
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
73
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
74
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
75
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
76
|
+
}>>;
|
|
77
|
+
}>>>;
|
|
78
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
79
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
80
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
81
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
82
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
83
|
+
}>>;
|
|
84
|
+
}>>>;
|
|
85
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
86
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
87
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
88
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
89
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
90
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
91
|
+
}>>;
|
|
92
|
+
}>>>;
|
|
93
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
94
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
95
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
96
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
97
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
98
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
99
|
+
}>>;
|
|
100
|
+
readonly missingEmails: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
52
101
|
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
53
102
|
readonly ids: import("effect/Schema").NonEmptyString;
|
|
54
103
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -613,7 +662,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
613
662
|
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
614
663
|
readonly userId: import("effect/Schema").String;
|
|
615
664
|
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
616
|
-
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").
|
|
665
|
+
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
617
666
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
618
667
|
readonly user: import("effect/Schema").Struct<{
|
|
619
668
|
readonly id: import("effect/Schema").String;
|
|
@@ -848,8 +897,8 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
848
897
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
849
898
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
850
899
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
851
|
-
readonly limit: import("effect/Schema").optional<import("effect/Schema").
|
|
852
|
-
readonly offset: import("effect/Schema").optional<import("effect/Schema").
|
|
900
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
901
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
853
902
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
854
903
|
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
855
904
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -861,15 +910,15 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
861
910
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
862
911
|
readonly referenceId: import("effect/Schema").String;
|
|
863
912
|
readonly configId: import("effect/Schema").String;
|
|
864
|
-
readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").
|
|
865
|
-
readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").
|
|
913
|
+
readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
914
|
+
readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
866
915
|
readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
867
916
|
readonly enabled: import("effect/Schema").Boolean;
|
|
868
917
|
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
869
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").
|
|
870
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").
|
|
871
|
-
readonly requestCount: import("effect/Schema").
|
|
872
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").
|
|
918
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
919
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
920
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
921
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
873
922
|
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
874
923
|
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
875
924
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -878,9 +927,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
878
927
|
readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
|
|
879
928
|
readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
880
929
|
}>>;
|
|
881
|
-
readonly total: import("effect/Schema").
|
|
882
|
-
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").
|
|
883
|
-
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").
|
|
930
|
+
readonly total: import("effect/Schema").Finite;
|
|
931
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
932
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
884
933
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
885
934
|
readonly newPassword: import("effect/Schema").String;
|
|
886
935
|
readonly currentPassword: import("effect/Schema").String;
|
|
@@ -1166,7 +1215,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1166
1215
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1167
1216
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1168
1217
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1169
|
-
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").
|
|
1218
|
+
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
1170
1219
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1171
1220
|
readonly id: import("effect/Schema").String;
|
|
1172
1221
|
readonly name: import("effect/Schema").String;
|
|
@@ -1252,7 +1301,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1252
1301
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1253
1302
|
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
1254
1303
|
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
1255
|
-
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").
|
|
1304
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
1256
1305
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1257
1306
|
readonly session: import("effect/Schema").Struct<{
|
|
1258
1307
|
readonly id: import("effect/Schema").String;
|
|
@@ -1363,8 +1412,8 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1363
1412
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1364
1413
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1365
1414
|
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1366
|
-
readonly limit: import("effect/Schema").optional<import("effect/Schema").
|
|
1367
|
-
readonly offset: import("effect/Schema").optional<import("effect/Schema").
|
|
1415
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
1416
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
1368
1417
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1369
1418
|
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
1370
1419
|
readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1418,7 +1467,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1418
1467
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1419
1468
|
}>;
|
|
1420
1469
|
}>>;
|
|
1421
|
-
readonly total: import("effect/Schema").
|
|
1470
|
+
readonly total: import("effect/Schema").Finite;
|
|
1422
1471
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1423
1472
|
readonly id: import("effect/Schema").String;
|
|
1424
1473
|
readonly email: import("effect/Schema").String;
|
|
@@ -1647,7 +1696,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1647
1696
|
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1648
1697
|
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1649
1698
|
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1650
|
-
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").
|
|
1699
|
+
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
1651
1700
|
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1652
1701
|
readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1653
1702
|
readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -2166,7 +2215,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2166
2215
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2167
2216
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2168
2217
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2169
|
-
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").
|
|
2218
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
2170
2219
|
readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2171
2220
|
readonly id: import("effect/Schema").String;
|
|
2172
2221
|
readonly name: import("effect/Schema").String;
|
|
@@ -2182,26 +2231,26 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2182
2231
|
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"dashboardStats", "GET", "/api/auth/admin/dashboard-stats", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2183
2232
|
readonly days: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"7">, import("effect/Schema").Literal<"14">, import("effect/Schema").Literal<"30">, import("effect/Schema").Literal<"90">]>>;
|
|
2184
2233
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2185
|
-
readonly totalUsers: import("effect/Schema").
|
|
2186
|
-
readonly totalOrganizations: import("effect/Schema").
|
|
2187
|
-
readonly totalProjects: import("effect/Schema").
|
|
2188
|
-
readonly totalDomains: import("effect/Schema").
|
|
2189
|
-
readonly totalApiKeys: import("effect/Schema").
|
|
2190
|
-
readonly totalOauthClients: import("effect/Schema").
|
|
2191
|
-
readonly dailyActiveUsers: import("effect/Schema").
|
|
2234
|
+
readonly totalUsers: import("effect/Schema").Finite;
|
|
2235
|
+
readonly totalOrganizations: import("effect/Schema").Finite;
|
|
2236
|
+
readonly totalProjects: import("effect/Schema").Finite;
|
|
2237
|
+
readonly totalDomains: import("effect/Schema").Finite;
|
|
2238
|
+
readonly totalApiKeys: import("effect/Schema").Finite;
|
|
2239
|
+
readonly totalOauthClients: import("effect/Schema").Finite;
|
|
2240
|
+
readonly dailyActiveUsers: import("effect/Schema").Finite;
|
|
2192
2241
|
readonly dailyActiveUsersByDay: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2193
2242
|
readonly date: import("effect/Schema").String;
|
|
2194
|
-
readonly count: import("effect/Schema").
|
|
2243
|
+
readonly count: import("effect/Schema").Finite;
|
|
2195
2244
|
}>>;
|
|
2196
2245
|
readonly signupsByDay: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2197
2246
|
readonly date: import("effect/Schema").String;
|
|
2198
|
-
readonly count: import("effect/Schema").
|
|
2247
|
+
readonly count: import("effect/Schema").Finite;
|
|
2199
2248
|
}>>;
|
|
2200
2249
|
readonly projectConnections: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2201
2250
|
readonly projectId: import("effect/Schema").String;
|
|
2202
2251
|
readonly projectName: import("effect/Schema").String;
|
|
2203
|
-
readonly users: import("effect/Schema").
|
|
2204
|
-
readonly organizations: import("effect/Schema").
|
|
2252
|
+
readonly users: import("effect/Schema").Finite;
|
|
2253
|
+
readonly organizations: import("effect/Schema").Finite;
|
|
2205
2254
|
}>>;
|
|
2206
2255
|
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteApiKey", "DELETE", "/api/auth/admin/api-keys/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2207
2256
|
readonly id: import("effect/Schema").String;
|
|
@@ -2214,10 +2263,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2214
2263
|
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2215
2264
|
readonly enabled: import("effect/Schema").Boolean;
|
|
2216
2265
|
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
2217
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2218
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2219
|
-
readonly requestCount: import("effect/Schema").
|
|
2220
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2266
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2267
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2268
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
2269
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2221
2270
|
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2222
2271
|
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2223
2272
|
readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -2251,7 +2300,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2251
2300
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2252
2301
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2253
2302
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2254
|
-
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").
|
|
2303
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
2255
2304
|
readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2256
2305
|
readonly id: import("effect/Schema").String;
|
|
2257
2306
|
readonly name: import("effect/Schema").String;
|
|
@@ -2275,10 +2324,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2275
2324
|
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2276
2325
|
readonly enabled: import("effect/Schema").Boolean;
|
|
2277
2326
|
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
2278
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2279
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2280
|
-
readonly requestCount: import("effect/Schema").
|
|
2281
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2327
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2328
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2329
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
2330
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2282
2331
|
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2283
2332
|
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2284
2333
|
readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -2296,10 +2345,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2296
2345
|
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2297
2346
|
readonly enabled: import("effect/Schema").Boolean;
|
|
2298
2347
|
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
2299
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2300
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2301
|
-
readonly requestCount: import("effect/Schema").
|
|
2302
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2348
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2349
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2350
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
2351
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2303
2352
|
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2304
2353
|
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2305
2354
|
readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -2323,10 +2372,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2323
2372
|
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2324
2373
|
readonly enabled: import("effect/Schema").Boolean;
|
|
2325
2374
|
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
2326
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2327
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2328
|
-
readonly requestCount: import("effect/Schema").
|
|
2329
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2375
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2376
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2377
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
2378
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2330
2379
|
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2331
2380
|
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2332
2381
|
readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -2416,7 +2465,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2416
2465
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2417
2466
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2418
2467
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2419
|
-
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").
|
|
2468
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
2420
2469
|
readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2421
2470
|
readonly id: import("effect/Schema").String;
|
|
2422
2471
|
readonly name: import("effect/Schema").String;
|
|
@@ -2536,10 +2585,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2536
2585
|
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2537
2586
|
readonly enabled: import("effect/Schema").Boolean;
|
|
2538
2587
|
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
2539
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2540
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2541
|
-
readonly requestCount: import("effect/Schema").
|
|
2542
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2588
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2589
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2590
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
2591
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2543
2592
|
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2544
2593
|
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2545
2594
|
readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -2552,8 +2601,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2552
2601
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2553
2602
|
readonly enabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2554
2603
|
readonly rateLimitEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2555
|
-
readonly rateLimitMax: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").
|
|
2556
|
-
readonly rateLimitTimeWindow: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").
|
|
2604
|
+
readonly rateLimitMax: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
2605
|
+
readonly rateLimitTimeWindow: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
2557
2606
|
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2558
2607
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2559
2608
|
readonly id: import("effect/Schema").String;
|
|
@@ -2564,10 +2613,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2564
2613
|
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2565
2614
|
readonly enabled: import("effect/Schema").Boolean;
|
|
2566
2615
|
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
2567
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2568
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2569
|
-
readonly requestCount: import("effect/Schema").
|
|
2570
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2616
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2617
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2618
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
2619
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2571
2620
|
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2572
2621
|
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2573
2622
|
readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -2612,7 +2661,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2612
2661
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2613
2662
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2614
2663
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2615
|
-
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").
|
|
2664
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
2616
2665
|
readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2617
2666
|
readonly id: import("effect/Schema").String;
|
|
2618
2667
|
readonly name: import("effect/Schema").String;
|
|
@@ -2628,7 +2677,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2628
2677
|
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2629
2678
|
readonly userId: import("effect/Schema").String;
|
|
2630
2679
|
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2631
|
-
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").
|
|
2680
|
+
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
2632
2681
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2633
2682
|
readonly user: import("effect/Schema").Struct<{
|
|
2634
2683
|
readonly id: import("effect/Schema").String;
|
|
@@ -2863,8 +2912,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2863
2912
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2864
2913
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2865
2914
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2866
|
-
readonly limit: import("effect/Schema").optional<import("effect/Schema").
|
|
2867
|
-
readonly offset: import("effect/Schema").optional<import("effect/Schema").
|
|
2915
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
2916
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
2868
2917
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2869
2918
|
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
2870
2919
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -2876,15 +2925,15 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2876
2925
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2877
2926
|
readonly referenceId: import("effect/Schema").String;
|
|
2878
2927
|
readonly configId: import("effect/Schema").String;
|
|
2879
|
-
readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2880
|
-
readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2928
|
+
readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2929
|
+
readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2881
2930
|
readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
2882
2931
|
readonly enabled: import("effect/Schema").Boolean;
|
|
2883
2932
|
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
2884
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2885
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2886
|
-
readonly requestCount: import("effect/Schema").
|
|
2887
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").
|
|
2933
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2934
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2935
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
2936
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
2888
2937
|
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
2889
2938
|
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
2890
2939
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -2893,9 +2942,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2893
2942
|
readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
|
|
2894
2943
|
readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2895
2944
|
}>>;
|
|
2896
|
-
readonly total: import("effect/Schema").
|
|
2897
|
-
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").
|
|
2898
|
-
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").
|
|
2945
|
+
readonly total: import("effect/Schema").Finite;
|
|
2946
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
2947
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
2899
2948
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2900
2949
|
readonly newPassword: import("effect/Schema").String;
|
|
2901
2950
|
readonly currentPassword: import("effect/Schema").String;
|
|
@@ -3181,7 +3230,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3181
3230
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3182
3231
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3183
3232
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3184
|
-
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").
|
|
3233
|
+
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
3185
3234
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
3186
3235
|
readonly id: import("effect/Schema").String;
|
|
3187
3236
|
readonly name: import("effect/Schema").String;
|
|
@@ -3267,7 +3316,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3267
3316
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3268
3317
|
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
3269
3318
|
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
3270
|
-
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").
|
|
3319
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
3271
3320
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3272
3321
|
readonly session: import("effect/Schema").Struct<{
|
|
3273
3322
|
readonly id: import("effect/Schema").String;
|
|
@@ -3378,8 +3427,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3378
3427
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3379
3428
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3380
3429
|
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3381
|
-
readonly limit: import("effect/Schema").optional<import("effect/Schema").
|
|
3382
|
-
readonly offset: import("effect/Schema").optional<import("effect/Schema").
|
|
3430
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
3431
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
3383
3432
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3384
3433
|
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
3385
3434
|
readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3433,7 +3482,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3433
3482
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
3434
3483
|
}>;
|
|
3435
3484
|
}>>;
|
|
3436
|
-
readonly total: import("effect/Schema").
|
|
3485
|
+
readonly total: import("effect/Schema").Finite;
|
|
3437
3486
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3438
3487
|
readonly id: import("effect/Schema").String;
|
|
3439
3488
|
readonly email: import("effect/Schema").String;
|
|
@@ -3662,7 +3711,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3662
3711
|
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3663
3712
|
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3664
3713
|
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3665
|
-
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").
|
|
3714
|
+
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
3666
3715
|
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
3667
3716
|
readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
3668
3717
|
readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
|
package/dist/auth/api.group.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from "./schema.js";
|
|
|
5
5
|
export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndpoint.HttpApiEndpoint<"adminBanUser", "POST", "/admin/ban-user", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6
6
|
readonly userId: Schema.String;
|
|
7
7
|
readonly banReason: Schema.optional<Schema.String>;
|
|
8
|
-
readonly banExpiresIn: Schema.optional<Schema.
|
|
8
|
+
readonly banExpiresIn: Schema.optional<Schema.Finite>;
|
|
9
9
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
10
10
|
readonly user: Schema.Struct<{
|
|
11
11
|
readonly id: Schema.String;
|
|
@@ -240,8 +240,8 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
240
240
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"apiKeyList", "GET", "/api-key/list", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
241
241
|
readonly configId: Schema.optional<Schema.String>;
|
|
242
242
|
readonly organizationId: Schema.optional<Schema.String>;
|
|
243
|
-
readonly limit: Schema.optional<Schema.
|
|
244
|
-
readonly offset: Schema.optional<Schema.
|
|
243
|
+
readonly limit: Schema.optional<Schema.FiniteFromString>;
|
|
244
|
+
readonly offset: Schema.optional<Schema.FiniteFromString>;
|
|
245
245
|
readonly sortBy: Schema.optional<Schema.String>;
|
|
246
246
|
readonly sortDirection: Schema.optional<Schema.Literals<readonly ["asc", "desc"]>>;
|
|
247
247
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -253,15 +253,15 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
253
253
|
readonly userId: Schema.optional<Schema.String>;
|
|
254
254
|
readonly referenceId: Schema.String;
|
|
255
255
|
readonly configId: Schema.String;
|
|
256
|
-
readonly refillInterval: Schema.NullOr<Schema.
|
|
257
|
-
readonly refillAmount: Schema.NullOr<Schema.
|
|
256
|
+
readonly refillInterval: Schema.NullOr<Schema.Finite>;
|
|
257
|
+
readonly refillAmount: Schema.NullOr<Schema.Finite>;
|
|
258
258
|
readonly lastRefillAt: Schema.NullOr<Schema.DateFromString>;
|
|
259
259
|
readonly enabled: Schema.Boolean;
|
|
260
260
|
readonly rateLimitEnabled: Schema.Boolean;
|
|
261
|
-
readonly rateLimitTimeWindow: Schema.NullOr<Schema.
|
|
262
|
-
readonly rateLimitMax: Schema.NullOr<Schema.
|
|
263
|
-
readonly requestCount: Schema.
|
|
264
|
-
readonly remaining: Schema.NullOr<Schema.
|
|
261
|
+
readonly rateLimitTimeWindow: Schema.NullOr<Schema.Finite>;
|
|
262
|
+
readonly rateLimitMax: Schema.NullOr<Schema.Finite>;
|
|
263
|
+
readonly requestCount: Schema.Finite;
|
|
264
|
+
readonly remaining: Schema.NullOr<Schema.Finite>;
|
|
265
265
|
readonly lastRequest: Schema.NullOr<Schema.DateFromString>;
|
|
266
266
|
readonly expiresAt: Schema.NullOr<Schema.DateFromString>;
|
|
267
267
|
readonly createdAt: Schema.DateFromString;
|
|
@@ -270,9 +270,9 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
270
270
|
readonly permissions: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>>;
|
|
271
271
|
readonly referrers: Schema.optional<Schema.NullOr<Schema.$Array<Schema.String>>>;
|
|
272
272
|
}>>;
|
|
273
|
-
readonly total: Schema.
|
|
274
|
-
readonly limit: Schema.optional<Schema.NullOr<Schema.
|
|
275
|
-
readonly offset: Schema.optional<Schema.NullOr<Schema.
|
|
273
|
+
readonly total: Schema.Finite;
|
|
274
|
+
readonly limit: Schema.optional<Schema.NullOr<Schema.Finite>>;
|
|
275
|
+
readonly offset: Schema.optional<Schema.NullOr<Schema.Finite>>;
|
|
276
276
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"changePassword", "POST", "/change-password", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
277
277
|
readonly newPassword: Schema.String;
|
|
278
278
|
readonly currentPassword: Schema.String;
|
|
@@ -558,7 +558,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
558
558
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationGetFull", "GET", "/organization/get-full-organization", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
559
559
|
readonly organizationId: Schema.optional<Schema.String>;
|
|
560
560
|
readonly organizationSlug: Schema.optional<Schema.String>;
|
|
561
|
-
readonly membersLimit: Schema.optional<Schema.
|
|
561
|
+
readonly membersLimit: Schema.optional<Schema.FiniteFromString>;
|
|
562
562
|
}>>, never, never, Schema.toCodecJson<Schema.NullOr<Schema.Struct<{
|
|
563
563
|
readonly id: Schema.String;
|
|
564
564
|
readonly name: Schema.String;
|
|
@@ -644,7 +644,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
644
644
|
readonly organizationId: Schema.NonEmptyString;
|
|
645
645
|
readonly actorUserId: Schema.NonEmptyString;
|
|
646
646
|
readonly targetUserId: Schema.NonEmptyString;
|
|
647
|
-
readonly expiresInSeconds: Schema.optional<Schema.
|
|
647
|
+
readonly expiresInSeconds: Schema.optional<Schema.Finite>;
|
|
648
648
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
649
649
|
readonly session: Schema.Struct<{
|
|
650
650
|
readonly id: Schema.String;
|
|
@@ -755,8 +755,8 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
755
755
|
readonly expiresAt: Schema.DateFromString;
|
|
756
756
|
readonly createdAt: Schema.optional<Schema.DateFromString>;
|
|
757
757
|
}>>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationListMembers", "GET", "/organization/list-members", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
758
|
-
readonly limit: Schema.optional<Schema.
|
|
759
|
-
readonly offset: Schema.optional<Schema.
|
|
758
|
+
readonly limit: Schema.optional<Schema.FiniteFromString>;
|
|
759
|
+
readonly offset: Schema.optional<Schema.FiniteFromString>;
|
|
760
760
|
readonly sortBy: Schema.optional<Schema.String>;
|
|
761
761
|
readonly sortDirection: Schema.optional<Schema.Literals<readonly ["asc", "desc"]>>;
|
|
762
762
|
readonly filterField: Schema.optional<Schema.String>;
|
|
@@ -810,7 +810,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
810
810
|
}>, Schema.Unknown, never, never>>>;
|
|
811
811
|
}>;
|
|
812
812
|
}>>;
|
|
813
|
-
readonly total: Schema.
|
|
813
|
+
readonly total: Schema.Finite;
|
|
814
814
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationListUserInvitations", "GET", "/organization/list-user-invitations", never, Schema.toCodecStringTree<Schema.Struct<{}>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
815
815
|
readonly id: Schema.String;
|
|
816
816
|
readonly email: Schema.String;
|
|
@@ -1039,7 +1039,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1039
1039
|
readonly nonce: Schema.optional<Schema.String>;
|
|
1040
1040
|
readonly accessToken: Schema.optional<Schema.String>;
|
|
1041
1041
|
readonly refreshToken: Schema.optional<Schema.String>;
|
|
1042
|
-
readonly expiresAt: Schema.optional<Schema.
|
|
1042
|
+
readonly expiresAt: Schema.optional<Schema.Finite>;
|
|
1043
1043
|
readonly user: Schema.optional<Schema.Struct<{
|
|
1044
1044
|
readonly name: Schema.optional<Schema.Struct<{
|
|
1045
1045
|
readonly firstName: Schema.optional<Schema.String>;
|