@agentrix/shared 2.16.0 → 2.17.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/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;
@@ -3724,6 +3755,12 @@ exports.DisplayConfigSchema = DisplayConfigSchema;
3724
3755
  exports.DraftAgentConfigSchema = DraftAgentConfigSchema;
3725
3756
  exports.DraftAgentSchema = DraftAgentSchema;
3726
3757
  exports.ENTRY_FILE_PATTERNS = ENTRY_FILE_PATTERNS;
3758
+ exports.EmailLoginCodeRequestSchema = EmailLoginCodeRequestSchema;
3759
+ exports.EmailLoginCodeResponseSchema = EmailLoginCodeResponseSchema;
3760
+ exports.EmailLoginVerifyRequestSchema = EmailLoginVerifyRequestSchema;
3761
+ exports.EmailLoginVerifyResponseSchema = EmailLoginVerifyResponseSchema;
3762
+ exports.EmailPasswordLoginRequestSchema = EmailPasswordLoginRequestSchema;
3763
+ exports.EmailPasswordLoginResponseSchema = EmailPasswordLoginResponseSchema;
3727
3764
  exports.EnsureIssueRootTaskRequestSchema = EnsureIssueRootTaskRequestSchema;
3728
3765
  exports.EnsureIssueRootTaskResponseSchema = EnsureIssueRootTaskResponseSchema;
3729
3766
  exports.EnsureRepoChatRequestSchema = EnsureRepoChatRequestSchema;
@@ -3857,6 +3894,8 @@ exports.PrivateCloudEntitlementSchema = PrivateCloudEntitlementSchema;
3857
3894
  exports.PrivateCloudInviteSchema = PrivateCloudInviteSchema;
3858
3895
  exports.PrivateCloudMemberSchema = PrivateCloudMemberSchema;
3859
3896
  exports.PrivateCloudSummarySchema = PrivateCloudSummarySchema;
3897
+ exports.ProfileEmailCodeRequestSchema = ProfileEmailCodeRequestSchema;
3898
+ exports.ProfileEmailCodeResponseSchema = ProfileEmailCodeResponseSchema;
3860
3899
  exports.ProjectDirectoryResponseSchema = ProjectDirectoryResponseSchema;
3861
3900
  exports.ProjectEntrySchema = ProjectEntrySchema;
3862
3901
  exports.PublicResourceItemSchema = PublicResourceItemSchema;
package/dist/index.d.cts CHANGED
@@ -134,6 +134,95 @@ declare const DevCreateUserResponseSchema: z.ZodObject<{
134
134
  }, z.core.$strip>;
135
135
  }, z.core.$strip>;
136
136
  type DevCreateUserResponse = z.infer<typeof DevCreateUserResponseSchema>;
