import type { Client, Options as Options2, TDataShape } from "../../util/api/client/index.ts"; import type { CreateByocInfrastructureData, CreateByocInfrastructureErrors, CreateByocInfrastructureResponses, CreateClickPipeData, CreateClickPipeErrors, CreateClickPipeResponses, CreateInvitationData, CreateInvitationErrors, CreateInvitationResponses, CreateKeyData, CreateKeyErrors, CreateKeyResponses, CreateNewServiceData, CreateNewServiceErrors, CreateNewServiceResponses, CreatePrivateEndpointData, CreatePrivateEndpointErrors, CreatePrivateEndpointResponses, CreateReversePrivateEndpointData, CreateReversePrivateEndpointErrors, CreateReversePrivateEndpointResponses, DeleteClickPipeData, DeleteClickPipeErrors, DeleteClickPipeResponses, DeleteKeyData, DeleteKeyErrors, DeleteKeyResponses, DeleteOrganizationInvitationData, DeleteOrganizationInvitationErrors, DeleteOrganizationInvitationResponses, DeleteReversePrivateEndpointData, DeleteReversePrivateEndpointErrors, DeleteReversePrivateEndpointResponses, DeleteServiceData, DeleteServiceErrors, DeleteServiceQueryEndpointForInstanceData, DeleteServiceQueryEndpointForInstanceErrors, DeleteServiceQueryEndpointForInstanceResponses, DeleteServiceResponses, GetBackupDetailsData, GetBackupDetailsErrors, GetBackupDetailsResponses, GetCdcClickPipesScalingData, GetCdcClickPipesScalingErrors, GetCdcClickPipesScalingResponses, GetClickPipeData, GetClickPipeErrors, GetClickPipeResponses, GetClickPipeSettingsData, GetClickPipeSettingsErrors, GetClickPipeSettingsResponses, GetInvitationDetailsData, GetInvitationDetailsErrors, GetInvitationDetailsResponses, GetKeyDetailsData, GetKeyDetailsErrors, GetKeyDetailsResponses, GetMemberDetailsData, GetMemberDetailsErrors, GetMemberDetailsResponses, GetOrganizationDetailsData, GetOrganizationDetailsErrors, GetOrganizationDetailsResponses, GetOrganizationMetricsData, GetOrganizationMetricsErrors, GetOrganizationMetricsResponses, GetOrganizationUsageCostsData, GetOrganizationUsageCostsErrors, GetOrganizationUsageCostsResponses, GetPrivateEndpointConfigurationData, GetPrivateEndpointConfigurationErrors, GetPrivateEndpointConfigurationForRegionWithinCloudProviderForOrganizationData, GetPrivateEndpointConfigurationForRegionWithinCloudProviderForOrganizationErrors, GetPrivateEndpointConfigurationForRegionWithinCloudProviderForOrganizationResponses, GetPrivateEndpointConfigurationResponses, GetReversePrivateEndpointData, GetReversePrivateEndpointErrors, GetReversePrivateEndpointResponses, GetServiceBackupConfigurationData, GetServiceBackupConfigurationErrors, GetServiceBackupConfigurationResponses, GetServiceDetailsData, GetServiceDetailsErrors, GetServiceDetailsResponses, GetServiceMetricsData, GetServiceMetricsErrors, GetServiceMetricsResponses, GetServiceQueryEndpointForInstanceData, GetServiceQueryEndpointForInstanceErrors, GetServiceQueryEndpointForInstanceResponses, ListAllInvitationsData, ListAllInvitationsErrors, ListAllInvitationsResponses, ListAllKeysData, ListAllKeysErrors, ListAllKeysResponses, ListAvailableOrganizationsData, ListAvailableOrganizationsErrors, ListAvailableOrganizationsResponses, ListClickPipesData, ListClickPipesErrors, ListClickPipesResponses, ListOrganizationActivitiesData, ListOrganizationActivitiesErrors, ListOrganizationActivitiesResponses, ListOrganizationMembersData, ListOrganizationMembersErrors, ListOrganizationMembersResponses, ListOrganizationServicesData, ListOrganizationServicesErrors, ListOrganizationServicesResponses, ListReversePrivateEndpointsData, ListReversePrivateEndpointsErrors, ListReversePrivateEndpointsResponses, ListServiceBackupsData, ListServiceBackupsErrors, ListServiceBackupsResponses, OrganizationActivityData, OrganizationActivityErrors, OrganizationActivityResponses, RemoveByocInfrastructureData, RemoveByocInfrastructureErrors, RemoveByocInfrastructureResponses, RemoveOrganizationMemberData, RemoveOrganizationMemberErrors, RemoveOrganizationMemberResponses, ScalingClickPipeData, ScalingClickPipeErrors, ScalingClickPipeResponses, UpdateCdcClickPipesScalingData, UpdateCdcClickPipesScalingErrors, UpdateCdcClickPipesScalingResponses, UpdateClickPipeData, UpdateClickPipeErrors, UpdateClickPipeResponses, UpdateClickPipeSettingsData, UpdateClickPipeSettingsErrors, UpdateClickPipeSettingsResponses, UpdateClickPipeStateData, UpdateClickPipeStateErrors, UpdateClickPipeStateResponses, UpdateKeyData, UpdateKeyErrors, UpdateKeyResponses, UpdateOrganizationDetailsData, UpdateOrganizationDetailsErrors, UpdateOrganizationDetailsResponses, UpdateOrganizationMemberData, UpdateOrganizationMemberErrors, UpdateOrganizationMemberResponses, UpdateServiceAutoScalingSettings2Data, UpdateServiceAutoScalingSettings2Errors, UpdateServiceAutoScalingSettings2Responses, UpdateServiceAutoScalingSettingsData, UpdateServiceAutoScalingSettingsErrors, UpdateServiceAutoScalingSettingsResponses, UpdateServiceBackupConfigurationData, UpdateServiceBackupConfigurationErrors, UpdateServiceBackupConfigurationResponses, UpdateServiceBasicDetailsData, UpdateServiceBasicDetailsErrors, UpdateServiceBasicDetailsResponses, UpdateServicePasswordData, UpdateServicePasswordErrors, UpdateServicePasswordResponses, UpdateServiceStateData, UpdateServiceStateErrors, UpdateServiceStateResponses, UpsertServiceQueryEndpointForInstanceData, UpsertServiceQueryEndpointForInstanceErrors, UpsertServiceQueryEndpointForInstanceResponses } from "./types.gen.ts"; export type Options = Options2 & { /** * You can provide a client instance returned by `createClient()` instead of * individual options. This might be also useful if you want to implement a * custom client. */ client?: Client; /** * You can pass arbitrary values through the `meta` object. This can be * used to access values that aren't defined as part of the SDK function. */ meta?: Record; }; declare class _HeyApiClient { protected _client: Client; constructor(args?: { client?: Client; }); } export declare class ClickhouseClient extends _HeyApiClient { /** * Get list of available organizations * Returns a list with a single organization associated with the API key in the request. */ listAvailableOrganizations(options?: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get organization details * Returns details of a single organization. In order to get the details, the auth key must belong to the organization. */ getOrganizationDetails(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update organization details * Updates organization fields. Requires ADMIN auth key role. */ updateOrganizationDetails(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get organization metrics * Returns prometheus metrics for all services in an organization. */ getOrganizationMetrics(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * List of organization services * Returns a list of all services in the organization. */ listOrganizationServices(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Create new service * Creates a new service in the organization, and returns the current service state and a password to access the service. The service is started asynchronously. */ createNewService(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Delete service * Deletes the service. The service must be in stopped state and is deleted asynchronously after this method call. */ deleteService(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get service details * Returns a service that belongs to the organization */ getServiceDetails(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update service basic details * Updates basic service details like service name or IP access list. */ updateServiceBasicDetails(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get private endpoint configuration * Information required to set up a private endpoint */ getPrivateEndpointConfiguration(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Delete the service query endpoint for a given instance * This is an experimental feature. Please contact support to enable it. */ deleteServiceQueryEndpointForInstance(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get the service query endpoint for a given instance * This is an experimental feature. Please contact support to enable it. */ getServiceQueryEndpointForInstance(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Upsert the service query endpoint for a given instance * This is an experimental feature. Please contact support to enable it. */ upsertServiceQueryEndpointForInstance(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update service state * Starts or stop service */ updateServiceState(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update service auto scaling settings * Updates minimum and maximum total memory limits and idle mode scaling behavior for the service. The memory settings are available only for "production" services and must be a multiple of 12 starting from 24GB. Please contact support to enable adjustment of numReplicas. * @deprecated */ updateServiceAutoScalingSettings(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update service auto scaling settings * Updates minimum and maximum memory limits per replica and idle mode scaling behavior for the service. The memory settings are available only for "production" services and must be a multiple of 4 starting from 8GB. Please contact support to enable adjustment of numReplicas. */ updateServiceAutoScalingSettings2(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update service password * Sets a new password for the service */ updateServicePassword(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Create a private endpoint * Create a new private endpoint. The private endpoint will be associated with this service and organization */ createPrivateEndpoint(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get service metrics * Returns prometheus metrics for a service. */ getServiceMetrics(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * List of service backups * Returns a list of all backups for the service. The most recent backups comes first in the list. */ listServiceBackups(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get backup details * Returns a single backup info. */ getBackupDetails(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get service backup configuration * Returns the service backup configuration. */ getServiceBackupConfiguration(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update service backup configuration * Updates service backup configuration. Requires ADMIN auth key role. Setting the properties with null value, will reset the properties to theirs default values. */ updateServiceBackupConfiguration(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get list of all keys * Returns a list of all keys in the organization. */ listAllKeys(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Create key * Creates new API key. */ createKey(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Delete key * Deletes API key. Only a key not used to authenticate the active request can be deleted. */ deleteKey(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get key details * Returns a single key details. */ getKeyDetails(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update key * Updates API key properties. */ updateKey(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * List organization members * Returns a list of all members in the organization. */ listOrganizationMembers(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Remove an organization member * Removes a user from the organization */ removeOrganizationMember(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get member details * Returns a single organization member details. */ getMemberDetails(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update organization member * Updates organization member role. */ updateOrganizationMember(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * List all invitations * Returns list of all organization invitations. */ listAllInvitations(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Create an invitation * Creates organization invitation. */ createInvitation(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Delete organization invitation * Deletes a single organization invitation. */ deleteOrganizationInvitation(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get invitation details * Returns details for a single organization invitation. */ getInvitationDetails(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * List of organization activities * Returns a list of all organization activities. */ listOrganizationActivities(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Organization activity * Returns a single organization activity by ID. */ organizationActivity(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get organization usage costs * Returns a grand total and a list of daily, per-entity organization usage cost records for the organization in the queried time period (maximum 31 days). All days in both the request and the response are evaluated based on the UTC timezone. */ getOrganizationUsageCosts(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * List ClickPipes * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Returns a list of ClickPipes. */ listClickPipes(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Create ClickPipe * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Create a new ClickPipe. */ createClickPipe(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Delete ClickPipe * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Delete the specified ClickPipe. */ deleteClickPipe(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get ClickPipe * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Returns the specified ClickPipe. */ getClickPipe(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update ClickPipe * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Update the specified ClickPipe. */ updateClickPipe(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get ClickPipe settings * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Returns the advanced settings for the specified ClickPipe. */ getClickPipeSettings(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update ClickPipe settings * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Update the advanced settings for the specified ClickPipe. Send key-value pairs where values can be strings, numbers, or booleans. */ updateClickPipeSettings(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Scaling ClickPipe * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Change scaling settings for the specified ClickPipe. */ scalingClickPipe(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update ClickPipe state * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Start, stop or resync ClickPipe. Stopping a ClickPipe will stop the ingestion process from any state. Starting is allowed for ClickPipes in the "Stopped" state or with a "Failed" state. Resyncing is only for Postgres pipes and can be done from any state. */ updateClickPipeState(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get CDC ClickPipes scaling * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Get scaling settings for DB ClickPipes. * * The infrastructure is shared between all DB ClickPipes in the service, both for initial load and CDC. For billing purposes, 2 CPU cores and 8 GB of RAM [correspond](https://clickhouse.com/docs/cloud/manage/billing/overview#clickpipes-for-postgres-cdc) to one compute unit. * * **This endpoint becomes available once at least one DB ClickPipe was provisioned.** */ getCdcClickPipesScaling(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Update CDC ClickPipes scaling * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Update scaling settings for DB ClickPipes. * * The infrastructure is shared between all DB ClickPipes in the service, both for initial load and CDC. Scaling settings may take a few minutes to fully propagate. * * For billing purposes, 2 CPU cores and 8 GB of RAM [correspond](https://clickhouse.com/docs/cloud/manage/billing/overview#clickpipes-for-postgres-cdc) to one compute unit. If your organization tier changes, DB ClickPipes will be [rescaled](https://clickhouse.com/docs/cloud/manage/billing/overview#compute) appropriately. * * **This endpoint becomes available once at least one DB ClickPipe was provisioned.** */ updateCdcClickPipesScaling(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get private endpoint configuration for region within cloud provider for an organization * Deprecated. Please follow [documentation](https://clickhouse.com/docs/manage/security/aws-privatelink#add-endpoint-id-to-services-allow-list) for the updated process. * @deprecated */ getPrivateEndpointConfigurationForRegionWithinCloudProviderForOrganization(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Create BYOC Infrastructure * Create a new BYOC Infrastructure in the organization. Returns the configuration of the newly created infrastructure */ createByocInfrastructure(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Remove a BYOC infrastructure * Removes a BYOC Infrastructure from the organization */ removeByocInfrastructure(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * List reverse private endpoints * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Returns a list of reverse private endpoints for the specified service. */ listReversePrivateEndpoints(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Create reverse private endpoint * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Create a new reverse private endpoint. */ createReversePrivateEndpoint(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Delete reverse private endpoint * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Delete the reverse private endpoint with the specified ID. */ deleteReversePrivateEndpoint(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; /** * Get reverse private endpoint * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future.

Returns the reverse private endpoint with the specified ID. */ getReversePrivateEndpoint(options: Options): import("../../util/api/client/types.gen.ts").RequestResult; } export {}; //# sourceMappingURL=sdk.gen.d.ts.map