@veruna/api-contracts 1.0.91 → 1.0.93
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/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/auth/commands/signin.command.d.ts +0 -1
- package/build/v1/auth/commands/signup.command.d.ts +0 -1
- package/build/v1/auth/schemas/auth-response.schema.d.ts +0 -1
- package/build/v1/users/commands/update-profile.command.d.ts +0 -1
- package/build/v1/users/queries/get-current-user.query.d.ts +0 -1
- package/build/v1/users/queries/get-setup-status.query.d.ts +5 -0
- package/build/v1/users/schemas/index.d.ts +0 -1
- package/build/v1/users/schemas/index.js +0 -1
- package/build/v1/users/schemas/index.js.map +1 -1
- package/build/v1/users/schemas/response-unions.schema.d.ts +0 -2
- package/build/v1/users/schemas/setup-status-response.schema.d.ts +5 -0
- package/build/v1/users/schemas/setup-status-response.schema.js +2 -0
- package/build/v1/users/schemas/setup-status-response.schema.js.map +1 -1
- package/build/v1/users/schemas/user-response.schema.d.ts +0 -2
- package/build/v1/users/schemas/user-response.schema.js +0 -2
- package/build/v1/users/schemas/user-response.schema.js.map +1 -1
- package/build/v1/users/schemas/user-status.enum.d.ts +3 -3
- package/build/v1/users/schemas/user-status.enum.js +2 -2
- package/build/v1/users/schemas/user-status.enum.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ export declare namespace AuthSignInCommand {
|
|
|
11
11
|
email: z.ZodNullable<z.ZodString>;
|
|
12
12
|
name: z.ZodString;
|
|
13
13
|
role: z.ZodString;
|
|
14
|
-
registerType: z.ZodEnum<typeof import("../..").RegisterType>;
|
|
15
14
|
status: z.ZodEnum<typeof import("../..").UserStatus>;
|
|
16
15
|
createdAt: z.ZodString;
|
|
17
16
|
}, z.core.$strip>;
|
|
@@ -12,7 +12,6 @@ export declare namespace AuthSignupCommand {
|
|
|
12
12
|
email: z.ZodNullable<z.ZodString>;
|
|
13
13
|
name: z.ZodString;
|
|
14
14
|
role: z.ZodString;
|
|
15
|
-
registerType: z.ZodEnum<typeof import("../..").RegisterType>;
|
|
16
15
|
status: z.ZodEnum<typeof import("../..").UserStatus>;
|
|
17
16
|
createdAt: z.ZodString;
|
|
18
17
|
}, z.core.$strip>;
|
|
@@ -5,7 +5,6 @@ export declare const AuthResponseSchema: z.ZodObject<{
|
|
|
5
5
|
email: z.ZodNullable<z.ZodString>;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
role: z.ZodString;
|
|
8
|
-
registerType: z.ZodEnum<typeof import("../..").RegisterType>;
|
|
9
8
|
status: z.ZodEnum<typeof import("../..").UserStatus>;
|
|
10
9
|
createdAt: z.ZodString;
|
|
11
10
|
}, z.core.$strip>;
|
|
@@ -9,7 +9,6 @@ export declare namespace UserUpdateProfileCommand {
|
|
|
9
9
|
email: z.ZodNullable<z.ZodString>;
|
|
10
10
|
name: z.ZodString;
|
|
11
11
|
role: z.ZodString;
|
|
12
|
-
registerType: z.ZodEnum<typeof import("..").RegisterType>;
|
|
13
12
|
status: z.ZodEnum<typeof import("..").UserStatus>;
|
|
14
13
|
createdAt: z.ZodString;
|
|
15
14
|
}, z.core.$strip>;
|
|
@@ -7,7 +7,6 @@ export declare namespace UserGetCurrentUserQuery {
|
|
|
7
7
|
email: z.ZodNullable<z.ZodString>;
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
role: z.ZodString;
|
|
10
|
-
registerType: z.ZodEnum<typeof import("..").RegisterType>;
|
|
11
10
|
status: z.ZodEnum<typeof import("..").UserStatus>;
|
|
12
11
|
createdAt: z.ZodString;
|
|
13
12
|
}, z.core.$strip>;
|
|
@@ -6,6 +6,7 @@ export declare namespace UserGetSetupStatusQuery {
|
|
|
6
6
|
status: z.ZodEnum<typeof import("..").UserStatus>;
|
|
7
7
|
hasEmail: z.ZodBoolean;
|
|
8
8
|
hasPassword: z.ZodBoolean;
|
|
9
|
+
isEmailVerified: z.ZodBoolean;
|
|
9
10
|
canSetEmail: z.ZodObject<{
|
|
10
11
|
allowed: z.ZodBoolean;
|
|
11
12
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -16,6 +17,10 @@ export declare namespace UserGetSetupStatusQuery {
|
|
|
16
17
|
}, z.core.$strip>;
|
|
17
18
|
needsEmailVerification: z.ZodBoolean;
|
|
18
19
|
canResendVerificationEmail: z.ZodBoolean;
|
|
20
|
+
verificationHint: z.ZodNullable<z.ZodEnum<{
|
|
21
|
+
CONFIRM_EMAIL: "CONFIRM_EMAIL";
|
|
22
|
+
CONNECT_OAUTH: "CONNECT_OAUTH";
|
|
23
|
+
}>>;
|
|
19
24
|
pendingEmail: z.ZodNullable<z.ZodString>;
|
|
20
25
|
}, z.core.$strip>;
|
|
21
26
|
const URL: "/api/v1/users/me/setup/status";
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./register-type.enum"), exports);
|
|
18
17
|
__exportStar(require("./user-status.enum"), exports);
|
|
19
18
|
__exportStar(require("./user-response.schema"), exports);
|
|
20
19
|
__exportStar(require("./update-profile-request.schema"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,yDAAuC;AACvC,kEAAgD;AAChD,mEAAiD;AACjD,kEAAgD;AAChD,2DAAyC;AACzC,sEAAoD;AACpD,wEAAsD;AACtD,yEAAuD;AACvD,4EAA0D;AAC1D,kEAAgD;AAChD,mEAAiD;AACjD,2EAAyD;AACzD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,kEAAgD;AAChD,0EAAwD;AACxD,mEAAiD"}
|
|
@@ -4,7 +4,6 @@ export declare const UpdateProfileResponseSchema: z.ZodObject<{
|
|
|
4
4
|
email: z.ZodNullable<z.ZodString>;
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
role: z.ZodString;
|
|
7
|
-
registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
|
|
8
7
|
status: z.ZodEnum<typeof import("./user-status.enum").UserStatus>;
|
|
9
8
|
createdAt: z.ZodString;
|
|
10
9
|
}, z.core.$strip>;
|
|
@@ -19,7 +18,6 @@ export declare const GetCurrentUserResponseSchema: z.ZodObject<{
|
|
|
19
18
|
email: z.ZodNullable<z.ZodString>;
|
|
20
19
|
name: z.ZodString;
|
|
21
20
|
role: z.ZodString;
|
|
22
|
-
registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
|
|
23
21
|
status: z.ZodEnum<typeof import("./user-status.enum").UserStatus>;
|
|
24
22
|
createdAt: z.ZodString;
|
|
25
23
|
}, z.core.$strip>;
|
|
@@ -4,6 +4,7 @@ export declare const SetupStatusResponseSchema: z.ZodObject<{
|
|
|
4
4
|
status: z.ZodEnum<typeof UserStatus>;
|
|
5
5
|
hasEmail: z.ZodBoolean;
|
|
6
6
|
hasPassword: z.ZodBoolean;
|
|
7
|
+
isEmailVerified: z.ZodBoolean;
|
|
7
8
|
canSetEmail: z.ZodObject<{
|
|
8
9
|
allowed: z.ZodBoolean;
|
|
9
10
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -14,5 +15,9 @@ export declare const SetupStatusResponseSchema: z.ZodObject<{
|
|
|
14
15
|
}, z.core.$strip>;
|
|
15
16
|
needsEmailVerification: z.ZodBoolean;
|
|
16
17
|
canResendVerificationEmail: z.ZodBoolean;
|
|
18
|
+
verificationHint: z.ZodNullable<z.ZodEnum<{
|
|
19
|
+
CONFIRM_EMAIL: "CONFIRM_EMAIL";
|
|
20
|
+
CONNECT_OAUTH: "CONNECT_OAUTH";
|
|
21
|
+
}>>;
|
|
17
22
|
pendingEmail: z.ZodNullable<z.ZodString>;
|
|
18
23
|
}, z.core.$strip>;
|
|
@@ -12,10 +12,12 @@ exports.SetupStatusResponseSchema = zod_1.z.object({
|
|
|
12
12
|
status: zod_1.z.nativeEnum(user_status_enum_1.UserStatus),
|
|
13
13
|
hasEmail: zod_1.z.boolean(),
|
|
14
14
|
hasPassword: zod_1.z.boolean(),
|
|
15
|
+
isEmailVerified: zod_1.z.boolean(),
|
|
15
16
|
canSetEmail: SetupActionSchema,
|
|
16
17
|
canSetPassword: SetupActionSchema,
|
|
17
18
|
needsEmailVerification: zod_1.z.boolean(),
|
|
18
19
|
canResendVerificationEmail: zod_1.z.boolean(),
|
|
20
|
+
verificationHint: zod_1.z.enum(['CONFIRM_EMAIL', 'CONNECT_OAUTH']).nullable(),
|
|
19
21
|
pendingEmail: zod_1.z.string().regex(regex_1.EMAIL_REGEX).nullable(),
|
|
20
22
|
});
|
|
21
23
|
//# sourceMappingURL=setup-status-response.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-status-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/setup-status-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yDAAgD;AAChD,iDAAoD;AAMpD,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAU,CAAC;IAChC,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;IACxB,WAAW,EAAE,iBAAiB;IAC9B,cAAc,EAAE,iBAAiB;IACjC,sBAAsB,EAAE,OAAC,CAAC,OAAO,EAAE;IACnC,0BAA0B,EAAE,OAAC,CAAC,OAAO,EAAE;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAW,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"setup-status-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/setup-status-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yDAAgD;AAChD,iDAAoD;AAMpD,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAU,CAAC;IAChC,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;IACxB,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE;IAC5B,WAAW,EAAE,iBAAiB;IAC9B,cAAc,EAAE,iBAAiB;IACjC,sBAAsB,EAAE,OAAC,CAAC,OAAO,EAAE;IACnC,0BAA0B,EAAE,OAAC,CAAC,OAAO,EAAE;IACvC,gBAAgB,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvE,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAW,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { RegisterType } from './register-type.enum';
|
|
3
2
|
import { UserStatus } from './user-status.enum';
|
|
4
3
|
export declare const UserResponseSchema: z.ZodObject<{
|
|
5
4
|
uuid: z.ZodString;
|
|
6
5
|
email: z.ZodNullable<z.ZodString>;
|
|
7
6
|
name: z.ZodString;
|
|
8
7
|
role: z.ZodString;
|
|
9
|
-
registerType: z.ZodEnum<typeof RegisterType>;
|
|
10
8
|
status: z.ZodEnum<typeof UserStatus>;
|
|
11
9
|
createdAt: z.ZodString;
|
|
12
10
|
}, z.core.$strip>;
|
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const regex_1 = require("../../../shared/regex");
|
|
6
|
-
const register_type_enum_1 = require("./register-type.enum");
|
|
7
6
|
const user_status_enum_1 = require("./user-status.enum");
|
|
8
7
|
exports.UserResponseSchema = zod_1.z.object({
|
|
9
8
|
uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
10
9
|
email: zod_1.z.string().regex(regex_1.EMAIL_REGEX).nullable(),
|
|
11
10
|
name: zod_1.z.string(),
|
|
12
11
|
role: zod_1.z.string(),
|
|
13
|
-
registerType: zod_1.z.nativeEnum(register_type_enum_1.RegisterType),
|
|
14
12
|
status: zod_1.z.nativeEnum(user_status_enum_1.UserStatus),
|
|
15
13
|
createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
|
|
16
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/user-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"user-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/user-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgF;AAChF,yDAAgD;AAKnC,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAW,CAAC,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAU,CAAC;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC;CAC9C,CAAC,CAAC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserStatus = void 0;
|
|
4
4
|
var UserStatus;
|
|
5
5
|
(function (UserStatus) {
|
|
6
|
-
UserStatus["
|
|
7
|
-
UserStatus["BANNED"] = "banned";
|
|
6
|
+
UserStatus["ACTIVE"] = "active";
|
|
8
7
|
UserStatus["UNVERIFIED"] = "unverified";
|
|
8
|
+
UserStatus["BANNED"] = "banned";
|
|
9
9
|
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
10
10
|
//# sourceMappingURL=user-status.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-status.enum.js","sourceRoot":"","sources":["../../../../v1/users/schemas/user-status.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB
|
|
1
|
+
{"version":3,"file":"user-status.enum.js","sourceRoot":"","sources":["../../../../v1/users/schemas/user-status.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,uCAAyB,CAAA;IACzB,+BAAiB,CAAA;AACrB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|