137
+ /**
138
+ * POST /v1/auth/email/code - Request a passwordless login code.
139
+ */
140
+ declare const EmailLoginCodeRequestSchema: z.ZodObject<{
141
+ email: z.ZodString;
142
+ }, z.core.$strip>;
143
+ type EmailLoginCodeRequest = z.infer<typeof EmailLoginCodeRequestSchema>;
144
+ /**
145
+ * POST /v1/auth/email/code - Response schema.
146
+ */
147
+ declare const EmailLoginCodeResponseSchema: z.ZodObject<{
148
+ success: z.ZodLiteral<true>;
149
+ expiresIn: z.ZodNumber;
150
+ resendAvailableIn: z.ZodOptional<z.ZodNumber>;
151
+ }, z.core.$strip>;
152
+ type EmailLoginCodeResponse = z.infer<typeof EmailLoginCodeResponseSchema>;
153
+ /**
154
+ * POST /v1/auth/email/verify - Verify login code and issue JWT.
155
+ */
156
+ declare const EmailLoginVerifyRequestSchema: z.ZodObject<{
157
+ email: z.ZodString;
158
+ code: z.ZodString;
159
+ }, z.core.$strip>;
160
+ type EmailLoginVerifyRequest = z.infer<typeof EmailLoginVerifyRequestSchema>;
161
+ /**
162
+ * POST /v1/auth/email/verify - Response schema.
163
+ */
164
+ declare const EmailLoginVerifyResponseSchema: z.ZodObject<{
165
+ token: z.ZodString;
166
+ user: z.ZodObject<{
167
+ id: z.ZodString;
168
+ username: z.ZodString;
169
+ email: z.ZodNullable<z.ZodString>;
170
+ avatar: z.ZodNullable<z.ZodString>;
171
+ role: z.ZodOptional<z.ZodString>;
172
+ oauthAccounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
173
+ provider: z.ZodString;
174
+ username: z.ZodString;
175
+ email: z.ZodNullable<z.ZodString>;
176
+ avatarUrl: z.ZodString;
177
+ }, z.core.$strip>>>;
178
+ }, z.core.$strip>;
179
+ }, z.core.$strip>;
180
+ type EmailLoginVerifyResponse = z.infer<typeof EmailLoginVerifyResponseSchema>;
181
+ /**
182
+ * POST /v1/auth/email/password-login - Login with email and locally verified password.
183
+ */
184
+ declare const EmailPasswordLoginRequestSchema: z.ZodObject<{
185
+ email: z.ZodString;
186
+ }, z.core.$strip>;
187
+ type EmailPasswordLoginRequest = z.infer<typeof EmailPasswordLoginRequestSchema>;
188
+ /**
189
+ * POST /v1/auth/email/password-login - Response schema.
190
+ */
191
+ declare const EmailPasswordLoginResponseSchema: z.ZodObject<{
192
+ token: z.ZodString;
193
+ user: z.ZodObject<{
194
+ id: z.ZodString;
195
+ username: z.ZodString;
196
+ email: z.ZodNullable<z.ZodString>;
197
+ avatar: z.ZodNullable<z.ZodString>;
198
+ role: z.ZodOptional<z.ZodString>;
199
+ oauthAccounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
200
+ provider: z.ZodString;
201
+ username: z.ZodString;
202
+ email: z.ZodNullable<z.ZodString>;
203
+ avatarUrl: z.ZodString;
204
+ }, z.core.$strip>>>;
205
+ encryptedSecret: z.ZodString;
206
+ secretSalt: z.ZodString;
207
+ }, z.core.$strip>;
208
+ }, z.core.$strip>;
209
+ type EmailPasswordLoginResponse = z.infer<typeof EmailPasswordLoginResponseSchema>;
210
+ /**
211
+ * POST /v1/auth/email/profile-code - Request a code before changing profile email.
212
+ */
213
+ declare const ProfileEmailCodeRequestSchema: z.ZodObject<{
214
+ email: z.ZodString;
215
+ }, z.core.$strip>;
216
+ type ProfileEmailCodeRequest = z.infer<typeof ProfileEmailCodeRequestSchema>;
217
+ /**
218
+ * POST /v1/auth/email/profile-code - Response schema.
219
+ */
220
+ declare const ProfileEmailCodeResponseSchema: z.ZodObject<{
221
+ success: z.ZodLiteral<true>;
222
+ expiresIn: z.ZodNumber;
223
+ resendAvailableIn: z.ZodOptional<z.ZodNumber>;
224
+ }, z.core.$strip>;
225
+ type ProfileEmailCodeResponse = z.infer<typeof ProfileEmailCodeResponseSchema>;
137
226
  /**
138
227
  * GET /v1/auth/me - Response schema
139
228
  */
@@ -164,6 +253,7 @@ type UserProfileResponse = z.infer<typeof UserProfileResponseSchema>;
164
253
  declare const UpdateUserProfileRequestSchema: z.ZodObject<{
165
254
  username: z.ZodOptional<z.ZodString>;
166
255
  email: z.ZodOptional<z.ZodString>;
256
+ emailVerificationCode: z.ZodOptional<z.ZodString>;
167
257
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
258
  }, z.core.$strip>;
169
259
  type UpdateUserProfileRequest = z.infer<typeof UpdateUserProfileRequestSchema>;
@@ -333,8 +423,8 @@ type MachineApprovalStatusQuery = z.infer<typeof MachineApprovalStatusQuerySchem
333
423
  */
334
424
  declare const ApprovalStatusResponseSchema: z.ZodObject<{
335
425
  status: z.ZodEnum<{
336
- pending: "pending";
337
426
  approved: "approved";
427
+ pending: "pending";
338
428
  }>;
339
429
  }, z.core.$strip>;
