@distilled.cloud/clickhouse-cloud 0.0.0-stage → 1.0.0-rc.21
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/LICENSE +201 -0
- package/README.md +138 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +34 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +58 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +49 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +35 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/api_keys.d.ts +175 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +2 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/backup.d.ts +117 -0
- package/lib/services/backup.d.ts.map +1 -0
- package/lib/services/backup.js +2 -0
- package/lib/services/backup.js.map +1 -0
- package/lib/services/billing.d.ts +69 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +2 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/click_pipes.d.ts +1637 -0
- package/lib/services/click_pipes.d.ts.map +1 -0
- package/lib/services/click_pipes.js +31 -0
- package/lib/services/click_pipes.js.map +1 -0
- package/lib/services/index.d.ts +14 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +13 -0
- package/lib/services/organization.d.ts +336 -0
- package/lib/services/organization.d.ts.map +1 -0
- package/lib/services/organization.js +2 -0
- package/lib/services/organization.js.map +1 -0
- package/lib/services/postgres.d.ts +726 -0
- package/lib/services/postgres.d.ts.map +1 -0
- package/lib/services/postgres.js +31 -0
- package/lib/services/postgres.js.map +1 -0
- package/lib/services/prometheus.d.ts +71 -0
- package/lib/services/prometheus.d.ts.map +1 -0
- package/lib/services/prometheus.js +2 -0
- package/lib/services/prometheus.js.map +1 -0
- package/lib/services/query_api_endpoints.d.ts +189 -0
- package/lib/services/query_api_endpoints.d.ts.map +1 -0
- package/lib/services/query_api_endpoints.js +2 -0
- package/lib/services/query_api_endpoints.js.map +1 -0
- package/lib/services/role_management.d.ts +159 -0
- package/lib/services/role_management.d.ts.map +1 -0
- package/lib/services/role_management.js +2 -0
- package/lib/services/role_management.js.map +1 -0
- package/lib/services/saved_queries.d.ts +129 -0
- package/lib/services/saved_queries.d.ts.map +1 -0
- package/lib/services/saved_queries.js +2 -0
- package/lib/services/saved_queries.js.map +1 -0
- package/lib/services/service.d.ts +886 -0
- package/lib/services/service.d.ts.map +1 -0
- package/lib/services/service.js +41 -0
- package/lib/services/service.js.map +1 -0
- package/lib/services/udf.d.ts +373 -0
- package/lib/services/udf.d.ts.map +1 -0
- package/lib/services/udf.js +24 -0
- package/lib/services/udf.js.map +1 -0
- package/lib/services/user_management.d.ts +150 -0
- package/lib/services/user_management.d.ts.map +1 -0
- package/lib/services/user_management.js +2 -0
- package/lib/services/user_management.js.map +1 -0
- package/lib/services.lazy/api_keys.js +1 -0
- package/lib/services.lazy/backup.js +1 -0
- package/lib/services.lazy/billing.js +1 -0
- package/lib/services.lazy/click_pipes.js +3 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/organization.js +1 -0
- package/lib/services.lazy/postgres.js +4 -0
- package/lib/services.lazy/prometheus.js +1 -0
- package/lib/services.lazy/query_api_endpoints.js +1 -0
- package/lib/services.lazy/role_management.js +1 -0
- package/lib/services.lazy/saved_queries.js +1 -0
- package/lib/services.lazy/service.js +4 -0
- package/lib/services.lazy/udf.js +3 -0
- package/lib/services.lazy/user_management.js +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/backup.d.ts +165 -0
- package/lib/unstable-services/backup.d.ts.map +1 -0
- package/lib/unstable-services/backup.js +2 -0
- package/lib/unstable-services/backup.js.map +1 -0
- package/lib/unstable-services/billing.d.ts +84 -0
- package/lib/unstable-services/billing.d.ts.map +1 -0
- package/lib/unstable-services/billing.js +2 -0
- package/lib/unstable-services/billing.js.map +1 -0
- package/lib/unstable-services/click_pipes.d.ts +324 -0
- package/lib/unstable-services/click_pipes.d.ts.map +1 -0
- package/lib/unstable-services/click_pipes.js +2 -0
- package/lib/unstable-services/click_pipes.js.map +1 -0
- package/lib/unstable-services/click_stack.d.ts +3538 -0
- package/lib/unstable-services/click_stack.d.ts.map +1 -0
- package/lib/unstable-services/click_stack.js +60 -0
- package/lib/unstable-services/click_stack.js.map +1 -0
- package/lib/unstable-services/index.d.ts +11 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +10 -0
- package/lib/unstable-services/notifications.d.ts +166 -0
- package/lib/unstable-services/notifications.d.ts.map +1 -0
- package/lib/unstable-services/notifications.js +2 -0
- package/lib/unstable-services/notifications.js.map +1 -0
- package/lib/unstable-services/organization.d.ts +403 -0
- package/lib/unstable-services/organization.d.ts.map +1 -0
- package/lib/unstable-services/organization.js +26 -0
- package/lib/unstable-services/organization.js.map +1 -0
- package/lib/unstable-services/postgres.d.ts +415 -0
- package/lib/unstable-services/postgres.d.ts.map +1 -0
- package/lib/unstable-services/postgres.js +2 -0
- package/lib/unstable-services/postgres.js.map +1 -0
- package/lib/unstable-services/service.d.ts +244 -0
- package/lib/unstable-services/service.d.ts.map +1 -0
- package/lib/unstable-services/service.js +2 -0
- package/lib/unstable-services/service.js.map +1 -0
- package/lib/unstable-services/snapshot.d.ts +146 -0
- package/lib/unstable-services/snapshot.d.ts.map +1 -0
- package/lib/unstable-services/snapshot.js +2 -0
- package/lib/unstable-services/snapshot.js.map +1 -0
- package/lib/unstable-services/user_management.d.ts +41 -0
- package/lib/unstable-services/user_management.d.ts.map +1 -0
- package/lib/unstable-services/user_management.js +2 -0
- package/lib/unstable-services/user_management.js.map +1 -0
- package/lib/unstable-services.lazy/backup.js +1 -0
- package/lib/unstable-services.lazy/billing.js +1 -0
- package/lib/unstable-services.lazy/click_pipes.js +1 -0
- package/lib/unstable-services.lazy/click_stack.js +4 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/notifications.js +1 -0
- package/lib/unstable-services.lazy/organization.js +4 -0
- package/lib/unstable-services.lazy/postgres.js +1 -0
- package/lib/unstable-services.lazy/service.js +1 -0
- package/lib/unstable-services.lazy/snapshot.js +1 -0
- package/lib/unstable-services.lazy/user_management.js +1 -0
- package/package.json +94 -3
- package/src/credentials.ts +88 -0
- package/src/errors.ts +76 -0
- package/src/index.ts +53 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +76 -0
- package/src/retry.ts +53 -0
- package/src/services/api_keys.ts +466 -0
- package/src/services/backup.ts +347 -0
- package/src/services/billing.ts +170 -0
- package/src/services/click_pipes.ts +3483 -0
- package/src/services/index.ts +14 -0
- package/src/services/organization.ts +901 -0
- package/src/services/postgres.ts +1967 -0
- package/src/services/prometheus.ts +271 -0
- package/src/services/query_api_endpoints.ts +466 -0
- package/src/services/role_management.ts +436 -0
- package/src/services/saved_queries.ts +384 -0
- package/src/services/service.ts +2112 -0
- package/src/services/udf.ts +1019 -0
- package/src/services/user_management.ts +508 -0
- package/src/traits.ts +45 -0
- package/src/unstable-services/backup.ts +422 -0
- package/src/unstable-services/billing.ts +232 -0
- package/src/unstable-services/click_pipes.ts +702 -0
- package/src/unstable-services/click_stack.ts +7114 -0
- package/src/unstable-services/index.ts +11 -0
- package/src/unstable-services/notifications.ts +451 -0
- package/src/unstable-services/organization.ts +1107 -0
- package/src/unstable-services/postgres.ts +1061 -0
- package/src/unstable-services/service.ts +795 -0
- package/src/unstable-services/snapshot.ts +397 -0
- package/src/unstable-services/user_management.ts +127 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sources":["../../src/unstable-services/organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAEvD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC9B,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC;;;;;;;;;;AAejE,uLAAuL;AACvL,qBAAa,kBACX,SAAQ,aAAa,CAAC,uBAOrB;CAAG;AAEN,MAAM,WAAW,0DAA0D;IACzE,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kGAAkG;IAClG,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AACD,MAAM,WAAW,iCAAiC;IAChD,6FAA6F;IAC7F,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1C,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,4BAA4B;IAC3C,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AACD,mDAAmD;AACnD,MAAM,MAAM,iCAAiC,GACzC,gBAAgB,GAChB,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,cAAc,GACd,WAAW,GACX,WAAW,GACX,cAAc,GACd,WAAW,GACX,WAAW,GACX,WAAW,GACX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,+BAA+B,EAC/B,wBAAwB,CAUvB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import{Gc as e,Hc as t,Jc as n,Kc as r,Mc as i,Pc as a,Rc as o,Wc as s,Xc as c,a as l,b as u,errors$ClickHouseCloudServiceErrors as d,f,l as p,m,n as h,protocol$ClickHouseCloudProtocol as g,retry$Retry as _,traits$Http as v,traits$Label as y,traits$RawResponseRoot as b,traits$SensitiveValue as x,traits$applyErrorMatchers as S,wc as C,xc as w,ya as T}from"../_bundle/sdk.js";const E={system:`clickhouse-cloud-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`ClickhouseCloud`,service:`Organizations`,labels:`clickhouse_cloud`,propagate:`w3c`};const D=/*@__PURE__*/ f(function FeatureUnavailable(e){return m(e,new.target,[`$7($6()("FeatureUnavailable",{message:$2,body:$4($3),headers:$4($5($2,$2))}).pipe($1),[{status:403,message:{includes:"Not a byoc organization"}}])`,[o,T,n,a,s,t,i,S]])});const O=/*@__PURE__*/ h(t=>t===l?p(`ByocInfrastructureEnrollmentToken`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"CreateOrganization%"};$7(>3)@"CreateOrganization%Request";$7(>4)@"%";$6({organizationId:$3.pipe($2()),byocInfrastructureId:$3.pipe($2()),ttlSeconds:$5($4)}).pipe($1({method:"POST",uri:"/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/enrollmentToken",code:200}));$6({token:$3.pipe($8({})),expiresAt:$3})`,[o,v,y,n,e,s,r,c,x,d,g,_,E]):u(O,t));const k=/*@__PURE__*/ h(e=>e===l?p(`GetByocInfrastructure`,`{input:#1,output:#5,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>6)@"%Request";$5(>7)@"ByocConnectorComponent";$7(#2);$5(>8)@"ByocConnector";$5(>9)@"ByocInfrastructureDetails";$4({organizationId:$3.pipe($2()),byocInfrastructureId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}",code:200}));$4({name:$6($3),state:$6($3),version:$6($3),lastHeartbeatAt:$6($3)});$4({lastHeartbeatAt:$6($3),components:$6(#3),platformState:$6($3),platformDetail:$6($3)});$4({id:$6($3),state:$6($3),accountId:$6($3),regionId:$6($3),cloudProvider:$6($3),displayName:$6($3),enablePrivateLink:$6($8),enablePrivateLoadBalancer:$6($8),enablePublicLoadBalancer:$6($8),vpcCidrRange:$6($3),vpcAvailabilityZoneList:$6(#9:0),isByoVpc:$6($8),byoVpcId:$6($3),byoVpcPrivateSubnetIds:$6(#9:0),byoVpcPodCidrRangeNames:$6(#9:0),byoVpcSharedVpcHostProjectId:$6($3),gcpPscSubnetId:$6($3),accessModel:$6($3),restrictedFacts:$6(#9:1),connector:$6(#4)})`,[o,v,y,n,r,c,s,C,w,__d0,d,g,_,E]):u(k,e));const A=/*@__PURE__*/ h(e=>e===l?p(`GetByocInfrastructureCustomerAuthorizedAccess`,`{input:#1,output:#1:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$6(>2)@"%Request";$5({organizationId:$4.pipe($3()),byocInfrastructureId:$4.pipe($3())}).pipe($2({method:"GET",uri:~1:1,code:200}))`,[o,__d1,v,y,n,r,c,d,g,_,E]):u(A,e));const j=/*@__PURE__*/ h(e=>e===l?p(`ByocInfrastructurePrivateEndpointConfig`,`{input:#1,output:#2,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"Get%"};$5(>3)@"Get%Request";$5(>4)@"%";$4({organizationId:$3.pipe($2()),byocInfrastructureId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/privateEndpointConfig",code:200}));$4({endpointName:$3,privateDnsHostname:$3})`,[o,v,y,n,r,c,d,g,_,E]):u(j,e));const M=/*@__PURE__*/ h(e=>e===l?p(`ByocInfrastructureProgress`,`{input:#1,output:#5,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"Get%"};$5(>6)@"Get%Request";$6($5(>7));$5(>8)@"%Stage";$6(#3);$5(>9)@"%";$4({organizationId:$3.pipe($2()),byocInfrastructureId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/progress",code:200}));#3;$4({name:$7($3),status:$7($3),updatedAt:$7($3),message:$7($3),subStages:$7(#2)});$4({id:$7($3),status:$7($3),updatedAt:$7($3),stages:$7(#4)})`,[o,v,y,n,r,c,C,s,d,g,_,E]):u(M,e));const N=/*@__PURE__*/ h(e=>e===l?p(`GetByocInfrastructureTags`,`{input:#1,output:#2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>3)@"%Request";$5(>4)@"ByocInfrastructureTagsResponse";$4({organizationId:$3.pipe($2()),byocInfrastructureId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/tags",code:200}));$4({tags:#6:0})`,[o,v,y,n,r,c,__d2,d,g,_,E]):u(N,e));const P=/*@__PURE__*/ h(e=>e===l?p(`GetOrganizationQuota`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({organizationId:$3.pipe($2()),quotaCode:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/quotas/{quotaCode}",code:200}))`,[o,v,y,n,r,c,__d3,d,g,_,E]):u(P,e));const F=/*@__PURE__*/ h(e=>e===l?p(`ListOrganizationPublicPreviews`,`{input:#1,output:#3,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>4)@"%Request";$7(#6:0);$5(>5)@"%Response";$4({organizationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/previews",code:200}));#2.pipe($8())`,[o,v,y,n,r,c,__d4,C,b,d,g,_,E]):u(F,e));const I=/*@__PURE__*/ h(e=>e===l?p(`ListOrganizationQuotas`,`{input:#1,output:#3,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>4)@"%Request";$7(#6:0);$5(>5)@"%Response";$4({organizationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/quotas",code:200}));#2.pipe($8())`,[o,v,y,n,r,c,__d3,C,b,d,g,_,E]):u(I,e));const L=/*@__PURE__*/ h(t=>t===l?p(`UpdateByocInfrastructureCustomerAuthorizedAccess`,`{input:#1,output:#1:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$8(>2)@"%Request";$7({organizationId:$4.pipe($3()),byocInfrastructureId:$4.pipe($3()),mode:$4,startTimestamp:$5($4),durationSeconds:$5($6)}).pipe($2({method:"PATCH",uri:~1:1,code:200}))`,[o,__d1,v,y,n,s,e,r,c,d,g,_,E]):u(L,t));const R=/*@__PURE__*/ h(e=>e===l?p(`UpdateOrganizationPublicPreview`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({organizationId:$3.pipe($2()),previewId:$3.pipe($2()),enabled:$4}).pipe($1({method:"PATCH",uri:"/v1/organizations/{organizationId}/previews/{previewId}",code:200}))`,[o,v,y,n,w,r,c,__d4,d,g,_,E]):u(R,e));const z=/*@__PURE__*/ h(e=>e===l?p(`ByocInfrastructureValidation`,`{input:#2,output:#5,errors:[$11],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"ValidateByocInfrastructure"};$2($1);$9(>6)@"ValidateByocInfrastructureRequest";$9(>7)@"%Check";$2(#3);$9(>8)@"%";$8({organizationId:$1.pipe($4()),regionId:$1,accountId:$1,availabilityZoneSuffixes:$5(#1),vpcCidrRange:$5($1),externalId:$5($1),tenantId:$5($1),servicePrincipalClientId:$5($1),vpcId:$5($1),privateSubnetIds:$5(#6:0),publicSubnetIds:$5(#6:0),gcpPodCidrRangeNames:$5(#6:0),gcpSharedVpcHostProjectId:$5($1),tags:$5(#7:0),accessModel:$5($1),restrictedFacts:$5(#6:1)}).pipe($3({method:"POST",uri:"/v1/organizations/{organizationId}/byocInfrastructure/validate",code:200}));$8({name:$5($1),action:$5($1),allowed:$5($10),reason:$5($1),group:$5($1)});$8({cloudProvider:$5($1),allPassed:$5($10),anyPassed:$5($10),supported:$5($10),checks:$5(#4)})`,[o,n,C,v,y,s,__d0,__d2,r,c,w,D,d,g,_,E]):u(z,e));function __d0(){return[`$2($1);$6(>2)@"ByocRestrictedFacts";$5({clusterName:$1,platformNodeGroup:$3($1),availabilityZones:$3(#0),namespacePrefix:$3($1),executorRoleArn:$3($1),nodeRoleArns:$3(#0),imageMode:$1,imageRegistry:$3($1),dataBucket:$1,backupBucket:$1,storageRoleArn:$1,scraperEndpoint:$3($1),enableMonitoring:$3($4),enableSnapshotController:$3($4),enableAutoscaler:$3($4)})`,[o,n,C,s,w,r,c]]}function __d1(){return[`$6(>2)@"ByocCustomerAuthorizedAccess";"/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/customerAuthorizedAccess";$5({mode:$1,startTimestamp:$2($1),durationSeconds:$2($3),allowed:$4,windowEndTimestamp:$2($1)})`,[o,n,s,e,w,r,c]]}function __d2(){return[`$2($1,$1)`,[o,n,t]]}function __d3(){return[`$6(>1)@"OrganizationQuota";$5({quotaCode:$1,name:$1,description:$1,scope:$1,value:$2,usage:$3($2),adjustable:$4})`,[o,n,e,s,w,r,c]]}function __d4(){return[`$4(>1)@"PublicPreview";$3({id:$1,name:$1,description:$1,docsUrl:$1,enabled:$2,canToggle:$2})`,[o,n,w,r,c]]}export{D as FeatureUnavailable,O as createOrganizationByocInfrastructureEnrollmentToken,k as getByocInfrastructure,A as getByocInfrastructureCustomerAuthorizedAccess,j as getByocInfrastructurePrivateEndpointConfig,M as getByocInfrastructureProgress,N as getByocInfrastructureTags,P as getOrganizationQuota,F as listOrganizationPublicPreviews,I as listOrganizationQuotas,L as updateByocInfrastructureCustomerAuthorizedAccess,R as updateOrganizationPublicPreview,z as validateByocInfrastructure};
|
|
2
|
+
/*
|
|
3
|
+
26 19
|
|
4
|
+
e:0:Gc t:0:Hc n:0:Jc r:0:Kc i:0:Mc a:0:Pc o:0:Rc s:0:Wc c:0:Xc l:0:a u:0:b d:0:errors$ClickHouseCloudServiceErrors f:0:f p:0:l m:0:m h:0:n g:0:protocol$ClickHouseCloudProtocol _:0:retry$Retry v:0:traits$Http y:0:traits$Label b:0:traits$RawResponseRoot x:0:traits$SensitiveValue S:0:traits$applyErrorMatchers C:0:wc w:0:xc T:0:ya
|
|
5
|
+
0000000028000490006s00092000b3000d2000ew000h4000j4000lu000o1000qf000rd000rp000ss000tv000uq000vt000ws
|
|
6
|
+
2 qm 14o O|=ByocInfrastructureEnrollmentToken;ry 13n;6,i,j,2,0,7,3,8,l,b,g,h,13
|
|
7
|
+
2 15e 1zs k|=GetByocInfrastructure;16e 1ym;6,i,j,2,3,8,7,n,o,14,b,g,h,13
|
|
8
|
+
2 20i 29e A|=GetByocInfrastructureCustomerAuthorizedAccess;226 28e;6,15,i,j,2,3,8,b,g,h,13
|
|
9
|
+
2 2a4 2mz j|=ByocInfrastructurePrivateEndpointConfig;2bm 2m4;6,i,j,2,3,8,b,g,h,13
|
|
10
|
+
2 2np 33r M|=ByocInfrastructureProgress;2ou 32s;6,i,j,2,3,8,n,7,b,g,h,13
|
|
11
|
+
2 34h 3gi N|=GetByocInfrastructureTags;35l 3fi;6,i,j,2,3,8,16,b,g,h,13
|
|
12
|
+
2 3h8 3qj P|=GetOrganizationQuota;3i7 3pj;6,i,j,2,3,8,17,b,g,h,13
|
|
13
|
+
2 3r9 416 F|=ListOrganizationPublicPreviews;3si 402;6,i,j,2,3,8,18,n,k,b,g,h,13
|
|
14
|
+
2 41w 4bj I|=ListOrganizationQuotas;42x 4af;6,i,j,2,3,8,17,n,k,b,g,h,13
|
|
15
|
+
2 4c9 4mx L|=UpdateByocInfrastructureCustomerAuthorizedAccess;4e0 4lt;6,15,i,j,2,7,0,3,8,b,g,h,13
|
|
16
|
+
2 4nn 4xr R|=UpdateOrganizationPublicPreview;4ox 4wp;6,i,j,2,o,3,8,18,b,g,h,13
|
|
17
|
+
2 4yh 5og z|=ByocInfrastructureValidation;4zo 5n3;6,2,n,i,j,7,14,16,3,8,o,12,b,g,h,13
|
|
18
|
+
3 jp pw D|=;l8 pa;6,p,2,5,7,1,4,m
|
|
19
|
+
0 ao j0 E||
|
|
20
|
+
1 5oi 5zm __d0|=;5p6 5z3;6,2,n,7,o,3,8
|
|
21
|
+
1 5zm 67e __d1|=;60a 66v;6,2,7,0,o,3,8
|
|
22
|
+
1 67e 68m __d2|=;682 68b;6,2,1
|
|
23
|
+
1 68m 6cy __d3|=;69a 6cf;6,2,0,7,o,3,8
|
|
24
|
+
1 6cy 6gl __d4|=;6dm 6g6;6,2,o,3,8
|
|
25
|
+
*/
|
|
26
|
+
//# sourceMappingURL=organization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.js","names":["API.newError","__L.at","C.withAuthError","S.String","S.Unknown","S.optional","S.Record","S.TaggedError","T.applyErrorMatchers","API.D","API.named","T.Http","T.Label","S.Number","S.Struct","S.suspend","T.SensitiveValue","Retry.Retry","API.call","S.Array","S.Boolean","T.RawResponseRoot","Number","Record","String","Struct","TaggedError","Unknown","at","optional","suspend","D","call","ClickHouseCloudServiceErrors","named","op","ClickHouseCloudProtocol","Retry","Http","Label","RawResponseRoot","SensitiveValue","applyErrorMatchers","Array","Boolean","withAuthError","TELEMETRY","FeatureUnavailable","newError","i","createOrganizationByocInfrastructureEnrollmentToken","getByocInfrastructure","getByocInfrastructureCustomerAuthorizedAccess","getByocInfrastructurePrivateEndpointConfig","getByocInfrastructureProgress","getByocInfrastructureTags","getOrganizationQuota","listOrganizationPublicPreviews","listOrganizationQuotas","updateByocInfrastructureCustomerAuthorizedAccess","updateOrganizationPublicPreview","validateByocInfrastructure"],"sources":["../../src/unstable-services/organization.ts"],"mappings":"wXAkBA,MAAM8C,EAAY,CAChB,OAAQ,uBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,kBACR,QAAS,gBACT,OAAQ,mBACR,UAAW,KACb,EAGA,MAAaC,EAAwC,gBAAU,SAAS,mBAAmB,EAAa,CACtG,OAAO/C,EAAaiD,EAAG,WAAY,CAAC,qJAAsJ,CAAChD,EAAQC,EAAiBC,EAAUC,EAAWC,EAAYC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACtS,CAAC,EAyaD,MAAa0C,EAKK,gBAAQ,GAAgBD,IAAMxC,EAAQC,EAAU,oCAAqC,waAAya,CAACT,EAAQU,EAAQC,EAAST,EAAUU,EAAUR,EAAYS,EAAUC,EAAWC,EAAkBiB,EAA8BG,EAAyBnB,EAAa6B,CAAS,CAAC,EAAI5B,EAASgC,EAAqDD,CAAC,CAAC,EAInwB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMxC,EAAQC,EAAU,wBAAyB,2/BAA4/B,CAACT,EAAQU,EAAQC,EAAST,EAAUW,EAAUC,EAAWV,EAAYc,EAASC,EAAW,KAAMa,EAA8BG,EAAyBnB,EAAa6B,CAAS,CAAC,EAAI5B,EAASiC,EAAuBF,CAAC,CAAC,EAI1yC,MAAaG,EAKK,gBAAQ,GAAgBH,IAAMxC,EAAQC,EAAU,gDAAiD,mOAAoO,CAACT,EAAQ,KAAMU,EAAQC,EAAST,EAAUW,EAAUC,EAAWkB,EAA8BG,EAAyBnB,EAAa6B,CAAS,CAAC,EAAI5B,EAASkC,EAA+CH,CAAC,CAAC,EAIliB,MAAaI,EAK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|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import type * as Redacted from "effect/Redacted";
|
|
3
|
+
import { type ClickHouseCloudOpError, type ClickHouseCloudOpContext } from "../protocol.ts";
|
|
4
|
+
export type { ClickHouseCloudOpError, ClickHouseCloudOpContext };
|
|
5
|
+
/** The cloud provider for a Postgres service. */
|
|
6
|
+
export type PgProvider = "aws" | "gcp";
|
|
7
|
+
export type PgVersion = "19" | "18" | "17";
|
|
8
|
+
/** The VM size for a Postgres service. */
|
|
9
|
+
export type PgSize = "c6gd.large" | "c6gd.xlarge" | "c6gd.2xlarge" | "c6gd.4xlarge" | "c6gd.8xlarge" | "c6gd.16xlarge" | "i7i.large" | "i7i.xlarge" | "i7i.2xlarge" | "i7i.4xlarge" | "i7i.8xlarge" | "i7i.12xlarge" | "i7i.16xlarge" | "i7i.24xlarge" | "i7ie.large" | "i7ie.xlarge" | "i7ie.2xlarge" | "i7ie.3xlarge" | "i7ie.6xlarge" | "i7ie.12xlarge" | "i7ie.18xlarge" | "i7ie.24xlarge" | "i8g.large" | "i8g.xlarge" | "i8g.2xlarge" | "i8g.4xlarge" | "i8g.8xlarge" | "i8g.16xlarge" | "i8g.24xlarge" | "i8ge.large" | "i8ge.xlarge" | "i8ge.2xlarge" | "i8ge.3xlarge" | "i8ge.6xlarge" | "i8ge.12xlarge" | "i8ge.18xlarge" | "i8ge.24xlarge" | "m6gd.large" | "m6gd.xlarge" | "m6gd.2xlarge" | "m6gd.4xlarge" | "m6gd.8xlarge" | "m6gd.16xlarge" | "m6id.large" | "m6id.xlarge" | "m6id.2xlarge" | "m6id.4xlarge" | "m6id.8xlarge" | "m6id.16xlarge" | "m8gd.large" | "m8gd.xlarge" | "m8gd.2xlarge" | "m8gd.4xlarge" | "m8gd.8xlarge" | "m8gd.16xlarge" | "r6gd.medium" | "r6gd.large" | "r6gd.xlarge" | "r6gd.2xlarge" | "r6gd.4xlarge" | "r6gd.8xlarge" | "r6gd.12xlarge" | "r6gd.16xlarge" | "r6id.large" | "r6id.xlarge" | "r6id.2xlarge" | "r6id.4xlarge" | "r6id.8xlarge" | "r6id.12xlarge" | "r6id.16xlarge" | "r6id.24xlarge" | "r6id.32xlarge" | "r8gd.medium" | "r8gd.large" | "r8gd.xlarge" | "r8gd.2xlarge" | "r8gd.4xlarge" | "r8gd.8xlarge" | "r8gd.12xlarge" | "r8gd.16xlarge" | "r8gd.24xlarge" | "r8gd.48xlarge" | "c4a-highmem-lssd-4" | "c4a-highmem-lssd-8" | "c4a-highmem-lssd-16" | "c4a-highmem-lssd-32" | "c4a-highmem-lssd-48" | "c4a-highmem-lssd-64" | "c4a-highmem-lssd-72" | "c4a-standard-lssd-4" | "c4a-standard-lssd-8" | "c4a-standard-lssd-16" | "c4a-standard-lssd-32" | "c4a-standard-lssd-48" | "c4a-standard-lssd-64" | "c4a-standard-lssd-72" | "c4-highmem-lssd-4" | "c4-highmem-lssd-8" | "c4-highmem-lssd-16" | "c4-highmem-lssd-24" | "c4-highmem-lssd-32" | "c4-highmem-lssd-48" | "c4-highmem-lssd-96" | "c4-highmem-lssd-144" | "c4-highmem-lssd-192" | "c4-highmem-lssd-288" | "c4-standard-lssd-4" | "c4-standard-lssd-8" | "c4-standard-lssd-16" | "c4-standard-lssd-24" | "c4-standard-lssd-32" | "c4-standard-lssd-48" | "c4-standard-lssd-96" | "c4-standard-lssd-144" | "c4-standard-lssd-192" | "c4-standard-lssd-288" | "c4d-highmem-lssd-8" | "c4d-highmem-lssd-16" | "c4d-highmem-lssd-32" | "c4d-highmem-lssd-48" | "c4d-highmem-lssd-64" | "c4d-highmem-lssd-96" | "c4d-highmem-lssd-192" | "c4d-highmem-lssd-384" | "c4d-standard-lssd-8" | "c4d-standard-lssd-16" | "c4d-standard-lssd-32" | "c4d-standard-lssd-48" | "c4d-standard-lssd-64" | "c4d-standard-lssd-96" | "c4d-standard-lssd-192" | "c4d-standard-lssd-384" | "c3-standard-lssd-4" | "c3-standard-lssd-8" | "c3-standard-lssd-22" | "c3-standard-lssd-44" | "c3-standard-lssd-88" | "c3-standard-lssd-176" | "c3d-highmem-lssd-8" | "c3d-highmem-lssd-16" | "c3d-highmem-lssd-30" | "c3d-highmem-lssd-60" | "c3d-highmem-lssd-90" | "c3d-highmem-lssd-180" | "c3d-highmem-lssd-360" | "c3d-standard-lssd-8" | "c3d-standard-lssd-16" | "c3d-standard-lssd-30" | "c3d-standard-lssd-60" | "c3d-standard-lssd-90" | "c3d-standard-lssd-180" | "c3d-standard-lssd-360" | "z3-highmem-highlssd-8" | "z3-highmem-highlssd-16" | "z3-highmem-highlssd-22" | "z3-highmem-highlssd-32" | "z3-highmem-highlssd-44" | "z3-highmem-highlssd-88" | "z3-highmem-standardlssd-14" | "z3-highmem-standardlssd-22" | "z3-highmem-standardlssd-44" | "z3-highmem-standardlssd-88" | "z3-highmem-standardlssd-176" | "n2-highmem-2xlssd-4" | "n2-highmem-2xlssd-8" | "n2-highmem-2xlssd-16" | "n2-highmem-2xlssd-32" | "n2-highmem-2xlssd-48" | "n2-highmem-2xlssd-64" | "n2-highmem-2xlssd-96" | "n2-standard-2xlssd-4" | "n2-standard-2xlssd-8" | "n2-standard-2xlssd-16" | "n2-standard-2xlssd-32" | "n2-standard-2xlssd-48" | "n2-standard-2xlssd-64" | "n2-standard-2xlssd-96" | "n2-highmem-4xlssd-2" | "n2-highmem-4xlssd-4" | "n2-highmem-4xlssd-8" | "n2-highmem-4xlssd-16" | "n2-highmem-4xlssd-32" | "n2-highmem-4xlssd-48" | "n2-highmem-8xlssd-2" | "n2-highmem-8xlssd-4" | "n2-highmem-8xlssd-8" | "n2-highmem-8xlssd-16" | "n2-highmem-8xlssd-32" | "n2-highmem-16xlssd-2" | "n2-highmem-16xlssd-4" | "n2-highmem-16xlssd-8" | "n2-highmem-16xlssd-16";
|
|
10
|
+
/** Type of high availability: "none" for no replication, "async" for asynchronous replication to a single standby, and "sync" for synchronous replication to the number of standbys in `standbyCount` (two by default). */
|
|
11
|
+
export type PgHaType = "none" | "async" | "sync";
|
|
12
|
+
/** Number of hot standby instances. Accepted values and defaults depend on `haType`: - "none": 0 (default) - "async": 1 (default) - "sync": 1, or 2 (default) When `haType` is updated without `standbyCount`, the default for the new `haType` applies. */
|
|
13
|
+
export type PgStandbyCount = 0 | 1 | 2;
|
|
14
|
+
export interface ResourceTagsV1 {
|
|
15
|
+
/** Tag key. Must be alphanumeric with dashes, underscores and dots. */
|
|
16
|
+
key: string;
|
|
17
|
+
/** Tag value. Must be alphanumeric with dashes, underscores and dots. */
|
|
18
|
+
value?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
/** Tags associated with the Postgres service. Tag keys starting with "chc_" are reserved for internal use. */
|
|
21
|
+
export type PgTags = Array<ResourceTagsV1>;
|
|
22
|
+
export interface PostgresIpAccessListEntry {
|
|
23
|
+
/** Rule ID returned by the service. Include it when editing an existing rule; omit it when creating a rule. */
|
|
24
|
+
id?: string | undefined;
|
|
25
|
+
/** IPv4 address or CIDR allowed to connect. Returned as a canonical CIDR. */
|
|
26
|
+
source: string;
|
|
27
|
+
/** Port or inclusive range, from 1 to 65535. Use "5432" for Postgres, "6432" for PgBouncer, or a range such as "5432..6432". */
|
|
28
|
+
portRange: string;
|
|
29
|
+
/** Optional description of the access list entry. */
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
}
|
|
32
|
+
/** IPv4 TCP access rules to apply when creating the service. Omit to allow all IPv4 and IPv6 addresses on Postgres (5432) and PgBouncer (6432). Provide an empty list to block public access. When provided, only these rules are allowed; include separate rules for each required port. */
|
|
33
|
+
export type CreatePostgresServiceRequestIpAccessListList = Array<PostgresIpAccessListEntry>;
|
|
34
|
+
/** Sets the default transaction isolation level for new transactions. */
|
|
35
|
+
export type PgConfigDefaultTransactionIsolation = "read committed" | "repeatable read" | "serializable";
|
|
36
|
+
/** Sets the minimum SSL/TLS protocol version allowed for client connections. */
|
|
37
|
+
export type PgConfigSslMinProtocolVersion = "TLSv1" | "TLSv1.1" | "TLSv1.2" | "TLSv1.3";
|
|
38
|
+
/** Sets the default compression method for compressible values stored out of line (TOAST). */
|
|
39
|
+
export type PgConfigDefaultToastCompression = "pglz" | "lz4";
|
|
40
|
+
/** Enables the planner's use of parallel hash plans. */
|
|
41
|
+
export type PgConfigEnableParallelHash = "on" | "off";
|
|
42
|
+
/** Selects the method used to perform asynchronous I/O. Postgres 18 and later. */
|
|
43
|
+
export type PgConfigIoMethod = "sync" | "worker" | "io_uring";
|
|
44
|
+
/** Compress full-page writes in WAL. Reduces I/O at the cost of CPU. Options vary by PostgreSQL version. */
|
|
45
|
+
export type PgConfigWalCompression = "off" | "on" | "lz4" | "zstd";
|
|
46
|
+
/** Logs a message when a session waits longer than deadlock_timeout to acquire a lock. */
|
|
47
|
+
export type PgConfigLogLockWaits = "on" | "off";
|
|
48
|
+
/** Postgres [runtime configuration](https://www.postgresql.org/docs/current/runtime-config.html) configuration. */
|
|
49
|
+
export interface PgConfig {
|
|
50
|
+
/** Sets the maximum number of concurrent connections to the database server. */
|
|
51
|
+
max_connections?: unknown | undefined;
|
|
52
|
+
/** Sets the default transaction isolation level for new transactions. */
|
|
53
|
+
default_transaction_isolation?: PgConfigDefaultTransactionIsolation | (string & {}) | undefined;
|
|
54
|
+
/** Sets the minimum SSL/TLS protocol version allowed for client connections. */
|
|
55
|
+
ssl_min_protocol_version?: PgConfigSslMinProtocolVersion | (string & {}) | undefined;
|
|
56
|
+
/** Sets the default compression method for compressible values stored out of line (TOAST). */
|
|
57
|
+
default_toast_compression?: PgConfigDefaultToastCompression | (string & {}) | undefined;
|
|
58
|
+
/** Sets the maximum memory to be used for maintenance operations. */
|
|
59
|
+
maintenance_work_mem?: unknown | undefined;
|
|
60
|
+
/** Sets the amount of memory Postgres will use for internal operations like sorting and hashing as part of executing a query. */
|
|
61
|
+
work_mem?: unknown | undefined;
|
|
62
|
+
/** Sets the planner's assumption about the total size of data caches. */
|
|
63
|
+
effective_cache_size?: unknown | undefined;
|
|
64
|
+
/** Sets the planner's estimate of the cost of a non-sequentially-fetched disk page. Lower values (1.1-1.5) are better for SSDs. */
|
|
65
|
+
random_page_cost?: unknown | undefined;
|
|
66
|
+
/** Number of concurrent disk I/O operations the planner expects. Higher values (100-200) benefit SSDs. */
|
|
67
|
+
effective_io_concurrency?: unknown | undefined;
|
|
68
|
+
/** Maximum number of background processes the system can support. Includes parallel query workers, logical replication, and more. */
|
|
69
|
+
max_worker_processes?: unknown | undefined;
|
|
70
|
+
/** Maximum number of workers that can be used for parallel operations. Cannot exceed max_worker_processes. */
|
|
71
|
+
max_parallel_workers?: unknown | undefined;
|
|
72
|
+
/** Maximum number of parallel workers per executor node for parallel queries. Use 0 to disable parallel queries. */
|
|
73
|
+
max_parallel_workers_per_gather?: unknown | undefined;
|
|
74
|
+
/** Maximum number of parallel workers for maintenance operations like CREATE INDEX and VACUUM. */
|
|
75
|
+
max_parallel_maintenance_workers?: unknown | undefined;
|
|
76
|
+
/** Percent of VM memory reserved for the shared_memory, from 25% to 75%. shared_buffers sized to fit in it. Limited to 50% on VMs with memory less or equal 16GB */
|
|
77
|
+
shared_memory_percent?: unknown | undefined;
|
|
78
|
+
/** Sets the maximum memory each session uses for temporary table buffers. */
|
|
79
|
+
temp_buffers?: unknown | undefined;
|
|
80
|
+
/** Multiple of work_mem that hash-based operations may use. */
|
|
81
|
+
hash_mem_multiplier?: unknown | undefined;
|
|
82
|
+
/** Enables the planner's use of parallel hash plans. */
|
|
83
|
+
enable_parallel_hash?: PgConfigEnableParallelHash | (string & {}) | undefined;
|
|
84
|
+
/** Number of concurrent disk I/O operations used for maintenance work such as vacuum. */
|
|
85
|
+
maintenance_io_concurrency?: unknown | undefined;
|
|
86
|
+
/** Selects the method used to perform asynchronous I/O. Postgres 18 and later. */
|
|
87
|
+
io_method?: PgConfigIoMethod | (string & {}) | undefined;
|
|
88
|
+
/** Number of I/O worker processes used when io_method is worker. Postgres 18 only. */
|
|
89
|
+
io_workers?: unknown | undefined;
|
|
90
|
+
/** Minimum number of I/O worker processes kept running when io_method is worker. Postgres 19 and later. */
|
|
91
|
+
io_min_workers?: unknown | undefined;
|
|
92
|
+
/** Maximum number of I/O worker processes started when io_method is worker. Postgres 19 and later. */
|
|
93
|
+
io_max_workers?: unknown | undefined;
|
|
94
|
+
/** Sleep time between background writer activity rounds. */
|
|
95
|
+
bgwriter_delay?: unknown | undefined;
|
|
96
|
+
/** Amount of data written by the background writer after which the OS is asked to flush it to disk. */
|
|
97
|
+
bgwriter_flush_after?: unknown | undefined;
|
|
98
|
+
/** Maximum number of buffers the background writer writes per round. */
|
|
99
|
+
bgwriter_lru_maxpages?: unknown | undefined;
|
|
100
|
+
/** Multiple of the average recent buffer demand that the background writer cleans per round. */
|
|
101
|
+
bgwriter_lru_multiplier?: unknown | undefined;
|
|
102
|
+
/** Abort any statement that runs longer than the specified time. Use 0 to disable. */
|
|
103
|
+
statement_timeout?: unknown | undefined;
|
|
104
|
+
/** Abort any statement that waits longer than the specified time while attempting to acquire a lock. Use 0 to disable. */
|
|
105
|
+
lock_timeout?: unknown | undefined;
|
|
106
|
+
/** Terminate any session that has been idle for longer than the specified time. Use 0 to disable. */
|
|
107
|
+
idle_session_timeout?: unknown | undefined;
|
|
108
|
+
/** Terminate any session that has been idle within an open transaction for longer than the specified time. Use 0 to disable. */
|
|
109
|
+
idle_in_transaction_session_timeout?: unknown | undefined;
|
|
110
|
+
/** Terminate any statement that takes more than the specified time, even while active. Use 0 to disable. */
|
|
111
|
+
transaction_timeout?: unknown | undefined;
|
|
112
|
+
/** Terminate replication connections that are inactive for longer than this time. Use 0 to disable. */
|
|
113
|
+
wal_sender_timeout?: unknown | undefined;
|
|
114
|
+
/** Minimum size of past WAL files kept in pg_wal for standby servers. Use 0 to disable. */
|
|
115
|
+
wal_keep_size?: unknown | undefined;
|
|
116
|
+
/** Minimum size to shrink the WAL to. WAL files are recycled rather than removed when below this size. */
|
|
117
|
+
min_wal_size?: unknown | undefined;
|
|
118
|
+
/** Maximum size WAL can grow between checkpoints. Larger values improve write performance but increase crash recovery time. */
|
|
119
|
+
max_wal_size?: unknown | undefined;
|
|
120
|
+
/** Sets the maximum time between automatic WAL checkpoints. */
|
|
121
|
+
checkpoint_timeout?: unknown | undefined;
|
|
122
|
+
/** Specifies the maximum size of WAL files that replication slots are allowed to retain. Use -1 for unlimited. */
|
|
123
|
+
max_slot_wal_keep_size?: unknown | undefined;
|
|
124
|
+
/** Compress full-page writes in WAL. Reduces I/O at the cost of CPU. Options vary by PostgreSQL version. */
|
|
125
|
+
wal_compression?: PgConfigWalCompression | (string & {}) | undefined;
|
|
126
|
+
/** Sets the number of disk-page buffers in shared memory for WAL. A number without a unit is in 8 kB pages. */
|
|
127
|
+
wal_buffers?: unknown | undefined;
|
|
128
|
+
/** Maximum number of replication slots. Standbys and logical replication each use slots. */
|
|
129
|
+
max_replication_slots?: unknown | undefined;
|
|
130
|
+
/** Maximum number of simultaneously running WAL sender processes. */
|
|
131
|
+
max_wal_senders?: unknown | undefined;
|
|
132
|
+
/** Maximum number of logical replication workers for subscriptions on this server. */
|
|
133
|
+
max_logical_replication_workers?: unknown | undefined;
|
|
134
|
+
/** Replication slots reserved for REPACK CONCURRENTLY, separate from max_replication_slots. Postgres 19 and later. */
|
|
135
|
+
max_repack_replication_slots?: unknown | undefined;
|
|
136
|
+
/** Maximum number of table synchronization workers per subscription. */
|
|
137
|
+
max_sync_workers_per_subscription?: unknown | undefined;
|
|
138
|
+
/** Maximum memory used for logical decoding before changes spill to disk. */
|
|
139
|
+
logical_decoding_work_mem?: unknown | undefined;
|
|
140
|
+
/** Maximum number of autovacuum worker processes that can run at the same time. Workers share a single cost-limit budget, so raising this alone may not speed up vacuuming. */
|
|
141
|
+
autovacuum_max_workers?: unknown | undefined;
|
|
142
|
+
/** Maximum number of parallel workers a single autovacuum worker can use. 0 (the default) turns parallel autovacuum off. Postgres 19 and later. */
|
|
143
|
+
autovacuum_max_parallel_workers?: unknown | undefined;
|
|
144
|
+
/** Minimum delay between autovacuum runs. Lower values make autovacuum check for work more frequently. */
|
|
145
|
+
autovacuum_naptime?: unknown | undefined;
|
|
146
|
+
/** Maximum memory each autovacuum worker uses to track dead tuples. Higher values reduce repeated index-vacuum passes on large tables. Use -1 to fall back to maintenance_work_mem. */
|
|
147
|
+
autovacuum_work_mem?: unknown | undefined;
|
|
148
|
+
/** Fraction of a table's rows that must change before autovacuum runs. Lower values vacuum large tables more frequently. */
|
|
149
|
+
autovacuum_vacuum_scale_factor?: unknown | undefined;
|
|
150
|
+
/** Fraction of a table's rows that must change before autovacuum runs ANALYZE to refresh planner statistics. */
|
|
151
|
+
autovacuum_analyze_scale_factor?: unknown | undefined;
|
|
152
|
+
/** Fraction of a table's rows that must be inserted before autovacuum runs. Helps vacuum insert-heavy, rarely-updated tables. */
|
|
153
|
+
autovacuum_vacuum_insert_scale_factor?: unknown | undefined;
|
|
154
|
+
/** Minimum number of tuple updates or deletes prior to vacuum. */
|
|
155
|
+
autovacuum_vacuum_threshold?: unknown | undefined;
|
|
156
|
+
/** Minimum number of tuple inserts, updates, or deletes prior to analyze. */
|
|
157
|
+
autovacuum_analyze_threshold?: unknown | undefined;
|
|
158
|
+
/** Minimum number of tuple inserts prior to vacuum, or -1 to disable insert vacuums. */
|
|
159
|
+
autovacuum_vacuum_insert_threshold?: unknown | undefined;
|
|
160
|
+
/** Age at which to autovacuum a table to prevent transaction ID wraparound. */
|
|
161
|
+
autovacuum_freeze_max_age?: unknown | undefined;
|
|
162
|
+
/** Cost-accounting limit shared across all autovacuum workers before they pause. Use -1 to inherit vacuum_cost_limit. */
|
|
163
|
+
autovacuum_vacuum_cost_limit?: unknown | undefined;
|
|
164
|
+
/** Time autovacuum sleeps when the cost limit is reached. Lower values speed up vacuuming at the cost of more I/O. */
|
|
165
|
+
autovacuum_vacuum_cost_delay?: unknown | undefined;
|
|
166
|
+
/** Time in milliseconds a manual VACUUM sleeps when its cost limit is exceeded. 0 disables cost-based delay. */
|
|
167
|
+
vacuum_cost_delay?: unknown | undefined;
|
|
168
|
+
/** Logs statements that run at least this many milliseconds. 0 logs all statements; -1 disables. */
|
|
169
|
+
log_min_duration_statement?: unknown | undefined;
|
|
170
|
+
/** Logs temporary files of at least this size in kilobytes. 0 logs all temporary files; -1 disables. */
|
|
171
|
+
log_temp_files?: unknown | undefined;
|
|
172
|
+
/** Logs a message when a session waits longer than deadlock_timeout to acquire a lock. */
|
|
173
|
+
log_lock_waits?: PgConfigLogLockWaits | (string & {}) | undefined;
|
|
174
|
+
/** Maximum bytes of each bind parameter value logged with statements. 0 disables; -1 logs values in full. */
|
|
175
|
+
log_parameter_max_length?: unknown | undefined;
|
|
176
|
+
/** Bytes reserved to store the text of the currently running command of each session, shown in pg_stat_activity. */
|
|
177
|
+
track_activity_query_size?: unknown | undefined;
|
|
178
|
+
}
|
|
179
|
+
/** PgBouncer [runtime configuration](https://www.pgbouncer.org/config.html) configuration. */
|
|
180
|
+
export type PgBouncerConfig = {
|
|
181
|
+
[key: string]: string | undefined;
|
|
182
|
+
};
|
|
183
|
+
export interface CreatePostgresServiceRequest {
|
|
184
|
+
/** ID of the organization that will own the service. */
|
|
185
|
+
organizationId: string;
|
|
186
|
+
name: string;
|
|
187
|
+
provider: PgProvider | (string & {});
|
|
188
|
+
region: string;
|
|
189
|
+
postgresVersion?: PgVersion | (string & {}) | undefined;
|
|
190
|
+
size: PgSize | (string & {});
|
|
191
|
+
haType?: PgHaType | (string & {}) | undefined;
|
|
192
|
+
standbyCount?: PgStandbyCount | (number & {}) | undefined;
|
|
193
|
+
tags?: PgTags | undefined;
|
|
194
|
+
/** IPv4 TCP access rules to apply when creating the service. Omit to allow all IPv4 and IPv6 addresses on Postgres (5432) and PgBouncer (6432). Provide an empty list to block public access. When provided, only these rules are allowed; include separate rules for each required port. */
|
|
195
|
+
ipAccessList?: CreatePostgresServiceRequestIpAccessListList | undefined;
|
|
196
|
+
pgConfig?: PgConfig | undefined;
|
|
197
|
+
pgBouncerConfig?: PgBouncerConfig | undefined;
|
|
198
|
+
}
|
|
199
|
+
/** IPv4 access rules shown in the console. IPv6 rules are not included. Returned when reading or configuring access; omitted from other service updates. */
|
|
200
|
+
export type PostgresServiceIpAccessListList = Array<PostgresIpAccessListEntry>;
|
|
201
|
+
/** Current state of the service */
|
|
202
|
+
export type PgStateProperty = "creating" | "restarting" | "running" | "replaying_wal" | "restoring_backup" | "finalizing_restore" | "unavailable" | "stopped" | "deleting";
|
|
203
|
+
export interface PostgresService {
|
|
204
|
+
name?: string | undefined;
|
|
205
|
+
provider?: PgProvider | undefined;
|
|
206
|
+
region?: string | undefined;
|
|
207
|
+
postgresVersion?: PgVersion | undefined;
|
|
208
|
+
size?: PgSize | undefined;
|
|
209
|
+
haType?: PgHaType | undefined;
|
|
210
|
+
standbyCount?: PgStandbyCount | undefined;
|
|
211
|
+
tags?: PgTags | undefined;
|
|
212
|
+
/** IPv4 access rules shown in the console. IPv6 rules are not included. Returned when reading or configuring access; omitted from other service updates. */
|
|
213
|
+
ipAccessList?: PostgresServiceIpAccessListList | undefined;
|
|
214
|
+
id: string;
|
|
215
|
+
storageSize?: number | undefined;
|
|
216
|
+
state?: PgStateProperty | undefined;
|
|
217
|
+
createdAt?: string | undefined;
|
|
218
|
+
isPrimary?: boolean | undefined;
|
|
219
|
+
/** Connection string to the Postgres service. Embeds the service password, so it is only returned when the service is created or its password is reset. Omitted from every other response when Postgres credential redaction is enabled for the organization. Not guaranteed to be present -- treat as optional. */
|
|
220
|
+
connectionString?: string | Redacted.Redacted<string> | undefined;
|
|
221
|
+
/** Username for the Postgres service */
|
|
222
|
+
username?: string | undefined;
|
|
223
|
+
/** Password for the Postgres service. Only returned when the service is created or its password is reset. Omitted from every other response when Postgres credential redaction is enabled for the organization. Not guaranteed to be present -- treat as optional. */
|
|
224
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
225
|
+
/** Hostname for the Postgres service */
|
|
226
|
+
hostname?: string | undefined;
|
|
227
|
+
deletionProtection?: boolean | undefined;
|
|
228
|
+
/** Earliest point in time the service can be restored to with the restore endpoint. ISO-8601. Only present for a primary service once its first backup has completed. */
|
|
229
|
+
earliestRestoreTime?: string | undefined;
|
|
230
|
+
}
|
|
231
|
+
export interface DeletePostgresPrivateEndpointRequest {
|
|
232
|
+
/** ID of the organization that owns the Postgres service. */
|
|
233
|
+
organizationId: string;
|
|
234
|
+
/** ID of the Postgres service. */
|
|
235
|
+
postgresId: string;
|
|
236
|
+
}
|
|
237
|
+
export interface DeletePostgresPrivateEndpointResponse {
|
|
238
|
+
/** HTTP status code. */
|
|
239
|
+
status?: number | undefined;
|
|
240
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
241
|
+
requestId?: string | undefined;
|
|
242
|
+
}
|
|
243
|
+
export interface GetPostgresPrivateEndpointRequest {
|
|
244
|
+
/** ID of the organization that owns the Postgres service. */
|
|
245
|
+
organizationId: string;
|
|
246
|
+
/** ID of the Postgres service. */
|
|
247
|
+
postgresId: string;
|
|
248
|
+
}
|
|
249
|
+
export interface PostgresPrivateEndpointPort {
|
|
250
|
+
/** Port exposed by the endpoint service. */
|
|
251
|
+
port: number;
|
|
252
|
+
/** Port on the Postgres service it forwards to. */
|
|
253
|
+
targetPort: number;
|
|
254
|
+
}
|
|
255
|
+
/** Ports the endpoint service forwards. */
|
|
256
|
+
export type PostgresPrivateEndpointPortsList = Array<PostgresPrivateEndpointPort>;
|
|
257
|
+
/** AWS region IDs, other than the service region, from which VPC endpoints can connect, such as `us-west-2`. The service region is always supported and must not be listed. Requires cross-region private endpoints to be enabled for the organization. */
|
|
258
|
+
export type PostgresPrivateEndpointSupportedRegionsList = Array<string>;
|
|
259
|
+
export interface PostgresPrivateEndpointVpcEndpoint {
|
|
260
|
+
/** ID of the AWS VPC endpoint that is allowed to connect. */
|
|
261
|
+
vpcEndpointId: string;
|
|
262
|
+
/** Optional description of the VPC endpoint. */
|
|
263
|
+
description?: string | undefined;
|
|
264
|
+
}
|
|
265
|
+
/** VPC endpoints approved to connect. */
|
|
266
|
+
export type PostgresPrivateEndpointAllowedVpcEndpointsList = Array<PostgresPrivateEndpointVpcEndpoint>;
|
|
267
|
+
export interface PostgresPrivateEndpoint {
|
|
268
|
+
/** State of the private endpoint service: one of 'creating', 'available', 'deleting'. More states may be added. It is `creating` for about 5 to 10 minutes after creation, then `available`. */
|
|
269
|
+
state: string;
|
|
270
|
+
/** Name of the AWS endpoint service. Use it as the service name when creating a VPC endpoint. Omitted until the service is created. */
|
|
271
|
+
endpointServiceName?: string | undefined;
|
|
272
|
+
/** ID of the AWS endpoint service. Omitted until the service is created. */
|
|
273
|
+
endpointServiceId?: string | undefined;
|
|
274
|
+
/** Hostname that resolves to the Postgres service from an approved VPC endpoint. Omitted until the service is available. */
|
|
275
|
+
privateHostname?: string | undefined;
|
|
276
|
+
/** Private DNS name of the endpoint service. Omitted until it is assigned. */
|
|
277
|
+
privateDnsName?: string | undefined;
|
|
278
|
+
/** Verification state of the private DNS name. Omitted until it is assigned. */
|
|
279
|
+
privateDnsVerificationState?: string | undefined;
|
|
280
|
+
/** IP address type of the endpoint service. */
|
|
281
|
+
ipAddressType: string;
|
|
282
|
+
/** Ports the endpoint service forwards. */
|
|
283
|
+
ports: PostgresPrivateEndpointPortsList;
|
|
284
|
+
/** AWS region IDs, other than the service region, from which VPC endpoints can connect, such as `us-west-2`. The service region is always supported and must not be listed. Requires cross-region private endpoints to be enabled for the organization. */
|
|
285
|
+
supportedRegions: PostgresPrivateEndpointSupportedRegionsList;
|
|
286
|
+
/** VPC endpoints approved to connect. */
|
|
287
|
+
allowedVpcEndpoints: PostgresPrivateEndpointAllowedVpcEndpointsList;
|
|
288
|
+
}
|
|
289
|
+
/** Full replacement of the approved VPC endpoints: endpoints not listed are no longer allowed to connect. Each endpoint ID must be unique. */
|
|
290
|
+
export type PatchPostgresPrivateEndpointRequestAllowedVpcEndpointsList = Array<PostgresPrivateEndpointVpcEndpoint>;
|
|
291
|
+
/** Full replacement of the supported regions. AWS region IDs, other than the service region, from which VPC endpoints can connect, such as `us-west-2`. The service region is always supported and must not be listed. Requires cross-region private endpoints to be enabled for the organization. */
|
|
292
|
+
export type PatchPostgresPrivateEndpointRequestSupportedRegionsList = Array<string>;
|
|
293
|
+
export interface PatchPostgresPrivateEndpointRequest {
|
|
294
|
+
/** ID of the organization that owns the Postgres service. */
|
|
295
|
+
organizationId: string;
|
|
296
|
+
/** ID of the Postgres service. */
|
|
297
|
+
postgresId: string;
|
|
298
|
+
/** Full replacement of the approved VPC endpoints: endpoints not listed are no longer allowed to connect. Each endpoint ID must be unique. */
|
|
299
|
+
allowedVpcEndpoints?: PatchPostgresPrivateEndpointRequestAllowedVpcEndpointsList | undefined;
|
|
300
|
+
/** Full replacement of the supported regions. AWS region IDs, other than the service region, from which VPC endpoints can connect, such as `us-west-2`. The service region is always supported and must not be listed. Requires cross-region private endpoints to be enabled for the organization. */
|
|
301
|
+
supportedRegions?: PatchPostgresPrivateEndpointRequestSupportedRegionsList | undefined;
|
|
302
|
+
}
|
|
303
|
+
export interface PostgresBlockingQueriesGetListRequest {
|
|
304
|
+
/** ID of the organization that owns the Postgres service. */
|
|
305
|
+
organizationId: string;
|
|
306
|
+
/** ID of the requested Postgres service. */
|
|
307
|
+
postgresId: string;
|
|
308
|
+
/** Inclusive start of the time window (RFC 3339 date-time). */
|
|
309
|
+
from_date: string;
|
|
310
|
+
/** Inclusive end of the time window (RFC 3339 date-time). */
|
|
311
|
+
to_date: string;
|
|
312
|
+
/** Filter to groups whose waiting sessions used this database. */
|
|
313
|
+
db_name?: string | undefined;
|
|
314
|
+
/** Filter to groups whose waiting sessions ran as this database user. */
|
|
315
|
+
db_user?: string | undefined;
|
|
316
|
+
/** Filter to groups whose waiting sessions had this `application_name`. An empty value matches sessions with no application name. */
|
|
317
|
+
app?: string | undefined;
|
|
318
|
+
/** Maximum number of results to return. */
|
|
319
|
+
limit?: number | undefined;
|
|
320
|
+
/** Number of results to skip before returning. */
|
|
321
|
+
offset?: number | undefined;
|
|
322
|
+
}
|
|
323
|
+
/** Database users of the waiting sessions (up to 10). */
|
|
324
|
+
export type PostgresBlockingQueryBlockedUsersList = Array<string>;
|
|
325
|
+
/** Non-empty `application_name` values of the waiting sessions (up to 10). */
|
|
326
|
+
export type PostgresBlockingQueryBlockedAppsList = Array<string>;
|
|
327
|
+
/** Process IDs of the waiting sessions, most recently seen first (up to 10). */
|
|
328
|
+
export type PostgresBlockingQueryBlockedPidsList = Array<number>;
|
|
329
|
+
/** Database users of the blocking sessions (up to 10). */
|
|
330
|
+
export type PostgresBlockingQueryBlockingUsersList = Array<string>;
|
|
331
|
+
/** Non-empty `application_name` values of the blocking sessions (up to 10). */
|
|
332
|
+
export type PostgresBlockingQueryBlockingAppsList = Array<string>;
|
|
333
|
+
/** Process IDs of the blocking sessions, most recently seen first (up to 10). A prepared transaction reports 0. */
|
|
334
|
+
export type PostgresBlockingQueryBlockingPidsList = Array<number>;
|
|
335
|
+
export interface PostgresBlockingQuery {
|
|
336
|
+
/** Database of the waiting sessions. */
|
|
337
|
+
database: string;
|
|
338
|
+
/** Query ID of the waiting statement, as in slow query patterns. Empty when Postgres had none yet; the group is then a single waiting session. */
|
|
339
|
+
blockedQueryId: string;
|
|
340
|
+
/** Normalized text of the waiting statement from Query Insights. Empty when no text is available. */
|
|
341
|
+
blockedQuery: string;
|
|
342
|
+
/** Database users of the waiting sessions (up to 10). */
|
|
343
|
+
blockedUsers: PostgresBlockingQueryBlockedUsersList;
|
|
344
|
+
/** Non-empty `application_name` values of the waiting sessions (up to 10). */
|
|
345
|
+
blockedApps: PostgresBlockingQueryBlockedAppsList;
|
|
346
|
+
/** Process IDs of the waiting sessions, most recently seen first (up to 10). */
|
|
347
|
+
blockedPids: PostgresBlockingQueryBlockedPidsList;
|
|
348
|
+
/** Postgres lock type waited on at the latest sample (for example, relation, tuple, transactionid, advisory). */
|
|
349
|
+
lockType: string;
|
|
350
|
+
/** Lock mode requested by the waiting session at the latest sample (for example, ShareLock). */
|
|
351
|
+
blockedMode: string;
|
|
352
|
+
/** Database of the blocking session. Empty for a prepared transaction. */
|
|
353
|
+
blockingDatabase: string;
|
|
354
|
+
/** Query ID of the blocking statement. Empty when the blocker had none; the group is then a single blocking session. */
|
|
355
|
+
blockingQueryId: string;
|
|
356
|
+
/** Normalized text of the blocking statement from Query Insights. Empty when no text is available. */
|
|
357
|
+
blockingQuery: string;
|
|
358
|
+
/** Database users of the blocking sessions (up to 10). */
|
|
359
|
+
blockingUsers: PostgresBlockingQueryBlockingUsersList;
|
|
360
|
+
/** Non-empty `application_name` values of the blocking sessions (up to 10). */
|
|
361
|
+
blockingApps: PostgresBlockingQueryBlockingAppsList;
|
|
362
|
+
/** Process IDs of the blocking sessions, most recently seen first (up to 10). A prepared transaction reports 0. */
|
|
363
|
+
blockingPids: PostgresBlockingQueryBlockingPidsList;
|
|
364
|
+
/** True when the blocker is a prepared transaction, which has no session. */
|
|
365
|
+
blockingPrepared: boolean;
|
|
366
|
+
/** True when the blocker is a session the service uses internally, for example for monitoring or replication. Its query text is not returned. */
|
|
367
|
+
blockingInternal: boolean;
|
|
368
|
+
/** State of the blocking session at the latest sample (for example, active, idle in transaction). */
|
|
369
|
+
latestBlockingState: string;
|
|
370
|
+
/** Age of the blocking transaction at the latest sample, in seconds. `null` when not reported, as for a prepared transaction. */
|
|
371
|
+
latestBlockingXactSeconds: number | null;
|
|
372
|
+
/** Postgres backend type of the blocker at the latest sample (for example, client backend, autovacuum worker). */
|
|
373
|
+
latestBlockingBackendType: string;
|
|
374
|
+
/** True when the blocker was itself waiting on a lock in at least one sample. */
|
|
375
|
+
blockingSeenWaiting: boolean;
|
|
376
|
+
/** Number of distinct waiting sessions in the group. */
|
|
377
|
+
sessions: number;
|
|
378
|
+
/** Number of samples in which the group was seen. */
|
|
379
|
+
samples: number;
|
|
380
|
+
/** Longest observed wait of a waiting session, in seconds. `null` when no sample reported how long the session had waited. */
|
|
381
|
+
longestWaitSeconds: number | null;
|
|
382
|
+
/** Time of the latest sample (RFC 3339). */
|
|
383
|
+
lastSeen: string;
|
|
384
|
+
}
|
|
385
|
+
export type PostgresBlockingQueriesGetListResponseBodyList = Array<PostgresBlockingQuery>;
|
|
386
|
+
export type PostgresBlockingQueriesGetListResponse = PostgresBlockingQueriesGetListResponseBodyList;
|
|
387
|
+
/** AWS region IDs, other than the service region, from which VPC endpoints can connect, such as `us-west-2`. The service region is always supported and must not be listed. Requires cross-region private endpoints to be enabled for the organization. */
|
|
388
|
+
export type PostPostgresPrivateEndpointRequestSupportedRegionsList = Array<string>;
|
|
389
|
+
export interface PostPostgresPrivateEndpointRequest {
|
|
390
|
+
/** ID of the organization that owns the Postgres service. */
|
|
391
|
+
organizationId: string;
|
|
392
|
+
/** ID of the Postgres service. */
|
|
393
|
+
postgresId: string;
|
|
394
|
+
/** AWS region IDs, other than the service region, from which VPC endpoints can connect, such as `us-west-2`. The service region is always supported and must not be listed. Requires cross-region private endpoints to be enabled for the organization. */
|
|
395
|
+
supportedRegions?: PostPostgresPrivateEndpointRequestSupportedRegionsList | undefined;
|
|
396
|
+
}
|
|
397
|
+
export type CreatePostgresServiceError = ClickHouseCloudOpError;
|
|
398
|
+
/** Create new Postgres service **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Creates a new Postgres service in the organization and returns it. The service is started asynchronously. */
|
|
399
|
+
export declare const createPostgresService: API.OperationMethod<CreatePostgresServiceRequest, PostgresService, CreatePostgresServiceError, ClickHouseCloudOpContext>;
|
|
400
|
+
export type DeletePostgresPrivateEndpointError = ClickHouseCloudOpError;
|
|
401
|
+
/** Delete the PostgreSQL private endpoint **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Deletes the AWS private endpoint service of a Postgres service. Connections through approved VPC endpoints stop working. Private endpoints are available only for AWS Postgres services, and only for organizations with the feature enabled. */
|
|
402
|
+
export declare const deletePostgresPrivateEndpoint: API.OperationMethod<DeletePostgresPrivateEndpointRequest, DeletePostgresPrivateEndpointResponse, DeletePostgresPrivateEndpointError, ClickHouseCloudOpContext>;
|
|
403
|
+
export type GetPostgresPrivateEndpointError = ClickHouseCloudOpError;
|
|
404
|
+
/** Get the PostgreSQL private endpoint **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the AWS private endpoint service of a Postgres service, or 404 if it has not been created. Private endpoints are available only for AWS Postgres services, and only for organizations with the feature enabled. */
|
|
405
|
+
export declare const getPostgresPrivateEndpoint: API.OperationMethod<GetPostgresPrivateEndpointRequest, PostgresPrivateEndpoint, GetPostgresPrivateEndpointError, ClickHouseCloudOpContext>;
|
|
406
|
+
export type PatchPostgresPrivateEndpointError = ClickHouseCloudOpError;
|
|
407
|
+
/** Update the PostgreSQL private endpoint **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Approves VPC endpoints by ID and sets the supported regions. At least one of `allowedVpcEndpoints` and `supportedRegions` is required, and each one provided replaces the existing list in full, so include every entry to keep. Private endpoints are available only for AWS Postgres services, and only for organizations with the feature enabled. Available on the Scale and Enterprise plans; Basic organizations get a 403. */
|
|
408
|
+
export declare const patchPostgresPrivateEndpoint: API.OperationMethod<PatchPostgresPrivateEndpointRequest, PostgresPrivateEndpoint, PatchPostgresPrivateEndpointError, ClickHouseCloudOpContext>;
|
|
409
|
+
export type PostgresBlockingQueriesGetListError = ClickHouseCloudOpError;
|
|
410
|
+
/** List Postgres blocking queries **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns which queries waited on locks held by other queries on a Postgres service during the given time window. Each item groups one waiting query with one direct blocker, most-sampled first. Groups come only from periods when blocking query collection was on for the service; turn it on in the console. Results are paginated with `limit`/`offset` and include `totalCount`. The time range must not exceed 31 days, and `to_date` must be after `from_date`. */
|
|
411
|
+
export declare const postgresBlockingQueriesGetList: API.OperationMethod<PostgresBlockingQueriesGetListRequest, PostgresBlockingQueriesGetListResponse, PostgresBlockingQueriesGetListError, ClickHouseCloudOpContext>;
|
|
412
|
+
export type PostPostgresPrivateEndpointError = ClickHouseCloudOpError;
|
|
413
|
+
/** Create the PostgreSQL private endpoint **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Creates the AWS private endpoint service of a Postgres service. Creation takes about 5 to 10 minutes: `state` is `creating` until the service is `available`. A VPC endpoint can connect only after its ID is approved with the update endpoint. Returns 409 if the service already has a private endpoint. Private endpoints are available only for AWS Postgres services, and only for organizations with the feature enabled. Available on the Scale and Enterprise plans; Basic organizations get a 403. */
|
|
414
|
+
export declare const postPostgresPrivateEndpoint: API.OperationMethod<PostPostgresPrivateEndpointRequest, PostgresPrivateEndpoint, PostPostgresPrivateEndpointError, ClickHouseCloudOpContext>;
|
|
415
|
+
//# sourceMappingURL=postgres.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","sources":["../../src/unstable-services/postgres.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAIjD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC9B,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC;AAejE,iDAAiD;AACjD,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,CAAC;AACvC,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,0CAA0C;AAC1C,MAAM,MAAM,MAAM,GACd,YAAY,GACZ,aAAa,GACb,cAAc,GACd,cAAc,GACd,cAAc,GACd,eAAe,GACf,WAAW,GACX,YAAY,GACZ,aAAa,GACb,aAAa,GACb,aAAa,GACb,cAAc,GACd,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,GACb,cAAc,GACd,cAAc,GACd,cAAc,GACd,eAAe,GACf,eAAe,GACf,eAAe,GACf,WAAW,GACX,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HouseCloudServiceErrors as d,l as f,n as p,protocol$ClickHouseCloudProtocol as m,retry$Retry as h,traits$Http as g,traits$Label as _,traits$Query as v,traits$RawResponseRoot as y,traits$SensitiveValue as b,wc as x,xc as S}from"../_bundle/sdk.js";const C={system:`clickhouse-cloud-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`ClickhouseCloud`,service:`Postgres`,labels:`clickhouse_cloud`,propagate:`w3c`};const w=/*@__PURE__*/ p(e=>e===l?f(`PostgresService`,`{input:#7,output:#8,errors:[],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"Create%"};$4(>9)@"ResourceTagsV1";$5(#1);$4(>10)@"PostgresIpAccessListEntry";$5(#3);$4(>11)@"PgConfig";$7($1,$1);$4(>12)@"Create%Request";$4(>13)@"%";$3({key:$1,value:$2($1)});$3({id:$2($1),source:$1,portRange:$1,description:$2($1)});$3({max_connections:$2($6),default_transaction_isolation:$2($1),ssl_min_protocol_version:$2($1),default_toast_compression:$2($1),maintenance_work_mem:$2($6),work_mem:$2($6),effective_cache_size:$2($6),random_page_cost:$2($6),effective_io_concurrency:$2($6),max_worker_processes:$2($6),max_parallel_workers:$2($6),max_parallel_workers_per_gather:$2($6),max_parallel_maintenance_workers:$2($6),shared_memory_percent:$2($6),temp_buffers:$2($6),hash_mem_multiplier:$2($6),enable_parallel_hash:$2($1),maintenance_io_concurrency:$2($6),io_method:$2($1),io_workers:$2($6),io_min_workers:$2($6),io_max_workers:$2($6),bgwriter_delay:$2($6),bgwriter_flush_after:$2($6),bgwriter_lru_maxpages:$2($6),bgwriter_lru_multiplier:$2($6),statement_timeout:$2($6),lock_timeout:$2($6),idle_session_timeout:$2($6),idle_in_transaction_session_timeout:$2($6),transaction_timeout:$2($6),wal_sender_timeout:$2($6),wal_keep_size:$2($6),min_wal_size:$2($6),max_wal_size:$2($6),checkpoint_timeout:$2($6),max_slot_wal_keep_size:$2($6),wal_compression:$2($1),wal_buffers:$2($6),max_replication_slots:$2($6),max_wal_senders:$2($6),max_logical_replication_workers:$2($6),max_repack_replication_slots:$2($6),max_sync_workers_per_subscription:$2($6),logical_decoding_work_mem:$2($6),autovacuum_max_workers:$2($6),autovacuum_max_parallel_workers:$2($6),autovacuum_naptime:$2($6),autovacuum_work_mem:$2($6),autovacuum_vacuum_scale_factor:$2($6),autovacuum_analyze_scale_factor:$2($6),autovacuum_vacuum_insert_scale_factor:$2($6),autovacuum_vacuum_threshold:$2($6),autovacuum_analyze_threshold:$2($6),autovacuum_vacuum_insert_threshold:$2($6),autovacuum_freeze_max_age:$2($6),autovacuum_vacuum_cost_limit:$2($6),autovacuum_vacuum_cost_delay:$2($6),vacuum_cost_delay:$2($6),log_min_duration_statement:$2($6),log_temp_files:$2($6),log_lock_waits:$2($1),log_parameter_max_length:$2($6),track_activity_query_size:$2($6)});$3({organizationId:$1.pipe($9()),name:$1,provider:$1,region:$1,postgresVersion:$2($1),size:$1,haType:$2($1),standbyCount:$2($10),tags:$2(#2),ipAccessList:$2(#4),pgConfig:$2(#5),pgBouncerConfig:$2(#6)}).pipe($8({method:"POST",uri:"/v1/organizations/{organizationId}/postgres",code:200}));$3({name:$2($1),provider:$2($1),region:$2($1),postgresVersion:$2($1),size:$2($1),haType:$2($1),standbyCount:$2($10),tags:$2(#2),ipAccessList:$2(#4),id:$1,storageSize:$2($10),state:$2($1),createdAt:$2($1),isPrimary:$2($11),connectionString:$2($1.pipe($12({}))),username:$2($1),password:$2($1.pipe($12({}))),hostname:$2($1),deletionProtection:$2($11),earliestRestoreTime:$2($1)})`,[o,r,s,i,c,x,a,n,g,_,t,S,b,d,m,h,C]):u(w,e));const T=/*@__PURE__*/ p(e=>e===l?f(`DeletePostgresPrivateEndpoint`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({organizationId:$3.pipe($2()),postgresId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/organizations/{organizationId}/postgres/{postgresId}/privateEndpoint",code:200}));$4({status:$7($6),requestId:$7($3)})`,[o,g,_,r,i,c,t,s,d,m,h,C]):u(T,e));const E=/*@__PURE__*/ p(e=>e===l?f(`GetPostgresPrivateEndpoint`,`{input:#1,output:#6:4,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({organizationId:$3.pipe($2()),postgresId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/postgres/{postgresId}/privateEndpoint",code:200}))`,[o,g,_,r,i,c,__d1,d,m,h,C]):u(E,e));const D=/*@__PURE__*/ p(e=>e===l?f(`PatchPostgresPrivateEndpoint`,`{input:#1,output:#4:4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$8(>2)@"%Request";$7({organizationId:$3.pipe($2()),postgresId:$3.pipe($2()),allowedVpcEndpoints:$5(#4:3),supportedRegions:$5(#6:0)}).pipe($1({method:"PATCH",uri:"/v1/organizations/{organizationId}/postgres/{postgresId}/privateEndpoint",code:200}))`,[o,g,_,r,__d1,s,__d0,i,c,d,m,h,C]):u(D,e));const O=/*@__PURE__*/ p(n=>n===l?f(`PostgresBlockingQueriesGetList`,`{input:#1,output:#5,errors:[],serviceErrors:$14,protocol:$15,retry:$16,telemetry:$17,span:"%"};$8(>6)@"%Request";$9($6);$8(>7)@"PostgresBlockingQuery";$9(#3);$8(>8)@"%Response";$7({organizationId:$3.pipe($2()),postgresId:$3.pipe($2()),from_date:$3.pipe($4()),to_date:$3.pipe($4()),db_name:$5($3.pipe($4())),db_user:$5($3.pipe($4())),app:$5($3.pipe($4())),limit:$5($6.pipe($4())),offset:$5($6.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/postgres/{postgresId}/blockingQueries",code:200}));$7({database:$3,blockedQueryId:$3,blockedQuery:$3,blockedUsers:#10:0,blockedApps:#10:0,blockedPids:#2,lockType:$3,blockedMode:$3,blockingDatabase:$3,blockingQueryId:$3,blockingQuery:$3,blockingUsers:#10:0,blockingApps:#10:0,blockingPids:#2,blockingPrepared:$11,blockingInternal:$11,latestBlockingState:$3,latestBlockingXactSeconds:$12($6),latestBlockingBackendType:$3,blockingSeenWaiting:$11,sessions:$6,samples:$6,longestWaitSeconds:$12($6),lastSeen:$3});#4.pipe($13())`,[o,g,_,r,v,s,t,i,c,x,__d0,S,e,y,d,m,h,C]):u(O,n));const k=/*@__PURE__*/ p(e=>e===l?f(`PostPostgresPrivateEndpoint`,`{input:#1,output:#8:4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({organizationId:$3.pipe($2()),postgresId:$3.pipe($2()),supportedRegions:$5(#4:0)}).pipe($1({method:"POST",uri:"/v1/organizations/{organizationId}/postgres/{postgresId}/privateEndpoint",code:200}))`,[o,g,_,r,__d0,s,i,c,__d1,d,m,h,C]):u(k,e));function __d0(){return[`$2($1)`,[o,r,x]]}function __d1(){return[`$3(>5)@"PostgresPrivateEndpointPort";$4(#0);$3(>6)@"PostgresPrivateEndpointVpcEndpoint";$4(#2);$3(>7)@"PostgresPrivateEndpoint";$2({port:$1,targetPort:$1});$2({vpcEndpointId:$5,description:$6($5)});$2({state:$5,endpointServiceName:$6($5),endpointServiceId:$6($5),privateHostname:$6($5),privateDnsName:$6($5),privateDnsVerificationState:$6($5),ipAddressType:$5,ports:#1,supportedRegions:#7:0,allowedVpcEndpoints:#3})`,[o,t,i,c,x,r,s,__d0]]}export{w as createPostgresService,T as deletePostgresPrivateEndpoint,E as getPostgresPrivateEndpoint,D as patchPostgresPrivateEndpoint,k as postPostgresPrivateEndpoint,O as postgresBlockingQueriesGetList};
|
|
2
|
+
//# sourceMappingURL=postgres.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres.js","names":["API.D","API.named","__L.at","S.String","S.optional","S.Struct","S.suspend","S.Array","S.Unknown","S.Record","T.Http","T.Label","S.Number","S.Boolean","T.SensitiveValue","Retry.Retry","API.call","T.Query","S.NullOr","T.RawResponseRoot","NullOr","Number","Record","String","Struct","Unknown","at","optional","suspend","D","call","ClickHouseCloudServiceErrors","named","op","ClickHouseCloudProtocol","Retry","Http","Label","Query","RawResponseRoot","SensitiveValue","Array","Boolean","TELEMETRY","createPostgresService","i","deletePostgresPrivateEndpoint","getPostgresPrivateEndpoint","patchPostgresPrivateEndpoint","postgresBlockingQueriesGetList","postPostgresPrivateEndpoint"],"sources":["../../src/unstable-services/postgres.ts"],"mappings":"+VAiBA,MAAM2C,EAAY,CAChB,OAAQ,uBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,kBACR,QAAS,WACT,OAAQ,mBACR,UAAW,KACb,EAwlBA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAM7C,EAAQC,EAAU,kBAAmB,wzFAAyzF,CAACC,EAAQC,EAAUC,EAAYC,EAAUC,EAAWC,EAASC,EAAWC,EAAUC,EAAQC,EAASC,EAAUC,EAAWC,EAAkBiB,EAA8BG,EAAyBnB,EAAa4B,CAAS,CAAC,EAAI3B,EAAS4B,EAAuBC,CAAC,CAAC,EAI5oG,MAAaC,EAKK,gBAAQ,GAAgBD,IAAM7C,EAAQC,EAAU,gCAAiC,yVAA0V,CAACC,EAAQQ,EAAQC,EAASR,EAAUE,EAAUC,EAAWM,EAAUR,EAAY2B,EAA8BG,EAAyBnB,EAAa4B,CAAS,CAAC,EAAI3B,EAAS8B,EAA+BD,CAAC,CAAC,EAIxoB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAM7C,EAAQC,EAAU,6BAA8B,+RAAgS,CAACC,EAAQQ,EAAQC,EAASR,EAAUE,EAAUC,EAAW,KAAMyB,EAA8BG,EAAyBnB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