@distilled.cloud/clickhouse-cloud 0.0.0 → 1.0.0-rc.22
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 +134 -4
- 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 +89 -2
- 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":"role_management.d.ts","sources":["../../src/services/role_management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC9B,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC;AAejE,6FAA6F;AAC7F,MAAM,MAAM,uCAAuC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACpE,kDAAkD;AAClD,MAAM,MAAM,gCAAgC,GAAG,OAAO,GAAG,MAAM,CAAC;AAChE,uFAAuF;AACvF,MAAM,MAAM,sCAAsC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACnE,0FAA0F;AAC1F,MAAM,MAAM,oCAAoC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACjE,8DAA8D;AAC9D,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACrD,qCAAqC;AACrC,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,GAAG,mBAAmB,CAAC;AAChF,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,MAAM,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC9C,qCAAqC;IACrC,MAAM,CAAC,EAAE,oBAAoB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC;CAC3D;AACD,MAAM,WAAW,uBAAuB;IACtC,kDAAkD;IAClD,SAAS,EAAE,gCAAgC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC5D,uFAAuF;IACvF,WAAW,EAAE,sCAAsC,CAAC;IACpD,0FAA0F;IAC1F,SAAS,EAAE,oCAAoC,CAAC;I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A2B,EAC3B,wBAAwB,CAUvB,CAAC;AAEJ,MAAM,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAC9D,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,QAAQ,EACR,wBAAwB,EACxB,wBAAwB,CAUvB,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AAChE,oTAAoT;AACpT,eAAO,MAAM,qBAAqB,EAAE,GAAG,CAAC,wBAAwB,CAC9D,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,QAAQ,CAoBF,CAAC;AAET,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AACjE,qJAAqJ;AACrJ,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,eAAe,CACtD,6BAA6B,EAC7B,QAAQ,EACR,2BAA2B,EAC3B,wBAAwB,CAUvB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Fc as e,Gc as t,Jc as n,Kc as r,Rc as i,Wc as a,Xc as o,a as s,b as c,errors$ClickHouseCloudServiceErrors as l,l as u,n as d,o as f,pagination$paginateCursor as p,protocol$ClickHouseCloudPaginatedProtocol as m,protocol$ClickHouseCloudProtocol as h,retry$Retry as g,traits$Http as _,traits$Label as v,traits$Query as y,wc as b}from"../_bundle/sdk.js";const x={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:`RoleManagement`,labels:`clickhouse_cloud`,propagate:`w3c`};const S=/*@__PURE__*/ d(e=>e===s?u(`CreateOrganizationRole`,`{input:#1,output:#4:4,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$7(>2)@"%Request";$6({organizationId:$3.pipe($2()),name:$3,actors:#4:0,policies:#5:1}).pipe($1({method:"POST",uri:"/v1/organizations/{organizationId}/roles",code:200}))`,[i,_,v,n,__d0,__d1,r,o,l,h,g,x]):c(S,e));const C=/*@__PURE__*/ d(e=>e===s?u(`DeleteOrganizationRole`,`{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()),roleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/organizations/{organizationId}/roles/{roleId}",code:200}));$4({status:$7($6),requestId:$7($3)})`,[i,_,v,n,r,o,t,a,l,h,g,x]):c(C,e));const w=/*@__PURE__*/ d(e=>e===s?u(`GetOrganizationRole`,`{input:#1,output:#6:4,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({organizationId:$3.pipe($2()),roleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/roles/{roleId}",code:200}))`,[i,_,v,n,r,o,__d0,l,h,g,x]):c(w,e));const T=/*@__PURE__*/ f(d=>d===s?u(`ListOrganizationRoles`,`{input:#1,output:#3,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"nextCursor",items:"result",pageSize:"limit"},strategy:$16};$8(>4)@"%Request";$10(#9:4);$8(>5)@"%Response";$7({organizationId:$3.pipe($2()),limit:$6($5.pipe($4())),cursor:$6($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/roles",code:200}));$7({status:$6($5),requestId:$6($3),result:#2,limit:$6($5),nextCursor:$6($11($3))})`,[i,_,v,n,y,t,a,r,o,__d0,b,e,l,m,g,x,p]):c(T,d));const E=/*@__PURE__*/ d(e=>e===s?u(`UpdateOrganizationRole`,`{input:#1,output:#5:4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$8(>2)@"%Request";$7({organizationId:$3.pipe($2()),roleId:$3.pipe($2()),name:$4($3),actors:$4(#5:0),policies:$4(#6:1)}).pipe($1({method:"PATCH",uri:"/v1/organizations/{organizationId}/roles/{roleId}",code:200}))`,[i,_,v,n,a,__d0,__d1,r,o,l,h,g,x]):c(E,e));function __d0(){return[`$2($1);$5(>5)@"RBACPolicyTags";$5(>6)@"RBACPolicy";$2(#2);$5(>7)@"RBACRole";$4({grants:$3(#0),roleV2:$3($1)});$4({id:$3($1),roleId:$3($1),tenantId:$3($1),allowDeny:$3($1),permissions:$3(#0),resources:$3(#0),tags:$3(#1)});$4({id:$3($1),tenantId:$3($1),ownerId:$3($1),name:$3($1),type:$3($1),actors:$3(#0),policies:$3(#3),createdAt:$3($1),updatedAt:$3($1)})`,[i,n,b,a,r,o]]}function __d1(){return[`$5(>2)@"RBACPolicyCreateRequest";$6(#0);$4({allowDeny:$1,permissions:#2:0,resources:#2:0,tags:$3(#2:1)})`,[i,n,__d0,a,r,o,b]]}export{S as createOrganizationRole,C as deleteOrganizationRole,w as getOrganizationRole,T as listOrganizationRoles,E as updateOrganizationRole};
|
|
2
|
+
//# sourceMappingURL=role_management.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role_management.js","names":["API.D","API.named","__L.at","T.Http","T.Label","S.String","S.Struct","S.suspend","Retry.Retry","API.call","S.Number","S.optional","T.Query","S.Array","S.NullOr","NullOr","Number","String","Struct","at","optional","suspend","D","call","ClickHouseCloudServiceErrors","named","op","opPaginated","paginateCursor","ClickHouseCloudPaginatedProtocol","ClickHouseCloudProtocol","Retry","Http","Label","Query","Array","TELEMETRY","createOrganizationRole","i","deleteOrganizationRole","getOrganizationRole","listOrganizationRoles","updateOrganizationRole"],"sources":["../../src/services/role_management.ts"],"mappings":"qWAkBA,MAAMoC,EAAY,CAChB,OAAQ,uBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,k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CAACpC,EAAQG,EAAUQ,EAASF,EAAYL,EAAUC,CAAS,CAAC,CAC7a,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,2GAA4G,CAACL,EAAQG,EAAU,KAAMM,EAAYL,EAAUC,EAAWM,CAAO,CAAC,CACxL"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { type ClickHouseCloudOpError, type ClickHouseCloudOpContext } from "../protocol.ts";
|
|
3
|
+
export type { ClickHouseCloudOpError, ClickHouseCloudOpContext };
|
|
4
|
+
/** Default query parameters. */
|
|
5
|
+
export type CreateSavedQueryRequestParametersMap = {
|
|
6
|
+
[key: string]: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
export interface CreateSavedQueryRequest {
|
|
9
|
+
/** ID of the requested organization. */
|
|
10
|
+
organizationId: string;
|
|
11
|
+
/** ID of the requested service. */
|
|
12
|
+
serviceId: string;
|
|
13
|
+
/** Name of the saved query. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Saved SQL query. */
|
|
16
|
+
sql: string;
|
|
17
|
+
/** Database used by the saved query. */
|
|
18
|
+
database: string;
|
|
19
|
+
/** Default query parameters. */
|
|
20
|
+
parameters?: CreateSavedQueryRequestParametersMap | undefined;
|
|
21
|
+
}
|
|
22
|
+
/** Query parameters. */
|
|
23
|
+
export type PublicSavedQueryParametersMap = {
|
|
24
|
+
[key: string]: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
export interface PublicSavedQuery {
|
|
27
|
+
/** Unique ID of the saved query. */
|
|
28
|
+
id: string;
|
|
29
|
+
/** Name of the saved query. */
|
|
30
|
+
name: string;
|
|
31
|
+
/** Saved SQL query. */
|
|
32
|
+
sql: string;
|
|
33
|
+
/** Database used by the saved query. */
|
|
34
|
+
database: string;
|
|
35
|
+
/** Query parameters. */
|
|
36
|
+
parameters: PublicSavedQueryParametersMap;
|
|
37
|
+
}
|
|
38
|
+
export interface DeleteSavedQueryRequest {
|
|
39
|
+
/** ID of the requested organization. */
|
|
40
|
+
organizationId: string;
|
|
41
|
+
/** ID of the requested service. */
|
|
42
|
+
serviceId: string;
|
|
43
|
+
/** ID of the requested saved query. */
|
|
44
|
+
queryId: string;
|
|
45
|
+
}
|
|
46
|
+
export interface DeleteSavedQueryResponse {
|
|
47
|
+
/** HTTP status code. */
|
|
48
|
+
status: number;
|
|
49
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
50
|
+
requestId: string;
|
|
51
|
+
}
|
|
52
|
+
export interface GetSavedQueryRequest {
|
|
53
|
+
/** ID of the requested organization. */
|
|
54
|
+
organizationId: string;
|
|
55
|
+
/** ID of the requested service. */
|
|
56
|
+
serviceId: string;
|
|
57
|
+
/** ID of the requested saved query. */
|
|
58
|
+
queryId: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ListSavedQueriesRequest {
|
|
61
|
+
/** ID of the requested organization. */
|
|
62
|
+
organizationId: string;
|
|
63
|
+
/** ID of the requested service. */
|
|
64
|
+
serviceId: string;
|
|
65
|
+
/** Cursor returned as `nextCursor` on the previous page. */
|
|
66
|
+
cursor?: string | undefined;
|
|
67
|
+
/** Maximum number of records to return per page. Defaults to 100. Maximum is 100. */
|
|
68
|
+
limit?: number | undefined;
|
|
69
|
+
}
|
|
70
|
+
export interface PublicSavedQueryListItem {
|
|
71
|
+
/** Unique ID of the saved query. */
|
|
72
|
+
id: string;
|
|
73
|
+
/** Name of the saved query. */
|
|
74
|
+
name: string;
|
|
75
|
+
/** Database used by the saved query. */
|
|
76
|
+
database: string;
|
|
77
|
+
}
|
|
78
|
+
/** Saved queries for the service. */
|
|
79
|
+
export type ListSavedQueriesResponseResultList = Array<PublicSavedQueryListItem>;
|
|
80
|
+
export interface ListSavedQueriesResponse {
|
|
81
|
+
/** Saved queries for the service. */
|
|
82
|
+
result: ListSavedQueriesResponseResultList;
|
|
83
|
+
/** Maximum number of results returned in this page. */
|
|
84
|
+
limit: number;
|
|
85
|
+
/** Total number of results across all pages. It has only informative value, thus is not guaranteed and it is provided on a best-effort basis. Null if the total count is unknown. */
|
|
86
|
+
totalCount: number | null;
|
|
87
|
+
/** Cursor for the next page, to be sent as the `cursor` query parameter. Null on the last page. */
|
|
88
|
+
nextCursor: string | null;
|
|
89
|
+
/** HTTP status code. */
|
|
90
|
+
status: number;
|
|
91
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
92
|
+
requestId: string;
|
|
93
|
+
}
|
|
94
|
+
/** Default query parameters. */
|
|
95
|
+
export type UpdateSavedQueryRequestParametersMap = {
|
|
96
|
+
[key: string]: string | undefined;
|
|
97
|
+
};
|
|
98
|
+
export interface UpdateSavedQueryRequest {
|
|
99
|
+
/** ID of the requested organization. */
|
|
100
|
+
organizationId: string;
|
|
101
|
+
/** ID of the requested service. */
|
|
102
|
+
serviceId: string;
|
|
103
|
+
/** ID of the requested saved query. */
|
|
104
|
+
queryId: string;
|
|
105
|
+
/** Name of the saved query. */
|
|
106
|
+
name: string;
|
|
107
|
+
/** Saved SQL query. */
|
|
108
|
+
sql: string;
|
|
109
|
+
/** Database used by the saved query. */
|
|
110
|
+
database: string;
|
|
111
|
+
/** Default query parameters. */
|
|
112
|
+
parameters?: UpdateSavedQueryRequestParametersMap | undefined;
|
|
113
|
+
}
|
|
114
|
+
export type CreateSavedQueryError = ClickHouseCloudOpError;
|
|
115
|
+
/** Create a saved query Creates a saved query. */
|
|
116
|
+
export declare const createSavedQuery: API.OperationMethod<CreateSavedQueryRequest, PublicSavedQuery, CreateSavedQueryError, ClickHouseCloudOpContext>;
|
|
117
|
+
export type DeleteSavedQueryError = ClickHouseCloudOpError;
|
|
118
|
+
/** Delete a saved query Deletes a saved query. */
|
|
119
|
+
export declare const deleteSavedQuery: API.OperationMethod<DeleteSavedQueryRequest, DeleteSavedQueryResponse, DeleteSavedQueryError, ClickHouseCloudOpContext>;
|
|
120
|
+
export type GetSavedQueryError = ClickHouseCloudOpError;
|
|
121
|
+
/** Get a saved query Returns a saved query. */
|
|
122
|
+
export declare const getSavedQuery: API.OperationMethod<GetSavedQueryRequest, PublicSavedQuery, GetSavedQueryError, ClickHouseCloudOpContext>;
|
|
123
|
+
export type ListSavedQueriesError = ClickHouseCloudOpError;
|
|
124
|
+
/** List saved queries Returns saved queries for the service. */
|
|
125
|
+
export declare const listSavedQueries: API.PaginatedOperationMethod<ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesError, ClickHouseCloudOpContext, PublicSavedQueryListItem>;
|
|
126
|
+
export type UpdateSavedQueryError = ClickHouseCloudOpError;
|
|
127
|
+
/** Update a saved query Updates a saved query. */
|
|
128
|
+
export declare const updateSavedQuery: API.OperationMethod<UpdateSavedQueryRequest, PublicSavedQuery, UpdateSavedQueryError, ClickHouseCloudOpContext>;
|
|
129
|
+
//# sourceMappingURL=saved_queries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saved_queries.d.ts","sources":["../../src/services/saved_queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC9B,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC;AAejE,gCAAgC;AAChC,MAAM,MAAM,oCAAoC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AACzF,MAAM,WAAW,uBAAuB;IACtC,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,gCAAgC;IAChC,UAAU,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;CAC/D;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BAAqB,EACrB,wBAAwB,CAUvB,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AACxD,+CAA+C;AAC/C,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,CAUvB,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAC3D,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,wBAAwB,CACzD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,CAoBlB,CAAC;AAET,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAC3D,kDAAkD;AAClD,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,CAUvB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Fc as e,Gc as t,Hc as n,Jc as r,Kc as i,Rc as a,Wc as o,Xc as s,a as c,b as l,errors$ClickHouseCloudServiceErrors as u,l as d,n as f,o as p,pagination$paginateCursor as m,protocol$ClickHouseCloudPaginatedProtocol as h,protocol$ClickHouseCloudProtocol as g,retry$Retry as _,traits$Http as v,traits$Label as y,traits$Query as b,wc as x}from"../_bundle/sdk.js";const S={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:`SavedQueries`,labels:`clickhouse_cloud`,propagate:`w3c`};const C=/*@__PURE__*/ f(e=>e===c?d(`CreateSavedQuery`,`{input:#1,output:#4:1,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$7(>2)@"%Request";$6({organizationId:$3.pipe($2()),serviceId:$3.pipe($2()),name:$3,sql:$3,database:$3,parameters:$5(#4:0)}).pipe($1({method:"POST",uri:"/v1/organizations/{organizationId}/services/{serviceId}/saved-queries",code:200}))`,[a,v,y,r,__d0,o,i,s,u,g,_,S]):l(C,e));const w=/*@__PURE__*/ f(e=>e===c?d(`DeleteSavedQuery`,`{input:#1,output:#2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({organizationId:$3.pipe($2()),serviceId:$3.pipe($2()),queryId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/organizations/{organizationId}/services/{serviceId}/saved-queries/{queryId}",code:200}));$4({status:$6,requestId:$3})`,[a,v,y,r,i,s,t,u,g,_,S]):l(w,e));const T=/*@__PURE__*/ f(e=>e===c?d(`GetSavedQuery`,`{input:#1,output:#6:1,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({organizationId:$3.pipe($2()),serviceId:$3.pipe($2()),queryId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/services/{serviceId}/saved-queries/{queryId}",code:200}))`,[a,v,y,r,i,s,__d0,u,g,_,S]):l(T,e));const E=/*@__PURE__*/ p(n=>n===c?d(`ListSavedQueries`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"nextCursor",items:"result",pageSize:"limit"},strategy:$15};$8(>5)@"%Request";$8(>6)@"PublicSavedQueryListItem";$9(#2);$8(>7)@"%Response";$7({organizationId:$3.pipe($2()),serviceId:$3.pipe($2()),cursor:$5($3.pipe($4())),limit:$5($6.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/services/{serviceId}/saved-queries",code:200}));$7({id:$3,name:$3,database:$3});$7({result:#3,limit:$6,totalCount:$10($6),nextCursor:$10($3),status:$6,requestId:$3})`,[a,v,y,r,b,o,t,i,s,x,e,u,h,_,S,m]):l(E,n));const D=/*@__PURE__*/ f(e=>e===c?d(`UpdateSavedQuery`,`{input:#1,output:#4:1,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$7(>2)@"%Request";$6({organizationId:$3.pipe($2()),serviceId:$3.pipe($2()),queryId:$3.pipe($2()),name:$3,sql:$3,database:$3,parameters:$5(#4:0)}).pipe($1({method:"PUT",uri:"/v1/organizations/{organizationId}/services/{serviceId}/saved-queries/{queryId}",code:200}))`,[a,v,y,r,__d0,o,i,s,u,g,_,S]):l(D,e));function __d0(){return[`$2($1,$1);$4(>2)@"PublicSavedQuery";$3({id:$1,name:$1,sql:$1,database:$1,parameters:#0})`,[a,r,n,i,s]]}export{C as createSavedQuery,w as deleteSavedQuery,T as getSavedQuery,E as listSavedQueries,D as updateSavedQuery};
|
|
2
|
+
//# sourceMappingURL=saved_queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saved_queries.js","names":["API.D","API.named","__L.at","T.Http","T.Label","S.String","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Number","T.Query","S.Array","S.NullOr","S.Record","NullOr","Number","Record","String","Struct","at","optional","suspend","D","call","ClickHouseCloudServiceErrors","named","op","opPaginated","paginateCursor","ClickHouseCloudPaginatedProtocol","ClickHouseCloudProtocol","Retry","Http","Label","Query","Array","TELEMETRY","createSavedQuery","i","deleteSavedQuery","getSavedQuery","listSavedQueries","updateSavedQuery"],"sources":["../../src/services/saved_queries.ts"],"mappings":"6WAkBA,MAAMsC,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,eACT,OAAQ,mBACR,UAAW,KACb,EA4GA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMxC,EAAQC,EAAU,mBA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