340
430
  type ApprovalStatusResponse = z.infer<typeof ApprovalStatusResponseSchema>;
@@ -1753,8 +1843,8 @@ declare const CloudSchema: z.ZodObject<{
1753
1843
  member: "member";
1754
1844
  }>>;
1755
1845
  userStatus: z.ZodOptional<z.ZodEnum<{
1756
- pending: "pending";
1757
1846
  active: "active";
1847
+ pending: "pending";
1758
1848
  revoked: "revoked";
1759
1849
  }>>;
1760
1850
  maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1796,8 +1886,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
1796
1886
  member: "member";
1797
1887
  }>>;
1798
1888
  userStatus: z.ZodOptional<z.ZodEnum<{
1799
- pending: "pending";
1800
1889
  active: "active";
1890
+ pending: "pending";
1801
1891
  revoked: "revoked";
1802
1892
  }>>;
1803
1893
  maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3217,8 +3307,8 @@ declare const PrivateCloudSummarySchema: z.ZodObject<{
3217
3307
  member: "member";
3218
3308
  }>>;
3219
3309
  userStatus: z.ZodOptional<z.ZodEnum<{
3220
- pending: "pending";
3221
3310
  active: "active";
3311
+ pending: "pending";
3222
3312
  revoked: "revoked";
3223
3313
  }>>;
3224
3314
  maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3257,8 +3347,8 @@ declare const ListPrivateCloudsResponseSchema: z.ZodObject<{
3257
3347
  member: "member";
3258
3348
  }>>;
3259
3349
  userStatus: z.ZodOptional<z.ZodEnum<{
3260
- pending: "pending";
3261
3350
  active: "active";
3351
+ pending: "pending";
3262
3352
  revoked: "revoked";
3263
3353
  }>>;
3264
3354
  maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3309,8 +3399,8 @@ declare const CreatePrivateCloudResponseSchema: z.ZodObject<{
3309
3399
  member: "member";
3310
3400
  }>>;
3311
3401
  userStatus: z.ZodOptional<z.ZodEnum<{
3312
- pending: "pending";
3313
3402
  active: "active";
3403
+ pending: "pending";
3314
3404
  revoked: "revoked";
3315
3405
  }>>;
3316
3406
  maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3404,8 +3494,8 @@ declare const AcceptPrivateCloudInviteResponseSchema: z.ZodObject<{
3404
3494
  member: "member";
3405
3495
  }>>;
3406
3496
  userStatus: z.ZodOptional<z.ZodEnum<{
3407
- pending: "pending";
3408
3497
  active: "active";
3498
+ pending: "pending";
3409
3499
  revoked: "revoked";
3410
3500
  }>>;
3411
3501
  maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3436,8 +3526,8 @@ declare const PrivateCloudMemberSchema: z.ZodObject<{
3436
3526
  member: "member";
3437
3527
  }>;
3438
3528
  status: z.ZodEnum<{
3439
- pending: "pending";
3440
3529
  active: "active";
3530
+ pending: "pending";
3441
3531
  revoked: "revoked";
3442
3532
  }>;
3443
3533
  createdAt: z.ZodString;
@@ -3453,8 +3543,8 @@ declare const ListPrivateCloudMembersResponseSchema: z.ZodObject<{
3453
3543
  member: "member";
3454
3544
  }>;
3455
3545
  status: z.ZodEnum<{
3456
- pending: "pending";
3457
3546
  active: "active";
3547
+ pending: "pending";
3458
3548
  revoked: "revoked";
3459
3549
  }>;
3460
3550
  createdAt: z.ZodString;
@@ -4746,5 +4836,5 @@ declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata |
4746
4836
  */
4747
4837
  declare function decodeGitPath(rawPath: string): string;
4748
4838
 
