@distilled.cloud/tinybird 0.0.0 → 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.
Files changed (113) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +128 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/sdk.js +2 -0
  5. package/lib/_bundle/sdk.js.map +1 -0
  6. package/lib/credentials.d.ts +29 -0
  7. package/lib/credentials.d.ts.map +1 -0
  8. package/lib/credentials.js +1 -0
  9. package/lib/errors.d.ts +52 -0
  10. package/lib/errors.d.ts.map +1 -0
  11. package/lib/errors.js +1 -0
  12. package/lib/index.d.ts +48 -0
  13. package/lib/index.d.ts.map +1 -0
  14. package/lib/index.js +5 -0
  15. package/lib/protocol.d.ts +19 -0
  16. package/lib/protocol.d.ts.map +1 -0
  17. package/lib/protocol.js +1 -0
  18. package/lib/retry.d.ts +50 -0
  19. package/lib/retry.d.ts.map +1 -0
  20. package/lib/retry.js +1 -0
  21. package/lib/services/analyze.d.ts +17 -0
  22. package/lib/services/analyze.d.ts.map +1 -0
  23. package/lib/services/analyze.js +2 -0
  24. package/lib/services/analyze.js.map +1 -0
  25. package/lib/services/api_endpoints.d.ts +26 -0
  26. package/lib/services/api_endpoints.d.ts.map +1 -0
  27. package/lib/services/api_endpoints.js +2 -0
  28. package/lib/services/api_endpoints.js.map +1 -0
  29. package/lib/services/copy_pipes.d.ts +102 -0
  30. package/lib/services/copy_pipes.d.ts.map +1 -0
  31. package/lib/services/copy_pipes.js +2 -0
  32. package/lib/services/copy_pipes.js.map +1 -0
  33. package/lib/services/datasource.d.ts +171 -0
  34. package/lib/services/datasource.d.ts.map +1 -0
  35. package/lib/services/datasource.js +2 -0
  36. package/lib/services/datasource.js.map +1 -0
  37. package/lib/services/environment_variables.d.ts +61 -0
  38. package/lib/services/environment_variables.d.ts.map +1 -0
  39. package/lib/services/environment_variables.js +2 -0
  40. package/lib/services/environment_variables.js.map +1 -0
  41. package/lib/services/events.d.ts +21 -0
  42. package/lib/services/events.d.ts.map +1 -0
  43. package/lib/services/events.js +2 -0
  44. package/lib/services/events.js.map +1 -0
  45. package/lib/services/index.d.ts +14 -0
  46. package/lib/services/index.d.ts.map +1 -0
  47. package/lib/services/index.js +13 -0
  48. package/lib/services/jobs.d.ts +45 -0
  49. package/lib/services/jobs.d.ts.map +1 -0
  50. package/lib/services/jobs.js +2 -0
  51. package/lib/services/jobs.js.map +1 -0
  52. package/lib/services/materialized_views.d.ts +64 -0
  53. package/lib/services/materialized_views.d.ts.map +1 -0
  54. package/lib/services/materialized_views.js +2 -0
  55. package/lib/services/materialized_views.js.map +1 -0
  56. package/lib/services/organizations.d.ts +214 -0
  57. package/lib/services/organizations.d.ts.map +1 -0
  58. package/lib/services/organizations.js +2 -0
  59. package/lib/services/organizations.js.map +1 -0
  60. package/lib/services/pipe.d.ts +243 -0
  61. package/lib/services/pipe.d.ts.map +1 -0
  62. package/lib/services/pipe.js +2 -0
  63. package/lib/services/pipe.js.map +1 -0
  64. package/lib/services/query.d.ts +50 -0
  65. package/lib/services/query.d.ts.map +1 -0
  66. package/lib/services/query.js +2 -0
  67. package/lib/services/query.js.map +1 -0
  68. package/lib/services/sink_pipes.d.ts +95 -0
  69. package/lib/services/sink_pipes.d.ts.map +1 -0
  70. package/lib/services/sink_pipes.js +2 -0
  71. package/lib/services/sink_pipes.js.map +1 -0
  72. package/lib/services/token.d.ts +107 -0
  73. package/lib/services/token.d.ts.map +1 -0
  74. package/lib/services/token.js +2 -0
  75. package/lib/services/token.js.map +1 -0
  76. package/lib/services.lazy/analyze.js +1 -0
  77. package/lib/services.lazy/api_endpoints.js +1 -0
  78. package/lib/services.lazy/copy_pipes.js +1 -0
  79. package/lib/services.lazy/datasource.js +1 -0
  80. package/lib/services.lazy/environment_variables.js +1 -0
  81. package/lib/services.lazy/events.js +1 -0
  82. package/lib/services.lazy/index.js +3 -0
  83. package/lib/services.lazy/jobs.js +1 -0
  84. package/lib/services.lazy/materialized_views.js +1 -0
  85. package/lib/services.lazy/organizations.js +1 -0
  86. package/lib/services.lazy/pipe.js +1 -0
  87. package/lib/services.lazy/query.js +1 -0
  88. package/lib/services.lazy/sink_pipes.js +1 -0
  89. package/lib/services.lazy/token.js +1 -0
  90. package/lib/traits.d.ts +10 -0
  91. package/lib/traits.d.ts.map +1 -0
  92. package/lib/traits.js +1 -0
  93. package/package.json +76 -2
  94. package/src/credentials.ts +76 -0
  95. package/src/errors.ts +83 -0
  96. package/src/index.ts +47 -0
  97. package/src/protocol.ts +48 -0
  98. package/src/retry.ts +69 -0
  99. package/src/services/analyze.ts +75 -0
  100. package/src/services/api_endpoints.ts +115 -0
  101. package/src/services/copy_pipes.ts +315 -0
  102. package/src/services/datasource.ts +438 -0
  103. package/src/services/environment_variables.ts +213 -0
  104. package/src/services/events.ts +86 -0
  105. package/src/services/index.ts +14 -0
  106. package/src/services/jobs.ts +156 -0
  107. package/src/services/materialized_views.ts +200 -0
  108. package/src/services/organizations.ts +552 -0
  109. package/src/services/pipe.ts +700 -0
  110. package/src/services/query.ts +150 -0
  111. package/src/services/sink_pipes.ts +295 -0
  112. package/src/services/token.ts +359 -0
  113. package/src/traits.ts +47 -0
