@newfold/huapi-js 2.1305.0 → 2.1337.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/package.json +1 -1
- package/src/index.d.ts +290 -6
- package/src/index.js +222 -2
- package/src/index.msw.d.ts +21 -3
- package/src/index.msw.js +113 -5
- package/src/index.schemas.d.ts +354 -40
- package/src/index.schemas.js +44 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody,
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwarderDelete200, HostingEmailForwarderDelete400, HostingEmailForwarderDeleteParams, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailList200, HostingEmailSuspend200, HostingEmailSuspend403, HostingEmailSuspend512, HostingEmailSuspendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -1152,12 +1152,12 @@ export declare const useDomainDnseditor: <TError = AxiosError<unknown, any>, TCo
|
|
|
1152
1152
|
* Returns all the types of DNS records that are managable to that domain or id
|
|
1153
1153
|
* @summary Manage your nameservers and advanced DNS records.
|
|
1154
1154
|
*/
|
|
1155
|
-
export declare const domainDnseditorList: (domainId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
1155
|
+
export declare const domainDnseditorList: (domainId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainDnseditorList200>>;
|
|
1156
1156
|
export declare const getDomainDnseditorListQueryKey: (domainId: string) => readonly [`/v1/domains/${string}/dns-editor`];
|
|
1157
|
-
export declare const getDomainDnseditorListQueryOptions: <TData = AxiosResponse<
|
|
1158
|
-
query?: Partial<UseQueryOptions<AxiosResponse<
|
|
1157
|
+
export declare const getDomainDnseditorListQueryOptions: <TData = AxiosResponse<DomainDnseditorList200, any>, TError = AxiosError<unknown, any>>(domainId: string, options?: {
|
|
1158
|
+
query?: Partial<UseQueryOptions<AxiosResponse<DomainDnseditorList200, any>, TError, TData, QueryKey>> | undefined;
|
|
1159
1159
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
1160
|
-
} | undefined) => UseQueryOptions<AxiosResponse<
|
|
1160
|
+
} | undefined) => UseQueryOptions<AxiosResponse<DomainDnseditorList200, any>, TError, TData, QueryKey> & {
|
|
1161
1161
|
queryKey: QueryKey;
|
|
1162
1162
|
};
|
|
1163
1163
|
export declare type DomainDnseditorListQueryResult = NonNullable<Awaited<ReturnType<typeof domainDnseditorList>>>;
|
|
@@ -1274,6 +1274,38 @@ export declare function useDomainDnszoneReset<TData = Awaited<ReturnType<typeof
|
|
|
1274
1274
|
}): UseQueryResult<TData, TError> & {
|
|
1275
1275
|
queryKey: QueryKey;
|
|
1276
1276
|
};
|
|
1277
|
+
/**
|
|
1278
|
+
* Access logs
|
|
1279
|
+
* @summary Access logs
|
|
1280
|
+
*/
|
|
1281
|
+
export declare const accessLogs: (domainId: number, params?: AccessLogsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AccessLogs200>>;
|
|
1282
|
+
export declare const getAccessLogsQueryKey: (domainId: number, params?: AccessLogsParams) => readonly [`/v1/domains/${number}/logs/access`, ...AccessLogsParams[]];
|
|
1283
|
+
export declare const getAccessLogsQueryOptions: <TData = AxiosResponse<AccessLogs200, any>, TError = AxiosError<unknown, any>>(domainId: number, params?: AccessLogsParams, options?: {
|
|
1284
|
+
query?: Partial<UseQueryOptions<AxiosResponse<AccessLogs200, any>, TError, TData, QueryKey>> | undefined;
|
|
1285
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1286
|
+
} | undefined) => UseQueryOptions<AxiosResponse<AccessLogs200, any>, TError, TData, QueryKey> & {
|
|
1287
|
+
queryKey: QueryKey;
|
|
1288
|
+
};
|
|
1289
|
+
export declare type AccessLogsQueryResult = NonNullable<Awaited<ReturnType<typeof accessLogs>>>;
|
|
1290
|
+
export declare type AccessLogsQueryError = AxiosError<unknown>;
|
|
1291
|
+
export declare function useAccessLogs<TData = Awaited<ReturnType<typeof accessLogs>>, TError = AxiosError<unknown>>(domainId: number, params: undefined | AccessLogsParams, options: {
|
|
1292
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof accessLogs>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof accessLogs>>, TError, TData>, 'initialData'>;
|
|
1293
|
+
axios?: AxiosRequestConfig;
|
|
1294
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
1295
|
+
queryKey: QueryKey;
|
|
1296
|
+
};
|
|
1297
|
+
export declare function useAccessLogs<TData = Awaited<ReturnType<typeof accessLogs>>, TError = AxiosError<unknown>>(domainId: number, params?: AccessLogsParams, options?: {
|
|
1298
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof accessLogs>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof accessLogs>>, TError, TData>, 'initialData'>;
|
|
1299
|
+
axios?: AxiosRequestConfig;
|
|
1300
|
+
}): UseQueryResult<TData, TError> & {
|
|
1301
|
+
queryKey: QueryKey;
|
|
1302
|
+
};
|
|
1303
|
+
export declare function useAccessLogs<TData = Awaited<ReturnType<typeof accessLogs>>, TError = AxiosError<unknown>>(domainId: number, params?: AccessLogsParams, options?: {
|
|
1304
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof accessLogs>>, TError, TData>>;
|
|
1305
|
+
axios?: AxiosRequestConfig;
|
|
1306
|
+
}): UseQueryResult<TData, TError> & {
|
|
1307
|
+
queryKey: QueryKey;
|
|
1308
|
+
};
|
|
1277
1309
|
/**
|
|
1278
1310
|
* Unassign a domain name
|
|
1279
1311
|
* @summary domain unassign
|
|
@@ -2911,7 +2943,7 @@ export declare const useHostingEmailAdd: <TError = AxiosError<HostingEmailAdd512
|
|
|
2911
2943
|
data: HostingEmailAddBody;
|
|
2912
2944
|
}, TContext>;
|
|
2913
2945
|
/**
|
|
2914
|
-
*
|
|
2946
|
+
* Deletes an email account by address
|
|
2915
2947
|
* @summary email delete
|
|
2916
2948
|
*/
|
|
2917
2949
|
export declare const hostingEmailDelete: (hostingId: string, params: HostingEmailDeleteParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailDelete200>>;
|
|
@@ -3003,6 +3035,130 @@ export declare const useHostingEmailUpdate: <TError = AxiosError<HostingEmailUpd
|
|
|
3003
3035
|
hostingId: string;
|
|
3004
3036
|
data: HostingEmailUpdateBody;
|
|
3005
3037
|
}, TContext>;
|
|
3038
|
+
/**
|
|
3039
|
+
* Lists existing email account and domain forwarders
|
|
3040
|
+
* @summary email forwarders lists
|
|
3041
|
+
*/
|
|
3042
|
+
export declare const hostingEmailForwardersList: (hostingId: string, params: HostingEmailForwardersListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailForwardersList200>>;
|
|
3043
|
+
export declare const getHostingEmailForwardersListQueryKey: (hostingId: string, params: HostingEmailForwardersListParams) => readonly [`/v1/hosting/${string}/emails/forwarders`, ...HostingEmailForwardersListParams[]];
|
|
3044
|
+
export declare const getHostingEmailForwardersListQueryOptions: <TData = AxiosResponse<HostingEmailForwardersList200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: HostingEmailForwardersListParams, options?: {
|
|
3045
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingEmailForwardersList200, any>, TError, TData, QueryKey>> | undefined;
|
|
3046
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3047
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingEmailForwardersList200, any>, TError, TData, QueryKey> & {
|
|
3048
|
+
queryKey: QueryKey;
|
|
3049
|
+
};
|
|
3050
|
+
export declare type HostingEmailForwardersListQueryResult = NonNullable<Awaited<ReturnType<typeof hostingEmailForwardersList>>>;
|
|
3051
|
+
export declare type HostingEmailForwardersListQueryError = AxiosError<unknown>;
|
|
3052
|
+
export declare function useHostingEmailForwardersList<TData = Awaited<ReturnType<typeof hostingEmailForwardersList>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingEmailForwardersListParams, options: {
|
|
3053
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailForwardersList>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailForwardersList>>, TError, TData>, 'initialData'>;
|
|
3054
|
+
axios?: AxiosRequestConfig;
|
|
3055
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
3056
|
+
queryKey: QueryKey;
|
|
3057
|
+
};
|
|
3058
|
+
export declare function useHostingEmailForwardersList<TData = Awaited<ReturnType<typeof hostingEmailForwardersList>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingEmailForwardersListParams, options?: {
|
|
3059
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailForwardersList>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailForwardersList>>, TError, TData>, 'initialData'>;
|
|
3060
|
+
axios?: AxiosRequestConfig;
|
|
3061
|
+
}): UseQueryResult<TData, TError> & {
|
|
3062
|
+
queryKey: QueryKey;
|
|
3063
|
+
};
|
|
3064
|
+
export declare function useHostingEmailForwardersList<TData = Awaited<ReturnType<typeof hostingEmailForwardersList>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingEmailForwardersListParams, options?: {
|
|
3065
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailForwardersList>>, TError, TData>>;
|
|
3066
|
+
axios?: AxiosRequestConfig;
|
|
3067
|
+
}): UseQueryResult<TData, TError> & {
|
|
3068
|
+
queryKey: QueryKey;
|
|
3069
|
+
};
|
|
3070
|
+
/**
|
|
3071
|
+
* Add a new forwarder by either account or domain
|
|
3072
|
+
* @summary NOT YET IMPLEMENTED - email forwarder add
|
|
3073
|
+
*/
|
|
3074
|
+
export declare const hostingEmailForwarderAdd: (hostingId: string, hostingEmailForwarderAddBody: HostingEmailForwarderAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailForwarderAdd200>>;
|
|
3075
|
+
export declare const getHostingEmailForwarderAddMutationOptions: <TError = AxiosError<HostingEmailForwarderAdd512 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd400, any>, TContext = unknown>(options?: {
|
|
3076
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwarderAdd200, any>, TError, {
|
|
3077
|
+
hostingId: string;
|
|
3078
|
+
data: HostingEmailForwarderAddBody;
|
|
3079
|
+
}, TContext> | undefined;
|
|
3080
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3081
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingEmailForwarderAdd200, any>, TError, {
|
|
3082
|
+
hostingId: string;
|
|
3083
|
+
data: HostingEmailForwarderAddBody;
|
|
3084
|
+
}, TContext>;
|
|
3085
|
+
export declare type HostingEmailForwarderAddMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailForwarderAdd>>>;
|
|
3086
|
+
export declare type HostingEmailForwarderAddMutationBody = HostingEmailForwarderAddBody;
|
|
3087
|
+
export declare type HostingEmailForwarderAddMutationError = AxiosError<HostingEmailForwarderAdd400 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd512>;
|
|
3088
|
+
/**
|
|
3089
|
+
* @summary NOT YET IMPLEMENTED - email forwarder add
|
|
3090
|
+
*/
|
|
3091
|
+
export declare const useHostingEmailForwarderAdd: <TError = AxiosError<HostingEmailForwarderAdd512 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd400, any>, TContext = unknown>(options?: {
|
|
3092
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwarderAdd200, any>, TError, {
|
|
3093
|
+
hostingId: string;
|
|
3094
|
+
data: HostingEmailForwarderAddBody;
|
|
3095
|
+
}, TContext> | undefined;
|
|
3096
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3097
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingEmailForwarderAdd200, any>, TError, {
|
|
3098
|
+
hostingId: string;
|
|
3099
|
+
data: HostingEmailForwarderAddBody;
|
|
3100
|
+
}, TContext>;
|
|
3101
|
+
/**
|
|
3102
|
+
* Delete email forwarder
|
|
3103
|
+
* @summary NOT YET IMPLEMENTED - email forwarder delete
|
|
3104
|
+
*/
|
|
3105
|
+
export declare const hostingEmailForwarderDelete: (hostingId: string, params: HostingEmailForwarderDeleteParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailForwarderDelete200>>;
|
|
3106
|
+
export declare const getHostingEmailForwarderDeleteMutationOptions: <TError = AxiosError<HostingEmailForwarderDelete400, any>, TContext = unknown>(options?: {
|
|
3107
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwarderDelete200, any>, TError, {
|
|
3108
|
+
hostingId: string;
|
|
3109
|
+
params: HostingEmailForwarderDeleteParams;
|
|
3110
|
+
}, TContext> | undefined;
|
|
3111
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3112
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingEmailForwarderDelete200, any>, TError, {
|
|
3113
|
+
hostingId: string;
|
|
3114
|
+
params: HostingEmailForwarderDeleteParams;
|
|
3115
|
+
}, TContext>;
|
|
3116
|
+
export declare type HostingEmailForwarderDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailForwarderDelete>>>;
|
|
3117
|
+
export declare type HostingEmailForwarderDeleteMutationError = AxiosError<HostingEmailForwarderDelete400>;
|
|
3118
|
+
/**
|
|
3119
|
+
* @summary NOT YET IMPLEMENTED - email forwarder delete
|
|
3120
|
+
*/
|
|
3121
|
+
export declare const useHostingEmailForwarderDelete: <TError = AxiosError<HostingEmailForwarderDelete400, any>, TContext = unknown>(options?: {
|
|
3122
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwarderDelete200, any>, TError, {
|
|
3123
|
+
hostingId: string;
|
|
3124
|
+
params: HostingEmailForwarderDeleteParams;
|
|
3125
|
+
}, TContext> | undefined;
|
|
3126
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3127
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingEmailForwarderDelete200, any>, TError, {
|
|
3128
|
+
hostingId: string;
|
|
3129
|
+
params: HostingEmailForwarderDeleteParams;
|
|
3130
|
+
}, TContext>;
|
|
3131
|
+
/**
|
|
3132
|
+
* Suspend or unsuspend an email accounts ability to send and receive email
|
|
3133
|
+
* @summary email suspend
|
|
3134
|
+
*/
|
|
3135
|
+
export declare const hostingEmailSuspend: (hostingId: string, hostingEmailSuspendBody: HostingEmailSuspendBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailSuspend200>>;
|
|
3136
|
+
export declare const getHostingEmailSuspendMutationOptions: <TError = AxiosError<HostingEmailSuspend512 | HostingEmailSuspend403, any>, TContext = unknown>(options?: {
|
|
3137
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailSuspend200, any>, TError, {
|
|
3138
|
+
hostingId: string;
|
|
3139
|
+
data: HostingEmailSuspendBody;
|
|
3140
|
+
}, TContext> | undefined;
|
|
3141
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3142
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingEmailSuspend200, any>, TError, {
|
|
3143
|
+
hostingId: string;
|
|
3144
|
+
data: HostingEmailSuspendBody;
|
|
3145
|
+
}, TContext>;
|
|
3146
|
+
export declare type HostingEmailSuspendMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailSuspend>>>;
|
|
3147
|
+
export declare type HostingEmailSuspendMutationBody = HostingEmailSuspendBody;
|
|
3148
|
+
export declare type HostingEmailSuspendMutationError = AxiosError<HostingEmailSuspend403 | HostingEmailSuspend512>;
|
|
3149
|
+
/**
|
|
3150
|
+
* @summary email suspend
|
|
3151
|
+
*/
|
|
3152
|
+
export declare const useHostingEmailSuspend: <TError = AxiosError<HostingEmailSuspend512 | HostingEmailSuspend403, any>, TContext = unknown>(options?: {
|
|
3153
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailSuspend200, any>, TError, {
|
|
3154
|
+
hostingId: string;
|
|
3155
|
+
data: HostingEmailSuspendBody;
|
|
3156
|
+
}, TContext> | undefined;
|
|
3157
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3158
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingEmailSuspend200, any>, TError, {
|
|
3159
|
+
hostingId: string;
|
|
3160
|
+
data: HostingEmailSuspendBody;
|
|
3161
|
+
}, TContext>;
|
|
3006
3162
|
/**
|
|
3007
3163
|
* List files under the given directory
|
|
3008
3164
|
* @deprecated
|
|
@@ -3851,6 +4007,38 @@ export declare function usePhpErrors<TData = Awaited<ReturnType<typeof phpErrors
|
|
|
3851
4007
|
}): UseQueryResult<TData, TError> & {
|
|
3852
4008
|
queryKey: QueryKey;
|
|
3853
4009
|
};
|
|
4010
|
+
/**
|
|
4011
|
+
* Product license details
|
|
4012
|
+
* @summary Product license details
|
|
4013
|
+
*/
|
|
4014
|
+
export declare const productLicenseDetails: (hostingId: string, params: ProductLicenseDetailsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ProductLicenseDetails200>>;
|
|
4015
|
+
export declare const getProductLicenseDetailsQueryKey: (hostingId: string, params: ProductLicenseDetailsParams) => readonly [`/v1/hosting/${string}/product/license-details`, ...ProductLicenseDetailsParams[]];
|
|
4016
|
+
export declare const getProductLicenseDetailsQueryOptions: <TData = AxiosResponse<ProductLicenseDetails200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: ProductLicenseDetailsParams, options?: {
|
|
4017
|
+
query?: Partial<UseQueryOptions<AxiosResponse<ProductLicenseDetails200, any>, TError, TData, QueryKey>> | undefined;
|
|
4018
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
4019
|
+
} | undefined) => UseQueryOptions<AxiosResponse<ProductLicenseDetails200, any>, TError, TData, QueryKey> & {
|
|
4020
|
+
queryKey: QueryKey;
|
|
4021
|
+
};
|
|
4022
|
+
export declare type ProductLicenseDetailsQueryResult = NonNullable<Awaited<ReturnType<typeof productLicenseDetails>>>;
|
|
4023
|
+
export declare type ProductLicenseDetailsQueryError = AxiosError<unknown>;
|
|
4024
|
+
export declare function useProductLicenseDetails<TData = Awaited<ReturnType<typeof productLicenseDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: ProductLicenseDetailsParams, options: {
|
|
4025
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>, 'initialData'>;
|
|
4026
|
+
axios?: AxiosRequestConfig;
|
|
4027
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
4028
|
+
queryKey: QueryKey;
|
|
4029
|
+
};
|
|
4030
|
+
export declare function useProductLicenseDetails<TData = Awaited<ReturnType<typeof productLicenseDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: ProductLicenseDetailsParams, options?: {
|
|
4031
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>, 'initialData'>;
|
|
4032
|
+
axios?: AxiosRequestConfig;
|
|
4033
|
+
}): UseQueryResult<TData, TError> & {
|
|
4034
|
+
queryKey: QueryKey;
|
|
4035
|
+
};
|
|
4036
|
+
export declare function useProductLicenseDetails<TData = Awaited<ReturnType<typeof productLicenseDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: ProductLicenseDetailsParams, options?: {
|
|
4037
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof productLicenseDetails>>, TError, TData>>;
|
|
4038
|
+
axios?: AxiosRequestConfig;
|
|
4039
|
+
}): UseQueryResult<TData, TError> & {
|
|
4040
|
+
queryKey: QueryKey;
|
|
4041
|
+
};
|
|
3854
4042
|
/**
|
|
3855
4043
|
* Returns the list of site's redirects
|
|
3856
4044
|
* @summary List redirects
|
|
@@ -3977,6 +4165,38 @@ export declare function useHostingResellerSsoWhm<TData = Awaited<ReturnType<type
|
|
|
3977
4165
|
}): UseQueryResult<TData, TError> & {
|
|
3978
4166
|
queryKey: QueryKey;
|
|
3979
4167
|
};
|
|
4168
|
+
/**
|
|
4169
|
+
* Returns total hits and a list of hits for the last N number of days passed as input
|
|
4170
|
+
* @summary Hosting server hits
|
|
4171
|
+
*/
|
|
4172
|
+
export declare const hostingServerHits: (hostingId: string, params: HostingServerHitsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingServerHits200>>;
|
|
4173
|
+
export declare const getHostingServerHitsQueryKey: (hostingId: string, params: HostingServerHitsParams) => readonly [`/v1/hosting/${string}/server-hits`, ...HostingServerHitsParams[]];
|
|
4174
|
+
export declare const getHostingServerHitsQueryOptions: <TData = AxiosResponse<HostingServerHits200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: HostingServerHitsParams, options?: {
|
|
4175
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingServerHits200, any>, TError, TData, QueryKey>> | undefined;
|
|
4176
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
4177
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingServerHits200, any>, TError, TData, QueryKey> & {
|
|
4178
|
+
queryKey: QueryKey;
|
|
4179
|
+
};
|
|
4180
|
+
export declare type HostingServerHitsQueryResult = NonNullable<Awaited<ReturnType<typeof hostingServerHits>>>;
|
|
4181
|
+
export declare type HostingServerHitsQueryError = AxiosError<unknown>;
|
|
4182
|
+
export declare function useHostingServerHits<TData = Awaited<ReturnType<typeof hostingServerHits>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingServerHitsParams, options: {
|
|
4183
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>, 'initialData'>;
|
|
4184
|
+
axios?: AxiosRequestConfig;
|
|
4185
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
4186
|
+
queryKey: QueryKey;
|
|
4187
|
+
};
|
|
4188
|
+
export declare function useHostingServerHits<TData = Awaited<ReturnType<typeof hostingServerHits>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingServerHitsParams, options?: {
|
|
4189
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>, 'initialData'>;
|
|
4190
|
+
axios?: AxiosRequestConfig;
|
|
4191
|
+
}): UseQueryResult<TData, TError> & {
|
|
4192
|
+
queryKey: QueryKey;
|
|
4193
|
+
};
|
|
4194
|
+
export declare function useHostingServerHits<TData = Awaited<ReturnType<typeof hostingServerHits>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingServerHitsParams, options?: {
|
|
4195
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingServerHits>>, TError, TData>>;
|
|
4196
|
+
axios?: AxiosRequestConfig;
|
|
4197
|
+
}): UseQueryResult<TData, TError> & {
|
|
4198
|
+
queryKey: QueryKey;
|
|
4199
|
+
};
|
|
3980
4200
|
/**
|
|
3981
4201
|
* Enable or disable shell access on an account by setting the shell.SSH key access must be established separately.
|
|
3982
4202
|
* @summary hosting shell toggle
|
|
@@ -6393,6 +6613,7 @@ export declare function useSiteStatus<TData = Awaited<ReturnType<typeof siteStat
|
|
|
6393
6613
|
};
|
|
6394
6614
|
/**
|
|
6395
6615
|
* Returns a list of the site's users
|
|
6616
|
+
* @deprecated
|
|
6396
6617
|
* @summary users
|
|
6397
6618
|
*/
|
|
6398
6619
|
export declare const siteUsers: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteUsers200>>;
|
|
@@ -6455,6 +6676,37 @@ export declare function useSitesVersion<TData = Awaited<ReturnType<typeof sitesV
|
|
|
6455
6676
|
}): UseQueryResult<TData, TError> & {
|
|
6456
6677
|
queryKey: QueryKey;
|
|
6457
6678
|
};
|
|
6679
|
+
/**
|
|
6680
|
+
* Creates wpsolution license addon for site_id
|
|
6681
|
+
* @summary configure wpsolution license for site_id
|
|
6682
|
+
*/
|
|
6683
|
+
export declare const siteAddonWpsolution: (siteId: number, siteAddonWpsolutionBody: SiteAddonWpsolutionBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteAddonWpsolution200>>;
|
|
6684
|
+
export declare const getSiteAddonWpsolutionMutationOptions: <TError = AxiosError<SiteAddonWpsolution400, any>, TContext = unknown>(options?: {
|
|
6685
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteAddonWpsolution200, any>, TError, {
|
|
6686
|
+
siteId: number;
|
|
6687
|
+
data: SiteAddonWpsolutionBody;
|
|
6688
|
+
}, TContext> | undefined;
|
|
6689
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6690
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SiteAddonWpsolution200, any>, TError, {
|
|
6691
|
+
siteId: number;
|
|
6692
|
+
data: SiteAddonWpsolutionBody;
|
|
6693
|
+
}, TContext>;
|
|
6694
|
+
export declare type SiteAddonWpsolutionMutationResult = NonNullable<Awaited<ReturnType<typeof siteAddonWpsolution>>>;
|
|
6695
|
+
export declare type SiteAddonWpsolutionMutationBody = SiteAddonWpsolutionBody;
|
|
6696
|
+
export declare type SiteAddonWpsolutionMutationError = AxiosError<SiteAddonWpsolution400>;
|
|
6697
|
+
/**
|
|
6698
|
+
* @summary configure wpsolution license for site_id
|
|
6699
|
+
*/
|
|
6700
|
+
export declare const useSiteAddonWpsolution: <TError = AxiosError<SiteAddonWpsolution400, any>, TContext = unknown>(options?: {
|
|
6701
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteAddonWpsolution200, any>, TError, {
|
|
6702
|
+
siteId: number;
|
|
6703
|
+
data: SiteAddonWpsolutionBody;
|
|
6704
|
+
}, TContext> | undefined;
|
|
6705
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6706
|
+
} | undefined) => UseMutationResult<AxiosResponse<SiteAddonWpsolution200, any>, TError, {
|
|
6707
|
+
siteId: number;
|
|
6708
|
+
data: SiteAddonWpsolutionBody;
|
|
6709
|
+
}, TContext>;
|
|
6458
6710
|
/**
|
|
6459
6711
|
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
6460
6712
|
* @summary sso
|
|
@@ -7124,6 +7376,38 @@ export declare function useSitesSshUserListV2<TData = Awaited<ReturnType<typeof
|
|
|
7124
7376
|
}): UseQueryResult<TData, TError> & {
|
|
7125
7377
|
queryKey: QueryKey;
|
|
7126
7378
|
};
|
|
7379
|
+
/**
|
|
7380
|
+
* Returns a list of the site's users with additional information like limit,offset, and total count
|
|
7381
|
+
* @summary users info
|
|
7382
|
+
*/
|
|
7383
|
+
export declare const siteUsersV2: (siteId: number, params?: SiteUsersV2Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteUsersV2200>>;
|
|
7384
|
+
export declare const getSiteUsersV2QueryKey: (siteId: number, params?: SiteUsersV2Params) => readonly [`/v2/sites/${number}/users`, ...SiteUsersV2Params[]];
|
|
7385
|
+
export declare const getSiteUsersV2QueryOptions: <TData = AxiosResponse<SiteUsersV2200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SiteUsersV2Params, options?: {
|
|
7386
|
+
query?: Partial<UseQueryOptions<AxiosResponse<SiteUsersV2200, any>, TError, TData, QueryKey>> | undefined;
|
|
7387
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
7388
|
+
} | undefined) => UseQueryOptions<AxiosResponse<SiteUsersV2200, any>, TError, TData, QueryKey> & {
|
|
7389
|
+
queryKey: QueryKey;
|
|
7390
|
+
};
|
|
7391
|
+
export declare type SiteUsersV2QueryResult = NonNullable<Awaited<ReturnType<typeof siteUsersV2>>>;
|
|
7392
|
+
export declare type SiteUsersV2QueryError = AxiosError<unknown>;
|
|
7393
|
+
export declare function useSiteUsersV2<TData = Awaited<ReturnType<typeof siteUsersV2>>, TError = AxiosError<unknown>>(siteId: number, params: undefined | SiteUsersV2Params, options: {
|
|
7394
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof siteUsersV2>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof siteUsersV2>>, TError, TData>, 'initialData'>;
|
|
7395
|
+
axios?: AxiosRequestConfig;
|
|
7396
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
7397
|
+
queryKey: QueryKey;
|
|
7398
|
+
};
|
|
7399
|
+
export declare function useSiteUsersV2<TData = Awaited<ReturnType<typeof siteUsersV2>>, TError = AxiosError<unknown>>(siteId: number, params?: SiteUsersV2Params, options?: {
|
|
7400
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof siteUsersV2>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof siteUsersV2>>, TError, TData>, 'initialData'>;
|
|
7401
|
+
axios?: AxiosRequestConfig;
|
|
7402
|
+
}): UseQueryResult<TData, TError> & {
|
|
7403
|
+
queryKey: QueryKey;
|
|
7404
|
+
};
|
|
7405
|
+
export declare function useSiteUsersV2<TData = Awaited<ReturnType<typeof siteUsersV2>>, TError = AxiosError<unknown>>(siteId: number, params?: SiteUsersV2Params, options?: {
|
|
7406
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof siteUsersV2>>, TError, TData>>;
|
|
7407
|
+
axios?: AxiosRequestConfig;
|
|
7408
|
+
}): UseQueryResult<TData, TError> & {
|
|
7409
|
+
queryKey: QueryKey;
|
|
7410
|
+
};
|
|
7127
7411
|
/**
|
|
7128
7412
|
* Import public ssh key
|
|
7129
7413
|
* @summary Import ssh key
|