4749
- export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AdminResourceItemSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateHiveCommentRequestSchema, CreateHiveReviewRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateResourceRequestSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, HiveAuthorTypeSchema, HiveCommentListResponseSchema, HiveCommentSchema, HiveInstallRequestSchema, HiveInstallResponseSchema, HiveInstallSchema, HiveInstalledItemSchema, HiveInstalledResponseSchema, HiveListQuerySchema, HiveListResponseSchema, HiveListingSchema, HiveListingStatusSchema, HiveListingTypeSchema, HiveMyListingsResponseSchema, HiveReviewListResponseSchema, HiveReviewSchema, HiveSortSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAdminResourcesResponseSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachineModelsResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListPublicResourcesQuerySchema, ListPublicResourcesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, PublicResourceItemSchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, PublishToHiveRequestSchema, PublishToHiveResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, ResourceMetadataSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateHiveCommentRequestSchema, UpdateHiveListingRequestSchema, UpdateHiveReviewRequestSchema, UpdateHiveVersionRequestSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateResourceRequestSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
4750
- export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, AdminResourceItem, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateHiveCommentRequest, CreateHiveReviewRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateResourceRequest, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HiveAuthorType, HiveComment, HiveCommentListResponse, HiveInstall, HiveInstallRequest, HiveInstallResponse, HiveInstalledItem, HiveInstalledResponse, HiveListQuery, HiveListResponse, HiveListing, HiveListingStatus, HiveListingType, HiveMyListingsResponse, HiveReview, HiveReviewListResponse, HiveSort, JsonSchemaDocument, ListAdminResourcesResponse, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachineModelsResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListPublicResourcesQuery, ListPublicResourcesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, PublicResourceItem, PublishDraftAgentRequest, PublishDraftAgentResponse, PublishToHiveRequest, PublishToHiveResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, ResourceMetadata, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateHiveCommentRequest, UpdateHiveListingRequest, UpdateHiveReviewRequest, UpdateHiveVersionRequest, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateResourceRequest, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
4839
+ export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AdminResourceItemSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateHiveCommentRequestSchema, CreateHiveReviewRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateResourceRequestSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EmailLoginCodeRequestSchema, EmailLoginCodeResponseSchema, EmailLoginVerifyRequestSchema, EmailLoginVerifyResponseSchema, EmailPasswordLoginRequestSchema, EmailPasswordLoginResponseSchema, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, HiveAuthorTypeSchema, HiveCommentListResponseSchema, HiveCommentSchema, HiveInstallRequestSchema, HiveInstallResponseSchema, HiveInstallSchema, HiveInstalledItemSchema, HiveInstalledResponseSchema, HiveListQuerySchema, HiveListResponseSchema, HiveListingSchema, HiveListingStatusSchema, HiveListingTypeSchema, HiveMyListingsResponseSchema, HiveReviewListResponseSchema, HiveReviewSchema, HiveSortSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAdminResourcesResponseSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachineModelsResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListPublicResourcesQuerySchema, ListPublicResourcesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, ProfileEmailCodeRequestSchema, ProfileEmailCodeResponseSchema, PublicResourceItemSchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, PublishToHiveRequestSchema, PublishToHiveResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, ResourceMetadataSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateHiveCommentRequestSchema, UpdateHiveListingRequestSchema, UpdateHiveReviewRequestSchema, UpdateHiveVersionRequestSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateResourceRequestSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
4840
+ export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, AdminResourceItem, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateHiveCommentRequest, CreateHiveReviewRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateResourceRequest, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EmailLoginCodeRequest, EmailLoginCodeResponse, EmailLoginVerifyRequest, EmailLoginVerifyResponse, EmailPasswordLoginRequest, EmailPasswordLoginResponse, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HiveAuthorType, HiveComment, HiveCommentListResponse, HiveInstall, HiveInstallRequest, HiveInstallResponse, HiveInstalledItem, HiveInstalledResponse, HiveListQuery, HiveListResponse, HiveListing, HiveListingStatus, HiveListingType, HiveMyListingsResponse, HiveReview, HiveReviewListResponse, HiveSort, JsonSchemaDocument, ListAdminResourcesResponse, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachineModelsResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListPublicResourcesQuery, ListPublicResourcesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, ProfileEmailCodeRequest, ProfileEmailCodeResponse, PublicResourceItem, PublishDraftAgentRequest, PublishDraftAgentResponse, PublishToHiveRequest, PublishToHiveResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, ResourceMetadata, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateHiveCommentRequest, UpdateHiveListingRequest, UpdateHiveReviewRequest, UpdateHiveVersionRequest, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateResourceRequest, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrix/shared",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
4
4
  "description": "Shared types and schemas for Agentrix projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",