@@ -0,0 +1,45 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import { type TinybirdOpError, type TinybirdOpContext } from "../protocol.ts";
3
+ export type { TinybirdOpError, TinybirdOpContext };
4
+ export interface CancelJobRequest {
5
+ job: string;
6
+ }
7
+ export type CancelJobResponseBodyMap = {
8
+ [key: string]: unknown | undefined;
9
+ };
10
+ export type CancelJobResponse = CancelJobResponseBodyMap;
11
+ export interface GetJobRequest {
12
+ job: string;
13
+ }
14
+ export type GetJobResponseBodyMap = {
15
+ [key: string]: unknown | undefined;
16
+ };
17
+ export type GetJobResponse = GetJobResponseBodyMap;
18
+ export interface ListJobsRequest {
19
+ /** This will return only the jobs with that particular kind. Example: `kind=populateview` or `kind=copy` or `kind=import` */
20
+ kind?: string | undefined;
21
+ /** This will return only the jobs with the status provided. Example: `status=done` or `status=waiting` or `status=working` or `status=error` */
22
+ status?: string | undefined;
23
+ /** This will return only the jobs associated with the provided pipe id. Example: `pipe_id=t_31a0ff508c9843b59c32f7f81a156968` */
24
+ pipe_id?: string | undefined;
25
+ /** This will return only the jobs associated with the provided pipe name. Example: `pipe_name=test_pipe` */
26
+ pipe_name?: string | undefined;
27
+ /** This will return jobs that were created after the provided date in the ISO 8601 standard date format. Example: `created_after=2023-06-15T18:13:25.855Z` */
28
+ created_after?: string | undefined;
29
+ /** This will return jobs that were created before the provided date in the ISO 8601 standard date format. Example: `created_before=2023-06-19T18:13:25.855Z` */
30
+ created_before?: string | undefined;
31
+ }
32
+ export type ListJobsResponseBodyMap = {
33
+ [key: string]: unknown | undefined;
34
+ };
35
+ export type ListJobsResponse = ListJobsResponseBodyMap;
36
+ export type CancelJobError = TinybirdOpError;
37
+ /** With this endpoint you can try to cancel an existing Job. All jobs can be cancelled if they are in the "waiting" status, but you can't cancel a Job in "done" or "error" status. In the case of the job of type "populate", you can cancel it in the "working" state. After successfully starting the cancellation process, you will see two different status in the job: - "cancelling": The Job can't be immediately cancelled as it's doing some work, but the cancellation will eventually happen. - "cancelled": The Job has been completely cancelled. A Job cancellation doesn't guarantee a complete rollback of the changes being made by it, sometimes you will need to delete new inserted rows or datasources created. The fastest way to know if a job is cancellable, is just reading the "is_cancellable" key inside the job JSON description. Depending on the Job and its status, when you try to cancel it you may get different responses: - HTTP Code 200: The Job has successfully started the cancellation process. Remember that if the Job has now a "cancelling" status, it may need some time to completely cancel itself. This request will return the status of the job. - HTTP Code 404: Job not found. - HTTP Code 403: The token provided doesn't have access to this Job. - HTTP Code 400: Job is not in a cancellable status or you are trying to cancel a job which is already in the "cancelling" state. Reference: https://www.tinybird.co/docs/api-reference/jobs-api */
38
+ export declare const cancelJob: API.OperationMethod<CancelJobRequest, CancelJobResponse, CancelJobError, TinybirdOpContext>;
39
+ export type GetJobError = TinybirdOpError;
40
+ /** Get the details of a specific Job. You can get the details of a Job by using its ID. The Token needs the `DATASOURCES:CREATE` scope, or the `DATASOURCES:APPEND` scope on the Data Source the Job targets. You will get a JSON response with the details of the Job, including the `kind`, `status`, `id`, `created_at`, `updated_at`, and the `datasource` associated with the Job. This is available for 48h after the Job creation. After that, you can consult the Job details in the Service Data Source jobs_log. Reference: https://www.tinybird.co/docs/api-reference/jobs-api */
41
+ export declare const getJob: API.OperationMethod<GetJobRequest, GetJobResponse, GetJobError, TinybirdOpContext>;
42
+ export type ListJobsError = TinybirdOpError;
43
+ /** We can get a list of the last 100 jobs in the last 48 hours, with the possibility of filtering them by kind, status, pipe_id, pipe_name, created_after, and created_before. You will get a list of jobs with the `kind`, `status`, `id`, and the `url` to access the specific information about that job. Job details in `job_url` will be available for 48h after its creation. Reference: https://www.tinybird.co/docs/api-reference/jobs-api */
44
+ export declare const listJobs: API.OperationMethod<ListJobsRequest, ListJobsResponse, ListJobsError, TinybirdOpContext>;
45
+ //# sourceMappingURL=jobs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobs.d.ts","sources":["../../src/services/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAoB,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMhG,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC;AAenD,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,MAAM,wBAAwB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CAAE,CAAC;AAC9E,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,CAAC;AACzD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,MAAM,qBAAqB,GAAG;IAAE,CAAC,GAAG,EAAE,MAA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as r,b as i,errors$TinybirdServiceErrors as a,l as o,n as s,protocol$TinybirdProtocol as c,rc as l,retry$Retry as u,tc as d,traits$Http as f,traits$Label as p,traits$Query as m,traits$RawResponseRoot as h,uc as g,zc as _}from"../_bundle/sdk.js";const v={system:`tinybird-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:`Tinybird`,service:`Jobs`,labels:`tinybird`,propagate:`w3c`};const y=/*@__PURE__*/ s(t=>t===r?o(`CancelJob`,`{input:#1,output:#6:1,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({job:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v0/jobs/{job}/cancel",code:200}))`,[e,f,p,d,g,n,__d0,a,c,u,v]):i(y,t));const b=/*@__PURE__*/ s(t=>t===r?[`{input:#1,output:#6:1,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"GetJob"};$5(>2)@"GetJobRequest";$4({job:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v0/jobs/{job}",code:200}))`,[e,f,p,d,g,n,__d0,a,c,u,v]]:i(b,t));const x=/*@__PURE__*/ s(s=>s===r?o(`ListJobs`,`{input:#1,output:#4:1,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>3)@"%Request";$11($10.pipe($9()));$2({kind:~2,status:~2,pipe_id:~2,pipe_name:~2,created_after:~2,created_before:~2}).pipe($1({method:"GET",uri:"/v0/jobs",code:200}))`,[e,f,g,n,__d0,a,c,u,v,m,d,t]):i(x,s));function __d0(){return[`$3($1,$2);$5(>2)@"CancelJobResponse";#0.pipe($4())`,[e,d,_,l,h,n]]}export{y as cancelJob,b as getJob,x as listJobs};
2
+ //# sourceMappingURL=jobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobs.js","names":["API.D","API.named","__L.at","T.Http","T.Label","S.String","S.Struct","S.suspend","Retry.Retry","API.call","T.Query","S.optional","S.Unknown","S.Record","T.RawResponseRoot","at","optional","suspend","D","call","TinybirdServiceErrors","named","op","TinybirdProtocol","Record","Retry","String","Http","Label","Query","RawResponseRoot","Struct","Unknown","TELEMETRY","cancelJob","i","getJob","listJobs"],"sources":["../../src/services/jobs.ts"],"mappings":"sRAYA,MAAMiC,EAAY,CAChB,OAAQ,eACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,WACR,QAAS,OACT,OAAQ,WACR,UAAW,KACb,EA8BA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMnC,EAAQC,EAAU,YAAa,yMAA0M,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAW,KAAMa,EAAuBG,EAAkBf,EAAayB,CAAS,CAAC,EAAIxB,EAASyB,EAAWC,CAAC,CAAC,EAIlb,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMnC,EAAQ,CAAC,2MAA4M,CAACE,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAW,KAAMa,EAAuBG,EAAkBf,EAAayB,CAAS,CAAC,EAAIxB,EAAS2B,EAAQD,CAAC,CAAC,EAI3Z,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMnC,EAAQC,EAAU,WAAY,yQAA0Q,CAACC,EAAQC,EAAQG,EAAUC,EAAW,KAAMa,EAAuBG,EAAkBf,EAAayB,EAAWvB,EAASL,EAAUM,CAAU,CAAC,EAAIF,EAAS4B,EAAUF,CAAC,CAAC,EAM5f,SAAS,MAAY,CACnB,MAAO,CAAC,qDAAsD,CAACjC,EAAQG,EAAUO,EAAWC,EAAUC,EAAmBP,CAAS,CAAC,CACrI"}
@@ -0,0 +1,64 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import type * as Redacted from "effect/Redacted";
3
+ import { type TinybirdOpError, type TinybirdOpContext } from "../protocol.ts";
4
+ export type { TinybirdOpError, TinybirdOpContext };
5
+ export interface CreatePipeNodeMaterializationRequest {
6
+ pipe: string;
7
+ node: string;
8
+ /** Auth token. Ensure it has the `PIPE:CREATE` scope on it */
9
+ token?: string | Redacted.Redacted<string> | undefined;
10
+ /** Required. Specifies the name of the destination Data Source where the Materialized View schema is defined. If the Data Source does not exist, it creates automatically with the default settings. */
11
+ datasource: string;
12
+ /** Optional. Default `false` When the target Data Source of the Materialized View exists in the Workspace it'll be overridden by the `datasource` specified in the request. */
13
+ override_datasource?: boolean | undefined;
14
+ /** Optional. Default `false`. When `true`, a job is triggered to populate the destination datasource. */
15
+ populate?: boolean | undefined;
16
+ /** Optional. Populate with a subset percent of the data (limited to a maximum of 2M rows), this is useful to quickly test a materialized node with some data. The subset must be greater than 0 and lower than 0.1. A subset of 0.1 means a 10 percent of the data in the source Data Source will be used to populate the Materialized View. Use it together with `populate=true`, it has precedence over `populate_condition` */
17
+ populate_subset?: number | undefined;
18
+ /** Optional. Populate with a SQL condition to be applied to the trigger Data Source of the Materialized View. For instance, `populate_condition='date == toYYYYMM(now())'` it'll populate taking all the rows from the trigger Data Source which `date` is the current month. Use it together with `populate=true`. `populate_condition` is not taken into account if the `populate_subset` param is present. Including in the `populate_condition` any column present in the Data Source `engine_sorting_key` will make the populate job process less data. */
19
+ populate_condition?: string | undefined;
20
+ /** Optional. Default is `false`. If the populate job fails the Materialized View is unlinked and new data won't be ingested in the Materialized View. */
21
+ unlink_on_populate_error?: string | undefined;
22
+ /** Optional. Engine for destination Materialized View. If the Data Source already exists, the settings are not overridden. */
23
+ engine?: string | undefined;
24
+ }
25
+ export type CreatePipeNodeMaterializationResponseBodyMap = {
26
+ [key: string]: unknown | undefined;
27
+ };
28
+ export type CreatePipeNodeMaterializationResponse = CreatePipeNodeMaterializationResponseBodyMap;
29
+ export interface DeletePipeNodeMaterializationRequest {
30
+ pipe: string;
31
+ node: string;
32
+ }
33
+ export type DeletePipeNodeMaterializationResponseBodyMap = {
34
+ [key: string]: unknown | undefined;
35
+ };
36
+ export type DeletePipeNodeMaterializationResponse = DeletePipeNodeMaterializationResponseBodyMap;
37
+ export interface PopulatePipeNodeRequest {
38
+ pipe: string;
39
+ node: string;
40
+ /** Auth token. Ensure it has the `PIPE:CREATE` scope on it */
41
+ token?: string | Redacted.Redacted<string> | undefined;
42
+ /** Optional. Populate with a subset percent of the data (limited to a maximum of 2M rows), this is useful to quickly test a materialized node with some data. The subset must be greater than 0 and lower than 0.1. A subset of 0.1 means a 10 percent of the data in the source Data Source will be used to populate the Materialized View. It has precedence over `populate_condition` */
43
+ populate_subset?: number | undefined;
44
+ /** Optional. Populate with a SQL condition to be applied to the trigger Data Source of the Materialized View. For instance, `populate_condition='date == toYYYYMM(now())'` it'll populate taking all the rows from the trigger Data Source which `date` is the current month. `populate_condition` is not taken into account if the `populate_subset` param is present. Including in the `populate_condition` any column present in the Data Source `engine_sorting_key` will make the populate job process less data. */
45
+ populate_condition?: string | undefined;
46
+ /** Optional. Default is `false`. Populates over existing data, useful to populate past data while new data is being ingested. Use `true` to truncate the Data Source before populating. */
47
+ truncate?: string | undefined;
48
+ /** Optional. Default is `false`. If the populate job fails the Materialized View is unlinked and new data won't be ingested in the Materialized View. */
49
+ unlink_on_populate_error?: string | undefined;
50
+ }
51
+ export type PopulatePipeNodeResponseBodyMap = {
52
+ [key: string]: unknown | undefined;
53
+ };
54
+ export type PopulatePipeNodeResponse = PopulatePipeNodeResponseBodyMap;
55
+ export type CreatePipeNodeMaterializationError = TinybirdOpError;
56
+ /** Creates a Materialized View SQL query for the materialized node must be sent in the body encoded in utf-8 Reference: https://www.tinybird.co/docs/api-reference/pipe-api/materialized-views */
57
+ export declare const createPipeNodeMaterialization: API.OperationMethod<CreatePipeNodeMaterializationRequest, CreatePipeNodeMaterializationResponse, CreatePipeNodeMaterializationError, TinybirdOpContext>;
58
+ export type DeletePipeNodeMaterializationError = TinybirdOpError;
59
+ /** Removes a Materialized View By removing a Materialized View, nor the Data Source nor the Node are deleted. The Data Source will still be present, but will stop receiving data from the Node. Reference: https://www.tinybird.co/docs/api-reference/pipe-api/materialized-views */
60
+ export declare const deletePipeNodeMaterialization: API.OperationMethod<DeletePipeNodeMaterializationRequest, DeletePipeNodeMaterializationResponse, DeletePipeNodeMaterializationError, TinybirdOpContext>;
61
+ export type PopulatePipeNodeError = TinybirdOpError;
62
+ /** Populates a Materialized View The response will not be the final result of the import but a Job. You can check the job status and progress using the [Jobs API](/docs/api-reference/jobs-api). Alternatively you can use a query like this to check the operations related to the populate Job: When a populate job fails for the first time, the Materialized View is automatically unlinked. In that case you can get failed population jobs and their errors to fix them with a query like this: Alternatively you can use the `unlink_on_populate_error='true'` flag to always unlink the Materialized View if the populate job does not work as expected. Reference: https://www.tinybird.co/docs/api-reference/pipe-api/materialized-views */
63
+ export declare const populatePipeNode: API.OperationMethod<PopulatePipeNodeRequest, PopulatePipeNodeResponse, PopulatePipeNodeError, TinybirdOpContext>;
64
+ //# sourceMappingURL=materialized_views.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"materialized_views.d.ts","sources":["../../src/services/materialized_views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAIjD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAoB,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMhG,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC;AAenD,MAAM,WAAW,oCAAoC;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACvD,wMAAwM;IACxM,UAAU,EAAE,MAAM,CAAC;IACnB,+KAA+K;IAC/K,mB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D,MAAM,MAAM,+BAA+B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CAAE,CAAC;AACrF,MAAM,MAAM,wBAAwB,GAAG,+BAA+B,CAAC;AACvE,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAAC;AACjE,kMAAkM;AAClM,eAAO,MAAM,6BAA6B,EAAE,GAAG,CAAC,eAAe,CAC7D,oCAAoC,EACpC,qCAAqC,EACrC,kCAAkC,EAClC,iBAAiB,CAUhB,CAAC;AAEJ,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAAC;AACjE,sRAAsR;AACtR,eAAO,MAAM,6BAA6B,EAAE,GAAG,CAAC,eAAe,CAC7D,oCAAoC,EACpC,qCAAqC,EACrC,kCAAkC,EAClC,iBAAiB,CAUhB,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC;AACpD,utBAAutB;AACvtB,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,CAUhB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{Bc as e,Gc as t,Hc as n,a as r,b as i,errors$TinybirdServiceErrors as a,hc as o,l as s,n as c,protocol$TinybirdProtocol as l,qc as u,rc as d,retry$Retry as f,tc as p,traits$Http as m,traits$Label as h,traits$Query as g,traits$RawResponseRoot as _,traits$SensitiveValue as v,uc as y,zc as b}from"../_bundle/sdk.js";const x={system:`tinybird-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:`Tinybird`,service:`MaterializedViews`,labels:`tinybird`,propagate:`w3c`};const S=/*@__PURE__*/ c(c=>c===r?s(`CreatePipeNodeMaterialization`,`{input:#1,output:#11:1,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$10(>2)@"%Request";$9({pipe:$3.pipe($2()),node:$3.pipe($2()),token:$6($3.pipe($4(),$5({}))),datasource:$3.pipe($4()),override_datasource:$6($7.pipe($4())),populate:$6($7.pipe($4())),populate_subset:$6($8.pipe($4())),populate_condition:$6($3.pipe($4())),unlink_on_populate_error:$6($3.pipe($4())),engine:$6($3.pipe($4()))}).pipe($1({method:"POST",uri:"/v0/pipes/{pipe}/nodes/{node}/materialization",code:200}))`,[e,m,h,p,g,v,t,o,u,y,n,__d0,a,l,f,x]):i(S,c));const C=/*@__PURE__*/ c(t=>t===r?s(`DeletePipeNodeMaterialization`,`{input:#1,output:#6:1,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({pipe:$3.pipe($2()),node:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v0/pipes/{pipe}/nodes/{node}/materialization",code:200}))`,[e,m,h,p,y,n,__d0,a,l,f,x]):i(C,t));const w=/*@__PURE__*/ c(o=>o===r?s(`PopulatePipeNode`,`{input:#1,output:#10:1,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$9(>2)@"%Request";$8({pipe:$3.pipe($2()),node:$3.pipe($2()),token:$6($3.pipe($4(),$5({}))),populate_subset:$6($7.pipe($4())),populate_condition:$6($3.pipe($4())),truncate:$6($3.pipe($4())),unlink_on_populate_error:$6($3.pipe($4()))}).pipe($1({method:"POST",uri:"/v0/pipes/{pipe}/nodes/{node}/population",code:200}))`,[e,m,h,p,g,v,t,u,y,n,__d0,a,l,f,x]):i(w,o));function __d0(){return[`$3($1,$2);$5(>2)@"CreatePipeNodeMaterializationResponse";#0.pipe($4())`,[e,p,b,d,_,n]]}export{S as createPipeNodeMaterialization,C as deletePipeNodeMaterialization,w as populatePipeNode};
2
+ //# sourceMappingURL=materialized_views.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"materialized_views.js","names":["API.D","API.named","__L.at","T.Http","T.Label","S.String","T.Query","T.SensitiveValue","S.optional","S.Boolean","S.Number","S.Struct","S.suspend","Retry.Retry","API.call","S.Unknown","S.Record","T.RawResponseRoot","at","optional","suspend","D","call","TinybirdServiceErrors","Boolean","named","op","TinybirdProtocol","Number","Record","Retry","String","Http","Label","Query","RawResponseRoot","SensitiveValue","Struct","Unknown","TELEMETRY","createPipeNodeMaterialization","i","deletePipeNodeMaterialization","populatePipeNode"],"sources":["../../src/services/materialized_views.ts"],"mappings":"iUAaA,MAAMuC,EAAY,CAChB,OAAQ,eACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,WACR,QAAS,oBACT,OAAQ,WACR,UAAW,KACb,EAgDA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMzC,EAAQC,EAAU,gCAAiC,8fAA+f,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAASC,EAAkBC,EAAYC,EAAWC,EAAUC,EAAUC,EAAW,KAAMW,EAAuBI,EAAkBd,EAAa0B,CAAS,CAAC,EAAIzB,EAAS0B,EAA+BC,CAAC,CAAC,EAI30B,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMzC,EAAQC,EAAU,gCAAiC,uPAAwP,CAACC,EAAQC,EAAQC,EAASC,EAAUM,EAAUC,EAAW,KAAMW,EAAuBI,EAAkBd,EAAa0B,CAAS,CAAC,EAAIzB,EAAS4B,EAA+BD,CAAC,CAAC,EAIxgB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMzC,EAAQC,EAAU,mBAAoB,gaAAia,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAASC,EAAkBC,EAAYE,EAAUC,EAAUC,EAAW,KAAMW,EAAuBI,EAAkBd,EAAa0B,CAAS,CAAC,EAAIzB,EAAS6B,EAAkBF,CAAC,CAAC,EAMxsB,SAAS,MAAY,CACnB,MAAO,CAAC,yEAA0E,CAACvC,EAAQG,EAAUU,EAAWC,EAAUC,EAAmBL,CAAS,CAAC,CACzJ"}
@@ -0,0 +1,214 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import { type TinybirdOpError, type TinybirdOpContext } from "../protocol.ts";
3
+ export type { TinybirdOpError, TinybirdOpContext };
4
+ /** Current and target weights for existing replicas. Must include `old_weights` and `new_weights`. */
5
+ export type AddOrganizationClusterReplicaRequestExistingReplicasMap = {
6
+ [key: string]: unknown | undefined;
7
+ };
8
+ /** Weights to assign to the new replica by role. */
9
+ export type AddOrganizationClusterReplicaRequestNewReplicaMap = {
10
+ [key: string]: unknown | undefined;
11
+ };
12
+ export interface AddOrganizationClusterReplicaRequest {
13
+ organization: string;
14
+ cluster: string;
15
+ /** Replica shape in `cpu-memory` format, for example `4-16`. */
16
+ replica_size?: string | undefined;
17
+ /** Current and target weights for existing replicas. Must include `old_weights` and `new_weights`. */
18
+ existing_replicas?: AddOrganizationClusterReplicaRequestExistingReplicasMap | undefined;
19
+ /** Weights to assign to the new replica by role. */
20
+ new_replica?: AddOrganizationClusterReplicaRequestNewReplicaMap | undefined;
21
+ }
22
+ export type AddOrganizationClusterReplicaResponseBodyMap = {
23
+ [key: string]: unknown | undefined;
24
+ };
25
+ export type AddOrganizationClusterReplicaResponse = AddOrganizationClusterReplicaResponseBodyMap;
26
+ /** Current and target weights for existing replicas. Must include `old_weights` and `new_weights`. */
27
+ export type AddOrganizationClusterReplicaByNameRequestExistingReplicasMap = {
28
+ [key: string]: unknown | undefined;
29
+ };
30
+ /** Weights to assign to the new replica by role. */
31
+ export type AddOrganizationClusterReplicaByNameRequestNewReplicaMap = {
32
+ [key: string]: unknown | undefined;
33
+ };
34
+ export interface AddOrganizationClusterReplicaByNameRequest {
35
+ organization: string;
36
+ cluster: string;
37
+ replica: string;
38
+ /** Replica shape in `cpu-memory` format, for example `4-16`. */
39
+ replica_size?: string | undefined;
40
+ /** Current and target weights for existing replicas. Must include `old_weights` and `new_weights`. */
41
+ existing_replicas?: AddOrganizationClusterReplicaByNameRequestExistingReplicasMap | undefined;
42
+ /** Weights to assign to the new replica by role. */
43
+ new_replica?: AddOrganizationClusterReplicaByNameRequestNewReplicaMap | undefined;
44
+ }
45
+ export type AddOrganizationClusterReplicaByNameResponseBodyMap = {
46
+ [key: string]: unknown | undefined;
47
+ };
48
+ export type AddOrganizationClusterReplicaByNameResponse = AddOrganizationClusterReplicaByNameResponseBodyMap;
49
+ export interface GetOrganizationClustersConfigurationRequest {
50
+ organization: string;
51
+ }
52
+ /** Available cloud regions grouped by provider. */
53
+ export type GetOrganizationClustersConfigurationResponseCloudRegionsMap = {
54
+ [key: string]: unknown | undefined;
55
+ };
56
+ export interface GetOrganizationClustersConfigurationResponseAvailableSizesValueItem {
57
+ /** Replica size in `cpu-memory` format. */
58
+ name?: string | undefined;
59
+ /** Number of vCPUs for the replica size. */
60
+ cpu?: number | undefined;
61
+ /** Amount of memory in GB for the replica size. */
62
+ memory_gb?: number | undefined;
63
+ }
64
+ export type GetOrganizationClustersConfigurationResponseAvailableSizesValueList = Array<GetOrganizationClustersConfigurationResponseAvailableSizesValueItem>;
65
+ /** Available replica sizes grouped by provider. */
66
+ export type GetOrganizationClustersConfigurationResponseAvailableSizesMap = {
67
+ [key: string]: GetOrganizationClustersConfigurationResponseAvailableSizesValueList | undefined;
68
+ };
69
+ /** Cluster roles that can be managed in scaling and rebalancing operations. */
70
+ export type GetOrganizationClustersConfigurationResponseAvailableRolesList = Array<string>;
71
+ export interface GetOrganizationClustersConfigurationResponse {
72
+ /** Available cloud regions grouped by provider. */
73
+ cloud_regions?: GetOrganizationClustersConfigurationResponseCloudRegionsMap | undefined;
74
+ /** Available replica sizes grouped by provider. */
75
+ available_sizes?: GetOrganizationClustersConfigurationResponseAvailableSizesMap | undefined;
76
+ /** Cluster roles that can be managed in scaling and rebalancing operations. */
77
+ available_roles?: GetOrganizationClustersConfigurationResponseAvailableRolesList | undefined;
78
+ }
79
+ export interface ListOrganizationClustersRequest {
80
+ organization: string;
81
+ }
82
+ /** Current traffic distribution by role and replica. */
83
+ export type ListOrganizationClustersResponseClustersItemClusterWeightsMap = {
84
+ [key: string]: unknown | undefined;
85
+ };
86
+ /** Replica details keyed by replica name. */
87
+ export type ListOrganizationClustersResponseClustersItemReplicasMap = {
88
+ [key: string]: unknown | undefined;
89
+ };
90
+ /** Supported target versions for upgrades. */
91
+ export type ListOrganizationClustersResponseClustersItemAvailableClickhouseVersionsList = Array<string>;
92
+ /** Rolling update settings when configured. */
93
+ export type ListOrganizationClustersResponseClustersItemRollingUpdateConfigMap = {
94
+ [key: string]: unknown | undefined;
95
+ };
96
+ export interface ListOrganizationClustersResponseClustersItem {
97
+ /** Identifier used by management operations. */
98
+ cluster_id?: string | undefined;
99
+ /** Internal cluster name. */
100
+ cluster_name?: string | undefined;
101
+ /** Cloud provider hosting the cluster. */
102
+ cloud_provider?: string | undefined;
103
+ /** Region where the cluster is deployed. */
104
+ cloud_region?: string | undefined;
105
+ /** Whether a cluster operation is currently running. */
106
+ operation_in_progress?: boolean | undefined;
107
+ /** Whether weights can be rebalanced at this time. */
108
+ can_rebalance?: boolean | undefined;
109
+ /** Whether replicas can be scaled at this time. */
110
+ can_scale?: boolean | undefined;
111
+ /** Current traffic distribution by role and replica. */
112
+ cluster_weights?: ListOrganizationClustersResponseClustersItemClusterWeightsMap | undefined;
113
+ /** Replica details keyed by replica name. */
114
+ replicas?: ListOrganizationClustersResponseClustersItemReplicasMap | undefined;
115
+ /** Last cluster-level error, if any. */
116
+ error?: string | null | undefined;
117
+ /** Whether the cluster is currently under maintenance. */
118
+ ongoing_maintenance?: boolean | undefined;
119
+ /** Current ClickHouse version for the cluster. */
120
+ clickhouse_version?: string | null | undefined;
121
+ /** Supported target versions for upgrades. */
122
+ available_clickhouse_versions?: ListOrganizationClustersResponseClustersItemAvailableClickhouseVersionsList | undefined;
123
+ /** Rolling update settings when configured. */
124
+ rolling_update_config?: ListOrganizationClustersResponseClustersItemRollingUpdateConfigMap | null | undefined;
125
+ }
126
+ /** List of dedicated clusters configured for the organization. */
127
+ export type ListOrganizationClustersResponseClustersList = Array<ListOrganizationClustersResponseClustersItem>;
128
+ export interface ListOrganizationClustersResponse {
129
+ /** List of dedicated clusters configured for the organization. */
130
+ clusters?: ListOrganizationClustersResponseClustersList | undefined;
131
+ }
132
+ /** Current weights by role and replica. */
133
+ export type RemoveOrganizationClusterReplicaRequestOldWeightsMap = {
134
+ [key: string]: unknown | undefined;
135
+ };
136
+ /** Target weights by role and replica. It must not include the removed replica. */
137
+ export type RemoveOrganizationClusterReplicaRequestNewWeightsMap = {
138
+ [key: string]: unknown | undefined;
139
+ };
140
+ export interface RemoveOrganizationClusterReplicaRequest {
141
+ organization: string;
142
+ cluster: string;
143
+ /** Current weights by role and replica. */
144
+ old_weights?: RemoveOrganizationClusterReplicaRequestOldWeightsMap | undefined;
145
+ /** Target weights by role and replica. It must not include the removed replica. */
146
+ new_weights?: RemoveOrganizationClusterReplicaRequestNewWeightsMap | undefined;
147
+ }
148
+ export type RemoveOrganizationClusterReplicaResponseBodyMap = {
149
+ [key: string]: unknown | undefined;
150
+ };
151
+ export type RemoveOrganizationClusterReplicaResponse = RemoveOrganizationClusterReplicaResponseBodyMap;
152
+ /** Current weights by role and replica. */
153
+ export type RemoveOrganizationClusterReplicaByNameRequestOldWeightsMap = {
154
+ [key: string]: unknown | undefined;
155
+ };
156
+ /** Target weights by role and replica. It must not include the removed replica. */
157
+ export type RemoveOrganizationClusterReplicaByNameRequestNewWeightsMap = {
158
+ [key: string]: unknown | undefined;
159
+ };
160
+ export interface RemoveOrganizationClusterReplicaByNameRequest {
161
+ organization: string;
162
+ cluster: string;
163
+ replica: string;
164
+ /** Current weights by role and replica. */
165
+ old_weights?: RemoveOrganizationClusterReplicaByNameRequestOldWeightsMap | undefined;
166
+ /** Target weights by role and replica. It must not include the removed replica. */
167
+ new_weights?: RemoveOrganizationClusterReplicaByNameRequestNewWeightsMap | undefined;
168
+ }
169
+ export type RemoveOrganizationClusterReplicaByNameResponseBodyMap = {
170
+ [key: string]: unknown | undefined;
171
+ };
172
+ export type RemoveOrganizationClusterReplicaByNameResponse = RemoveOrganizationClusterReplicaByNameResponseBodyMap;
173
+ /** Current weights by role and replica. */
174
+ export type UpdateOrganizationClusterWeightsRequestOldWeightsMap = {
175
+ [key: string]: unknown | undefined;
176
+ };
177
+ /** Target weights by role and replica. */
178
+ export type UpdateOrganizationClusterWeightsRequestNewWeightsMap = {
179
+ [key: string]: unknown | undefined;
180
+ };
181
+ export interface UpdateOrganizationClusterWeightsRequest {
182
+ organization: string;
183
+ cluster: string;
184
+ /** Current weights by role and replica. */
185
+ old_weights?: UpdateOrganizationClusterWeightsRequestOldWeightsMap | undefined;
186
+ /** Target weights by role and replica. */
187
+ new_weights?: UpdateOrganizationClusterWeightsRequestNewWeightsMap | undefined;
188
+ }
189
+ export type UpdateOrganizationClusterWeightsResponseBodyMap = {
190
+ [key: string]: unknown | undefined;
191
+ };
192
+ export type UpdateOrganizationClusterWeightsResponse = UpdateOrganizationClusterWeightsResponseBodyMap;
193
+ export type AddOrganizationClusterReplicaError = TinybirdOpError;
194
+ /** Adds a replica to a dedicated cluster and triggers rebalancing. Reference: https://www.tinybird.co/docs/api-reference/organizations-api */
195
+ export declare const addOrganizationClusterReplica: API.OperationMethod<AddOrganizationClusterReplicaRequest, AddOrganizationClusterReplicaResponse, AddOrganizationClusterReplicaError, TinybirdOpContext>;
196
+ export type AddOrganizationClusterReplicaByNameError = TinybirdOpError;
197
+ /** Adds a replica to a dedicated cluster and triggers rebalancing. Reference: https://www.tinybird.co/docs/api-reference/organizations-api */
198
+ export declare const addOrganizationClusterReplicaByName: API.OperationMethod<AddOrganizationClusterReplicaByNameRequest, AddOrganizationClusterReplicaByNameResponse, AddOrganizationClusterReplicaByNameError, TinybirdOpContext>;
199
+ export type GetOrganizationClustersConfigurationError = TinybirdOpError;
200
+ /** Returns cluster configuration metadata, including available replica sizes. Request body requirements: - `PUT /v0/organizations/{organization_id}/clusters/{cluster_id}/weights` expects `old_weights` and `new_weights`. - `POST /v0/organizations/{organization_id}/clusters/{cluster_id}/replicas` expects `replica_size`, `existing_replicas`, and `new_replica`. - `DELETE /v0/organizations/{organization_id}/clusters/{cluster_id}/replicas/{replica_name}` expects `old_weights` and `new_weights`. Reference: https://www.tinybird.co/docs/api-reference/organizations-api */
201
+ export declare const getOrganizationClustersConfiguration: API.OperationMethod<GetOrganizationClustersConfigurationRequest, GetOrganizationClustersConfigurationResponse, GetOrganizationClustersConfigurationError, TinybirdOpContext>;
202
+ export type ListOrganizationClustersError = TinybirdOpError;
203
+ /** Returns detailed cluster information for an organization. This endpoint lists dedicated clusters assigned to the organization, including replica state, traffic weights, and maintenance/version metadata used by cluster management tooling. Reference: https://www.tinybird.co/docs/api-reference/organizations-api */
204
+ export declare const listOrganizationClusters: API.OperationMethod<ListOrganizationClustersRequest, ListOrganizationClustersResponse, ListOrganizationClustersError, TinybirdOpContext>;
205
+ export type RemoveOrganizationClusterReplicaError = TinybirdOpError;
206
+ /** Removes a replica from a dedicated cluster and rebalances traffic. Reference: https://www.tinybird.co/docs/api-reference/organizations-api */
207
+ export declare const removeOrganizationClusterReplica: API.OperationMethod<RemoveOrganizationClusterReplicaRequest, RemoveOrganizationClusterReplicaResponse, RemoveOrganizationClusterReplicaError, TinybirdOpContext>;
208
+ export type RemoveOrganizationClusterReplicaByNameError = TinybirdOpError;
209
+ /** Removes a replica from a dedicated cluster and rebalances traffic. Reference: https://www.tinybird.co/docs/api-reference/organizations-api */
210
+ export declare const removeOrganizationClusterReplicaByName: API.OperationMethod<RemoveOrganizationClusterReplicaByNameRequest, RemoveOrganizationClusterReplicaByNameResponse, RemoveOrganizationClusterReplicaByNameError, TinybirdOpContext>;
211
+ export type UpdateOrganizationClusterWeightsError = TinybirdOpError;
212
+ /** Updates traffic weights for replicas in a dedicated cluster. Use this endpoint to request a manual rebalance by sending the current weights and the desired new weights. Reference: https://www.tinybird.co/docs/api-reference/organizations-api */
213
+ export declare const updateOrganizationClusterWeights: API.OperationMethod<UpdateOrganizationClusterWeightsRequest, UpdateOrganizationClusterWeightsResponse, UpdateOrganizationClusterWeightsError, TinybirdOpContext>;
214
+ //# sourceMappingURL=organizations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.d.ts","sources":["../../src/services/organizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAoB,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMhG,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC;AAenD,sGAAsG;AACtG,MAAM,MAAM,uDAAuD,GAAG;IACpE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACpC,CAAC;AACF,oDAAoD;AACpD,MAAM,MAAM,iDAAiD,GAAG;IAC9D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACpC,CAAC;AACF,MAAM,WAAW,oCAAoC;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,sGAAsG;IACtG,iBAAiB,CAAC,EAAE,uDAAuD,GAAG,SAAS,CAAC;IACxF,oDAAoD;IACpD,WAAW,CAAC,EAAE,iDAAiD,GAAG,SAAS,CAAC;CAC7E;AACD,MAAM,MAAM,4CAA4C,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CAAE,CAAC;AAClG,MAAM,MAAM,qCAAqC,GAAG,4CAA4C,CAAC;AACjG,sGAAsG;AACtG,MAAM,MAAM,6DAA6D,GAAG;IAC1E,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACpC,CAAC;AACF,oDAAoD;AACpD,MAAM,MAAM,uDAAuD,GAAG;IACpE,CAA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C,EAAE,GAAG,CAAC,eAAe,CAChE,uCAAuC,EACvC,wCAAwC,EACxC,qCAAqC,EACrC,iBAAiB,CAUhB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{Bc as e,Gc as t,Hc as n,a as r,b as i,errors$TinybirdServiceErrors as a,gc as o,hc as s,l as c,n as l,pc as u,protocol$TinybirdProtocol as d,qc as f,rc as p,retry$Retry as m,tc as h,traits$Http as g,traits$Label as _,traits$RawResponseRoot as v,uc as y,zc as b}from"../_bundle/sdk.js";const x={system:`tinybird-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:`Tinybird`,service:`Organizations`,labels:`tinybird`,propagate:`w3c`};const S=/*@__PURE__*/ l(o=>o===r?c(`AddOrganizationClusterReplica`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({organization:$3.pipe($2()),cluster:$3.pipe($2()),replica_size:$4($3),existing_replicas:$4(#5:0),new_replica:$4(#5:0)}).pipe($1({method:"POST",uri:"/v0/organizations/{organization}/clusters/{cluster}/replicas",code:200}))`,[e,g,_,h,t,__d0,y,n,__d1,a,d,m,x]):i(S,o));const C=/*@__PURE__*/ l(o=>o===r?c(`AddOrganizationClusterReplicaByName`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({organization:$3.pipe($2()),cluster:$3.pipe($2()),replica:$3.pipe($2()),replica_size:$4($3),existing_replicas:$4(#5:0),new_replica:$4(#5:0)}).pipe($1({method:"POST",uri:"/v0/organizations/{organization}/clusters/{cluster}/replicas/{replica}",code:200}))`,[e,g,_,h,t,__d0,y,n,__d1,a,d,m,x]):i(C,o));const w=/*@__PURE__*/ l(s=>s===r?c(`GetOrganizationClustersConfiguration`,`{input:#1,output:#5,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$5(>6)@"%Request";$5(>7)@"%ResponseAvailableSizesValueItem";$8(#2);$9($3,#3);$5(>8)@"%Response";$4({organization:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v0/organizations/{organization}/clusters-configuration",code:200}));$4({name:$6($3),cpu:$6($7),memory_gb:$6($7)});$4({cloud_regions:$6(#10:0),available_sizes:$6(#4),available_roles:$6(#11:0)})`,[e,g,_,h,y,n,t,f,o,p,__d0,__d2,a,d,m,x]):i(w,s));const T=/*@__PURE__*/ l(l=>l===r?c(`ListOrganizationClusters`,`{input:#1,output:#4,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseClustersItem";$11(#2);$5(>7)@"%Response";$4({organization:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v0/organizations/{organization}/clusters",code:200}));$4({cluster_id:$6($3),cluster_name:$6($3),cloud_provider:$6($3),cloud_region:$6($3),operation_in_progress:$6($7),can_rebalance:$6($7),can_scale:$6($7),cluster_weights:$6(#8:0),replicas:$6(#8:0),error:$6($9($3)),ongoing_maintenance:$6($7),clickhouse_version:$6($9($3)),available_clickhouse_versions:$6(#10:0),rolling_update_config:$6($9(#8:0))});$4({clusters:$6(#3)})`,[e,g,_,h,y,n,t,s,__d0,u,__d2,o,a,d,m,x]):i(T,l));const E=/*@__PURE__*/ l(o=>o===r?c(`RemoveOrganizationClusterReplica`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({organization:$3.pipe($2()),cluster:$3.pipe($2()),old_weights:$5(#4:0),new_weights:$5(#4:0)}).pipe($1({method:"DELETE",uri:"/v0/organizations/{organization}/clusters/{cluster}/replicas",code:200}))`,[e,g,_,h,__d0,t,y,n,__d1,a,d,m,x]):i(E,o));const D=/*@__PURE__*/ l(o=>o===r?c(`RemoveOrganizationClusterReplicaByName`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({organization:$3.pipe($2()),cluster:$3.pipe($2()),replica:$3.pipe($2()),old_weights:$5(#4:0),new_weights:$5(#4:0)}).pipe($1({method:"DELETE",uri:"/v0/organizations/{organization}/clusters/{cluster}/replicas/{replica}",code:200}))`,[e,g,_,h,__d0,t,y,n,__d1,a,d,m,x]):i(D,o));const O=/*@__PURE__*/ l(o=>o===r?c(`UpdateOrganizationClusterWeights`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({organization:$3.pipe($2()),cluster:$3.pipe($2()),old_weights:$5(#4:0),new_weights:$5(#4:0)}).pipe($1({method:"PUT",uri:"/v0/organizations/{organization}/clusters/{cluster}/weights",code:200}))`,[e,g,_,h,__d0,t,y,n,__d1,a,d,m,x]):i(O,o));function __d0(){return[`$3($1,$2)`,[e,h,b,p]]}function __d1(){return[`$3(>1)@"AddOrganizationClusterReplicaResponse";#2:0.pipe($1())`,[e,v,__d0,n]]}function __d2(){return[`$2($1)`,[e,h,o]]}export{S as addOrganizationClusterReplica,C as addOrganizationClusterReplicaByName,w as getOrganizationClustersConfiguration,T as listOrganizationClusters,E as removeOrganizationClusterReplica,D as removeOrganizationClusterReplicaByName,O as updateOrganizationClusterWeights};
2
+ //# sourceMappingURL=organizations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.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","S.Array","S.Record","S.Boolean","S.NullOr","S.Unknown","T.RawResponseRoot","at","optional","suspend","D","call","TinybirdServiceErrors","Array","Boolean","named","op","NullOr","TinybirdProtocol","Number","Record","Retry","String","Http","Label","RawResponseRoot","Struct","Unknown","TELEMETRY","addOrganizationClusterReplica","i","addOrganizationClusterReplicaByName","getOrganizationClustersConfiguration","listOrganizationClusters","removeOrganizationClusterReplica","removeOrganizationClusterReplicaByName","updateOrganizationClusterWeights"],"sources":["../../src/services/organizations.ts"],"mappings":"oSAYA,MAAMuC,EAAY,CAChB,OAAQ,eACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,WACR,QAAS,gBACT,OAAQ,WACR,UAAW,KACb,EA2MA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMzC,EAAQC,EAAU,gCAAiC,qVAAsV,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAY,KAAMC,EAAUC,EAAW,KAAMe,EAAuBM,EAAkBpB,EAAa8B,CAAS,CAAC,EAAI7B,EAAS8B,EAA+BC,CAAC,CAAC,EAIxnB,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMzC,EAAQC,EAAU,sCAAuC,qXAAsX,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAY,KAAMC,EAAUC,EAAW,KAAMe,EAAuBM,EAAkBpB,EAAa8B,CAAS,CAAC,EAAI7B,EAASgC,EAAqCD,CAAC,CAAC,EAIpqB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMzC,EAAQC,EAAU,uCAAwC,+bAAgc,CAACC,EAAQC,EAAQC,EAASC,EAAUE,EAAUC,EAAWF,EAAYK,EAAUC,EAASC,EAAU,KAAM,KAAMU,EAAuBM,EAAkBpB,EAAa8B,CAAS,CAAC,EAAI7B,EAASiC,EAAsCF,CAAC,CAAC,EAI7wB,MAAaG,EAKK,gBAAQ,GAAgBH,IAAMzC,EAAQC,EAAU,2BAA4B,+oBAAgpB,CAACC,EAAQC,EAAQC,EAASC,EAAUE,EAAUC,EAAWF,EAAYQ,EAAW,KAAMC,EAAU,KAAMH,EAASW,EAAuBM,EAAkBpB,EAAa8B,CAAS,CAAC,EAAI7B,EAASkC,EAA0BH,CAAC,CAAC,EAIt8B,MAA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