@agentrix/shared 2.16.1 → 2.18.0
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/{errors-BN4dUGJQ.d.cts → errors-BKQbfNAM.d.cts} +511 -2
- package/dist/index.cjs +57 -0
- package/dist/index.d.cts +94 -451
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -79,6 +79,36 @@ const DevCreateUserResponseSchema = zod.z.object({
|
|
|
79
79
|
token: zod.z.string(),
|
|
80
80
|
user: UserBasicInfoSchema
|
|
81
81
|
});
|
|
82
|
+
const EmailLoginCodeRequestSchema = zod.z.object({
|
|
83
|
+
email: zod.z.string().trim().email()
|
|
84
|
+
});
|
|
85
|
+
const EmailLoginCodeResponseSchema = zod.z.object({
|
|
86
|
+
success: zod.z.literal(true),
|
|
87
|
+
expiresIn: zod.z.number(),
|
|
88
|
+
resendAvailableIn: zod.z.number().optional()
|
|
89
|
+
});
|
|
90
|
+
const EmailLoginVerifyRequestSchema = zod.z.object({
|
|
91
|
+
email: zod.z.string().trim().email(),
|
|
92
|
+
code: zod.z.string().regex(/^\d{6}$/)
|
|
93
|
+
});
|
|
94
|
+
const EmailLoginVerifyResponseSchema = zod.z.object({
|
|
95
|
+
token: zod.z.string(),
|
|
96
|
+
user: UserWithOAuthAccountsSchema
|
|
97
|
+
});
|
|
98
|
+
const EmailPasswordLoginRequestSchema = zod.z.object({
|
|
99
|
+
email: zod.z.string().trim().email()
|
|
100
|
+
});
|
|
101
|
+
const EmailPasswordLoginResponseSchema = zod.z.object({
|
|
102
|
+
token: zod.z.string(),
|
|
103
|
+
user: UserWithOAuthAccountsSchema.extend({
|
|
104
|
+
encryptedSecret: zod.z.string(),
|
|
105
|
+
secretSalt: zod.z.string()
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
const ProfileEmailCodeRequestSchema = zod.z.object({
|
|
109
|
+
email: zod.z.string().trim().email()
|
|
110
|
+
});
|
|
111
|
+
const ProfileEmailCodeResponseSchema = EmailLoginCodeResponseSchema;
|
|
82
112
|
const UserProfileResponseSchema = zod.z.object({
|
|
83
113
|
user: UserBasicInfoSchema.extend({
|
|
84
114
|
encryptedSecret: zod.z.string().nullable(),
|
|
@@ -94,6 +124,7 @@ const UserProfileResponseSchema = zod.z.object({
|
|
|
94
124
|
const UpdateUserProfileRequestSchema = zod.z.object({
|
|
95
125
|
username: zod.z.string().min(1).optional(),
|
|
96
126
|
email: zod.z.string().trim().email().optional(),
|
|
127
|
+
emailVerificationCode: zod.z.string().regex(/^\d{6}$/).optional(),
|
|
97
128
|
avatar: zod.z.string().nullable().optional()
|
|
98
129
|
});
|
|
99
130
|
const UpdateUserProfileResponseSchema = UserProfileResponseSchema;
|
|
@@ -1918,6 +1949,20 @@ const HiveInstallResponseSchema = zod.z.object({
|
|
|
1918
1949
|
status: zod.z.string(),
|
|
1919
1950
|
draftAgentId: zod.z.string().nullable().optional()
|
|
1920
1951
|
});
|
|
1952
|
+
const RecordHiveInstallRequestSchema = zod.z.object({
|
|
1953
|
+
agentDir: zod.z.string().min(1),
|
|
1954
|
+
name: zod.z.string().min(1).optional(),
|
|
1955
|
+
machineId: zod.z.string().optional(),
|
|
1956
|
+
cloudId: zod.z.string().optional(),
|
|
1957
|
+
installedVersion: zod.z.string().optional()
|
|
1958
|
+
}).refine(
|
|
1959
|
+
(data) => !(data.machineId && data.cloudId),
|
|
1960
|
+
{ message: "Only one of machineId or cloudId may be provided" }
|
|
1961
|
+
);
|
|
1962
|
+
const RecordHiveInstallResponseSchema = zod.z.object({
|
|
1963
|
+
install: HiveInstallSchema,
|
|
1964
|
+
draftAgentId: zod.z.string().nullable().optional()
|
|
1965
|
+
});
|
|
1921
1966
|
const HiveReviewSchema = zod.z.object({
|
|
1922
1967
|
id: IdSchema,
|
|
1923
1968
|
hiveListingId: zod.z.string(),
|
|
@@ -2830,6 +2875,7 @@ const DeployAgentCompleteEventSchema = EventBaseSchema.extend({
|
|
|
2830
2875
|
});
|
|
2831
2876
|
const HivePublishEventSchema = EventBaseSchema.extend({
|
|
2832
2877
|
taskId: zod.z.string(),
|
|
2878
|
+
listingId: zod.z.string(),
|
|
2833
2879
|
userId: zod.z.string(),
|
|
2834
2880
|
machineId: zod.z.string().optional(),
|
|
2835
2881
|
cloudId: zod.z.string().optional(),
|
|
@@ -2849,6 +2895,7 @@ const HivePublishEventSchema = EventBaseSchema.extend({
|
|
|
2849
2895
|
);
|
|
2850
2896
|
const HivePublishCompleteEventSchema = EventBaseSchema.extend({
|
|
2851
2897
|
taskId: zod.z.string(),
|
|
2898
|
+
listingId: zod.z.string().optional(),
|
|
2852
2899
|
success: zod.z.boolean(),
|
|
2853
2900
|
error: zod.z.string().optional(),
|
|
2854
2901
|
gitCommitHash: zod.z.string().optional(),
|
|
@@ -3724,6 +3771,12 @@ exports.DisplayConfigSchema = DisplayConfigSchema;
|
|
|
3724
3771
|
exports.DraftAgentConfigSchema = DraftAgentConfigSchema;
|
|
3725
3772
|
exports.DraftAgentSchema = DraftAgentSchema;
|
|
3726
3773
|
exports.ENTRY_FILE_PATTERNS = ENTRY_FILE_PATTERNS;
|
|
3774
|
+
exports.EmailLoginCodeRequestSchema = EmailLoginCodeRequestSchema;
|
|
3775
|
+
exports.EmailLoginCodeResponseSchema = EmailLoginCodeResponseSchema;
|
|
3776
|
+
exports.EmailLoginVerifyRequestSchema = EmailLoginVerifyRequestSchema;
|
|
3777
|
+
exports.EmailLoginVerifyResponseSchema = EmailLoginVerifyResponseSchema;
|
|
3778
|
+
exports.EmailPasswordLoginRequestSchema = EmailPasswordLoginRequestSchema;
|
|
3779
|
+
exports.EmailPasswordLoginResponseSchema = EmailPasswordLoginResponseSchema;
|
|
3727
3780
|
exports.EnsureIssueRootTaskRequestSchema = EnsureIssueRootTaskRequestSchema;
|
|
3728
3781
|
exports.EnsureIssueRootTaskResponseSchema = EnsureIssueRootTaskResponseSchema;
|
|
3729
3782
|
exports.EnsureRepoChatRequestSchema = EnsureRepoChatRequestSchema;
|
|
@@ -3857,6 +3910,8 @@ exports.PrivateCloudEntitlementSchema = PrivateCloudEntitlementSchema;
|
|
|
3857
3910
|
exports.PrivateCloudInviteSchema = PrivateCloudInviteSchema;
|
|
3858
3911
|
exports.PrivateCloudMemberSchema = PrivateCloudMemberSchema;
|
|
3859
3912
|
exports.PrivateCloudSummarySchema = PrivateCloudSummarySchema;
|
|
3913
|
+
exports.ProfileEmailCodeRequestSchema = ProfileEmailCodeRequestSchema;
|
|
3914
|
+
exports.ProfileEmailCodeResponseSchema = ProfileEmailCodeResponseSchema;
|
|
3860
3915
|
exports.ProjectDirectoryResponseSchema = ProjectDirectoryResponseSchema;
|
|
3861
3916
|
exports.ProjectEntrySchema = ProjectEntrySchema;
|
|
3862
3917
|
exports.PublicResourceItemSchema = PublicResourceItemSchema;
|
|
@@ -3869,6 +3924,8 @@ exports.RELEVANT_DEPENDENCIES = RELEVANT_DEPENDENCIES;
|
|
|
3869
3924
|
exports.RTC_CHUNK_HEADER_SIZE = RTC_CHUNK_HEADER_SIZE;
|
|
3870
3925
|
exports.RecentTaskSummarySchema = RecentTaskSummarySchema;
|
|
3871
3926
|
exports.RechargeResponseSchema = RechargeResponseSchema;
|
|
3927
|
+
exports.RecordHiveInstallRequestSchema = RecordHiveInstallRequestSchema;
|
|
3928
|
+
exports.RecordHiveInstallResponseSchema = RecordHiveInstallResponseSchema;
|
|
3872
3929
|
exports.RegisterCompanionRequestSchema = RegisterCompanionRequestSchema;
|
|
3873
3930
|
exports.RegisterCompanionResponseSchema = RegisterCompanionResponseSchema;
|
|
3874
3931
|
exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
|