export interface ResponseUtil { error?: string; data?: object; } export interface RuntimeImageGroup { main: string; init: string; sidecar?: string; } export interface Runtime { _id: string; name: string; type: string; image: RuntimeImageGroup; state: string; version: string; latest: boolean; } export type CloudFunction = object; export interface CreateFunctionDto { name: string; description?: string; methods: ('GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD')[]; code: string; tags?: string[]; } export interface UpdateFunctionDebugDto { params: object; } export interface UpdateFunctionDto { description?: string; methods: ('GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD')[]; code: string; tags?: string[]; } export interface CompileFunctionDto { code: string; } export interface CloudFunctionHistorySource { code: string; } export interface CloudFunctionHistory { _id: string; appid: string; functionId: string; source: CloudFunctionHistorySource; createdAt: string; } export interface Region { _id: string; name: string; displayName: string; tls: boolean; state: string; createdAt: string; updatedAt: string; } export interface ApplicationBundleResource { limitCPU: number; limitMemory: number; databaseCapacity: number; storageCapacity: number; limitCountOfCloudFunction: number; limitCountOfBucket: number; limitCountOfDatabasePolicy: number; limitCountOfTrigger: number; limitCountOfWebsiteHosting: number; reservedTimeAfterExpired: number; } export interface Autoscaling { enable: boolean; minReplicas: number; maxReplicas: number; targetCPUUtilizationPercentage: number; targetMemoryUtilizationPercentage: number; } export interface ApplicationBundle { _id: string; appid: string; resource: ApplicationBundleResource; autoscaling: Autoscaling; isTrialTier?: boolean; createdAt: string; updatedAt: string; } export interface EnvironmentVariable { name: string; value: string; } export interface ApplicationConfiguration { _id: string; appid: string; environments: EnvironmentVariable[]; dependencies: string[]; createdAt: string; updatedAt: string; } export interface RuntimeDomain { _id: string; appid: string; domain: string; customDomain?: string; state: 'Active' | 'Inactive' | 'Deleted'; phase: 'Creating' | 'Created' | 'Deleting' | 'Deleted'; createdAt: string; updatedAt: string; } export interface ApplicationWithRelations { _id: string; name: string; appid: string; regionId: string; runtimeId: string; tags: string[]; state: 'Running' | 'Stopped' | 'Restarting' | 'Deleted'; phase: 'Creating' | 'Created' | 'Starting' | 'Started' | 'Stopping' | 'Stopped' | 'Deleting' | 'Deleted'; createdAt: string; updatedAt: string; createdBy: string; region?: Region; bundle?: ApplicationBundle; runtime?: Runtime; configuration?: ApplicationConfiguration; domain?: RuntimeDomain; } export interface CreateAutoscalingDto { enable: boolean; minReplicas: number; maxReplicas: number; targetCPUUtilizationPercentage?: number; targetMemoryUtilizationPercentage?: number; } export interface CreateApplicationDto { cpu: number; memory: number; databaseCapacity: number; storageCapacity: number; autoscaling: CreateAutoscalingDto; name: string; state: 'Running'; regionId: string; runtimeId: string; } export interface Application { _id: string; name: string; appid: string; regionId: string; runtimeId: string; tags: string[]; state: 'Running' | 'Stopped' | 'Restarting' | 'Deleted'; phase: 'Creating' | 'Created' | 'Starting' | 'Started' | 'Stopping' | 'Stopped' | 'Deleting' | 'Deleted'; createdAt: string; updatedAt: string; createdBy: string; } export interface UpdateApplicationNameDto { name: string; } export interface UpdateApplicationStateDto { state: 'Running' | 'Stopped' | 'Restarting' | 'Deleted'; } export interface UpdateApplicationBundleDto { cpu: number; memory: number; databaseCapacity: number; storageCapacity: number; autoscaling: CreateAutoscalingDto; } export interface BindCustomDomainDto { domain: string; } export interface CreateEnvironmentDto { name: string; value: string; } export interface CreateBucketDto { shortName: string; policy: 'readwrite' | 'readonly' | 'private'; } export interface UpdateBucketDto { policy: 'readwrite' | 'readonly' | 'private'; } export interface CreateCollectionDto { name: string; } export interface Collection { name: string; type: string; options: object; info: object; idIndex: object; } export interface UpdateCollectionDto { validatorSchema?: object; validationLevel?: string; } export interface DatabasePolicyRule { _id: string; appid: string; policyName: string; collectionName: string; value: object; createdAt: string; updatedAt: string; } export interface DatabasePolicyWithRules { _id: string; appid: string; name: string; injector?: string; createdAt: string; updatedAt: string; rules: DatabasePolicyRule[]; } export interface CreatePolicyDto { name: string; } export interface DatabasePolicy { _id: string; appid: string; name: string; injector?: string; createdAt: string; updatedAt: string; } export interface UpdatePolicyDto { injector: string; } export interface CreatePolicyRuleDto { collectionName: string; value: string; } export interface UpdatePolicyRuleDto { value: string; } export interface Account { _id: string; balance: number; state: 'Active' | 'Inactive'; createdAt: string; updatedAt: string; createdBy: string; } export type Number = object; export interface AccountChargeOrder { _id: string; accountId: string; amount: number; currency: 'CNY' | 'USD'; phase: 'Pending' | 'Paid' | 'Failed'; channel: 'Manual' | 'Alipay' | 'WeChat' | 'Stripe' | 'Paypal' | 'Google' | 'GiftCode' | 'InviteCode'; result: object; message: string; createdAt: string; updatedAt: string; createdBy: string; } export interface GetAccountChargeOrdersDto { _id: string; accountId: string; amount: number; currency: 'CNY' | 'USD'; phase: 'Pending' | 'Paid' | 'Failed'; channel: 'Manual' | 'Alipay' | 'WeChat' | 'Stripe' | 'Paypal' | 'Google'; result: object; message: string; createdAt: string; updatedAt: string; createdBy: string; reward: number; } export interface WeChatPaymentCreateOrderResult { code_url: string; } export interface CreateChargeOrderOutDto { order: AccountChargeOrder; result: WeChatPaymentCreateOrderResult; } export interface CreateChargeOrderDto { amount: number; channel: string; currency: string; } export interface AccountChargeReward { _id: string; amount: number; reward: number; message?: string; createdAt: string; updatedAt: string; } export interface UseGiftCodeDto { code: string; } export interface InviteCode { _id: string; uid: string; code: string; state: 'Active' | 'Inactive'; name: string; description: string; createdAt: string; updatedAt: string; } export interface InviteCodeProfit { _id: string; uid: string; invitedBy: string; codeId: string; createdAt: string; profit: number; username: string; } export interface CreateWebsiteDto { bucketName: string; state: string; } export interface PasswdSignupDto { username: string; password: string; phone?: string; code?: string; type?: string; inviteCode?: string; } export interface PasswdSigninDto { username: string; password: string; } export interface PasswdResetDto { password: string; phone: string; code: string; type: string; } export interface PasswdCheckDto { username: string; } export interface SendPhoneCodeDto { phone: string; type: string; } export interface PhoneSigninDto { phone: string; code: string; username: string; password: string; inviteCode?: string; } export interface Pat2TokenDto { pat: string; } export interface SendEmailCodeDto { email: string; type: 'bind' | 'Unbind'; } export interface CreatePATDto { name: string; expiresIn: number; } export interface IdVerified { isVerified: boolean; idVerifyFailedTimes: number; } export interface UserProfile { _id: string; uid: string; openData?: object; avatar?: string; name?: string; idVerified: IdVerified; idCard: string; createdAt: string; updatedAt: string; } export interface UserWithProfile { _id: string; username: string; email?: string; phone?: string; createdAt: string; updatedAt: string; profile?: UserProfile; } export interface BindPhoneDto { oldPhoneNumber: string; newPhoneNumber: string; oldSmsCode: string; newSmsCode: string; } export interface BindEmailDto { email: string; code: string; } export interface BindUsernameDto { username: string; } export interface CreateTriggerDto { desc: string; cron: string; target: string; } export interface FunctionLog { _id: string; request_id: string; func: string; data: string; created_at: string; } export interface CreateDependencyDto { name: string; spec: string; } export interface UpdateDependencyDto { name: string; spec: string; } export interface DeleteDependencyDto { name: string; } export interface ApplicationBillingDetailItem { usage: number; amount: number; } export interface ApplicationBillingDetail { cpu: ApplicationBillingDetailItem; memory: ApplicationBillingDetailItem; databaseCapacity: ApplicationBillingDetailItem; storageCapacity: ApplicationBillingDetailItem; networkTraffic: ApplicationBillingDetailItem; } export interface ApplicationBilling { _id: string; appid: string; state: 'Pending' | 'Done'; amount: number; detail: ApplicationBillingDetail; startAt: string; endAt: string; createdBy: string; createdAt: string; updatedAt: string; } export interface BillingsByDayDto { totalAmount: string; day: string; } export interface CalculatePriceResultDto { cpu: number; memory: number; storageCapacity: number; databaseCapacity: number; total: number; } export interface CalculatePriceDto { cpu: number; memory: number; databaseCapacity: number; storageCapacity: number; autoscaling: CreateAutoscalingDto; regionId: string; } export interface ResourceSpec { value: number; label?: string; } export interface ResourceOption { _id: string; regionId: string; type: 'cpu' | 'memory' | 'databaseCapacity' | 'storageCapacity' | 'networkTraffic'; price: number; specs: ResourceSpec[]; createdAt: string; updatedAt: string; } export interface ResourceBundleSpecMap { cpu: ResourceSpec; memory: ResourceSpec; databaseCapacity: ResourceSpec; storageCapacity: ResourceSpec; networkTraffic?: ResourceSpec; } export interface ResourceBundle { _id: string; regionId: string; name: string; displayName: string; spec: ResourceBundleSpecMap; enableFreeTier?: boolean; limitCountOfFreeTierPerUser?: number; message?: string; createdAt: string; updatedAt: string; } export interface FunctionTemplateItemSource { code: string; } export interface FunctionTemplateItems { _id: string; templateId: string; name: string; desc: string; source: FunctionTemplateItemSource; methods: ('GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD')[]; createdAt: string; updatedAt: string; } export interface UserInfo { username?: string; email?: string; } export interface FunctionTemplatesDto { _id: string; uid: string; name: string; dependencies: string[]; environments: EnvironmentVariable[]; private: boolean; isRecommended: boolean; description: string; star: number; createdAt: string; updatedAt: string; items?: FunctionTemplateItems[]; user?: UserInfo; author: string; stared: boolean; } export interface FunctionTemplateItemDto { name: string; description?: string; methods: ('GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD')[]; code: string; } export interface CreateFunctionTemplateDto { name: string; dependencies: CreateDependencyDto[]; environments: CreateEnvironmentDto[]; private: boolean; description?: string; items: FunctionTemplateItemDto[]; } export type ObjectId = object; export interface UpdateFunctionTemplateDto { functionTemplateId: ObjectId; name: string; dependencies: CreateDependencyDto[]; environments: CreateEnvironmentDto[]; private: boolean; description?: string; items?: FunctionTemplateItemDto[]; } export interface GetFunctionTemplateUsedByDto { uid: string; } export interface DeleteRecycleBinItemsDto { ids: string[]; } export interface RestoreRecycleBinItemsDto { ids: string[]; } export interface CloudFunctionSourceDto { code: string; compiled: string; uri?: string; version: number; hash?: string; lang?: string; } export interface FunctionRecycleBinItemsDto { _id: string; appid: string; name: string; source: CloudFunctionSourceDto; description?: string; tags?: string[]; methods: ('GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD')[]; params?: object; createdAt: string; updatedAt: string; createdBy: string; } export interface Group { _id: string; name: string; appid: string; createdBy: string; createdAt: string; updatedAt: string; } export interface User { _id: string; username: string; email?: string; phone?: string; createdAt: string; updatedAt: string; } export interface GetGroupInviteCodeDetailDto { group: Group; invitedBy: User; } export interface CreateGroupDto { name: string; } export interface UpdateGroupDto { name: string; } export interface FindGroupInviteCodeDto { usedBy: User; } export interface GroupInviteCode { _id: string; usedBy?: string; code: string; role: string; groupId: string; createdBy: string; createdAt: string; updatedAt: string; } export interface GenerateGroupInviteCodeDto { role: 'owner' | 'admin' | 'developer'; } export interface FindGroupMemberDto { username: string; } export interface GroupMember { _id: string; uid: string; groupId: string; role: 'owner' | 'admin' | 'developer'; createdAt: string; updatedAt: string; } export interface UpdateGroupMemberRoleDto { role: 'owner' | 'admin' | 'developer'; } export type ApplicationControllerFindOneData = any; export type DatabaseControllerProxyData = any; export type DatabaseControllerExportDatabaseData = any; export type DatabaseControllerImportDatabaseData = any; export interface AccountControllerGetChargeOrderAmountParams { startTime: number; endTime: number; } export interface AccountControllerGetChargeRecordsParams { id: string; channel: string; startTime: string; endTime: string; state: string; page: number; pageSize: number; } export type AccountControllerWechatNotifyData = any; export interface AccountControllerInviteCodeProfitParams { page: number; pageSize: number; } export type UserControllerGetAvatarData = any; export interface LogControllerGetLogsParams { requestId?: string; functionName?: string; pageSize?: string; page?: string; appid: string; } export type RegionControllerGetRegionsData = any; export type SettingControllerGetSettingsData = any; export type SettingControllerGetSettingByKeyData = any; export interface BillingControllerFindAllParams { appid?: string[]; state?: string; startTime?: string; endTime?: string; page?: number; pageSize?: number; } export interface BillingControllerGetExpenseParams { startTime: number; endTime: number; appid: string[]; state: string; } export interface BillingControllerGetExpenseByDayParams { startTime: number; endTime: number; appid: string[]; state: string; } export interface FunctionTemplateControllerGetAllFunctionTemplateParams { asc: number; page: number; pageSize: number; keyword: string; sort: string; } export interface FunctionTemplateControllerGetFunctionTemplateUsedByParams { asc: number; page: number; pageSize: number; id: string; } export interface FunctionTemplateControllerGetMyFunctionTemplateParams { page: number; pageSize: number; keyword: string; asc: number; sort: string; type: string; } export interface FunctionTemplateControllerGetRecommendFunctionTemplateParams { asc: number; page: number; pageSize: number; keyword: string; sort: string; } export interface FunctionRecycleBinControllerGetRecycleBinParams { keyword: string; page: number; pageSize: number; startTime: number; endTime: number; appid: string; } export interface MonitorControllerGetDataParams { q: ('cpuUsage' | 'memoryUsage' | 'networkReceive' | 'networkTransmit' | 'databaseUsage' | 'storageUsage')[]; step: number; type: 'range' | 'instant'; appid: string; } //# sourceMappingURL=data-contracts.d.ts.map