@distilled.cloud/tinybird 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 +132 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +52 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +5 -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 +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/analyze.d.ts +17 -0
- package/lib/services/analyze.d.ts.map +1 -0
- package/lib/services/analyze.js +2 -0
- package/lib/services/analyze.js.map +1 -0
- package/lib/services/api_endpoints.d.ts +26 -0
- package/lib/services/api_endpoints.d.ts.map +1 -0
- package/lib/services/api_endpoints.js +2 -0
- package/lib/services/api_endpoints.js.map +1 -0
- package/lib/services/copy_pipes.d.ts +102 -0
- package/lib/services/copy_pipes.d.ts.map +1 -0
- package/lib/services/copy_pipes.js +2 -0
- package/lib/services/copy_pipes.js.map +1 -0
- package/lib/services/datasource.d.ts +171 -0
- package/lib/services/datasource.d.ts.map +1 -0
- package/lib/services/datasource.js +2 -0
- package/lib/services/datasource.js.map +1 -0
- package/lib/services/environment_variables.d.ts +61 -0
- package/lib/services/environment_variables.d.ts.map +1 -0
- package/lib/services/environment_variables.js +2 -0
- package/lib/services/environment_variables.js.map +1 -0
- package/lib/services/events.d.ts +21 -0
- package/lib/services/events.d.ts.map +1 -0
- package/lib/services/events.js +2 -0
- package/lib/services/events.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/jobs.d.ts +45 -0
- package/lib/services/jobs.d.ts.map +1 -0
- package/lib/services/jobs.js +2 -0
- package/lib/services/jobs.js.map +1 -0
- package/lib/services/materialized_views.d.ts +64 -0
- package/lib/services/materialized_views.d.ts.map +1 -0
- package/lib/services/materialized_views.js +2 -0
- package/lib/services/materialized_views.js.map +1 -0
- package/lib/services/organizations.d.ts +214 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +2 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/pipe.d.ts +243 -0
- package/lib/services/pipe.d.ts.map +1 -0
- package/lib/services/pipe.js +2 -0
- package/lib/services/pipe.js.map +1 -0
- package/lib/services/query.d.ts +50 -0
- package/lib/services/query.d.ts.map +1 -0
- package/lib/services/query.js +2 -0
- package/lib/services/query.js.map +1 -0
- package/lib/services/sink_pipes.d.ts +95 -0
- package/lib/services/sink_pipes.d.ts.map +1 -0
- package/lib/services/sink_pipes.js +2 -0
- package/lib/services/sink_pipes.js.map +1 -0
- package/lib/services/token.d.ts +107 -0
- package/lib/services/token.d.ts.map +1 -0
- package/lib/services/token.js +2 -0
- package/lib/services/token.js.map +1 -0
- package/lib/services.lazy/analyze.js +1 -0
- package/lib/services.lazy/api_endpoints.js +1 -0
- package/lib/services.lazy/copy_pipes.js +1 -0
- package/lib/services.lazy/datasource.js +1 -0
- package/lib/services.lazy/environment_variables.js +1 -0
- package/lib/services.lazy/events.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/jobs.js +1 -0
- package/lib/services.lazy/materialized_views.js +1 -0
- package/lib/services.lazy/organizations.js +1 -0
- package/lib/services.lazy/pipe.js +1 -0
- package/lib/services.lazy/query.js +1 -0
- package/lib/services.lazy/sink_pipes.js +1 -0
- package/lib/services.lazy/token.js +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +82 -3
- package/src/credentials.ts +76 -0
- package/src/errors.ts +83 -0
- package/src/index.ts +47 -0
- package/src/protocol.ts +48 -0
- package/src/retry.ts +69 -0
- package/src/services/analyze.ts +75 -0
- package/src/services/api_endpoints.ts +115 -0
- package/src/services/copy_pipes.ts +315 -0
- package/src/services/datasource.ts +438 -0
- package/src/services/environment_variables.ts +213 -0
- package/src/services/events.ts +86 -0
- package/src/services/index.ts +14 -0
- package/src/services/jobs.ts +156 -0
- package/src/services/materialized_views.ts +200 -0
- package/src/services/organizations.ts +552 -0
- package/src/services/pipe.ts +700 -0
- package/src/services/query.ts +150 -0
- package/src/services/sink_pipes.ts +295 -0
- package/src/services/token.ts +359 -0
- package/src/traits.ts +47 -0
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-tinybird/specs/api-reference). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import type * as Redacted from "effect/Redacted";
|
|
7
|
+
import { TinybirdServiceErrors } from "../errors.ts";
|
|
8
|
+
import { TinybirdProtocol, type TinybirdOpError, type TinybirdOpContext } from "../protocol.ts";
|
|
9
|
+
import * as Retry from "../retry.ts";
|
|
10
|
+
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
13
|
+
|
|
14
|
+
export type { TinybirdOpError, TinybirdOpContext };
|
|
15
|
+
|
|
16
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
17
|
+
const TELEMETRY = {
|
|
18
|
+
system: "tinybird-api",
|
|
19
|
+
responseHeaders: [
|
|
20
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
21
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "Tinybird",
|
|
24
|
+
service: "Pipe",
|
|
25
|
+
labels: "tinybird",
|
|
26
|
+
propagate: "w3c",
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export interface PostV0PipesRequest {
|
|
30
|
+
/** Name of the new Pipe. */
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
/** SQL of the Pipe's first node. */
|
|
33
|
+
sql?: string | undefined;
|
|
34
|
+
/** Name or ID of a Pipe to copy. */
|
|
35
|
+
from?: string | undefined;
|
|
36
|
+
/** Markdown description for the Pipe. */
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
}
|
|
39
|
+
export type CreatePipeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
40
|
+
export type CreatePipeResponse = CreatePipeResponseBodyMap;
|
|
41
|
+
export interface CreatePipeNodeRequest {
|
|
42
|
+
pipe: string;
|
|
43
|
+
/** The referenceable name for the node. */
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
/** Use it to store a more detailed explanation of the node. */
|
|
46
|
+
description?: string | undefined;
|
|
47
|
+
/** Auth token. Ensure it has the `PIPE:CREATE` scope on it */
|
|
48
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
49
|
+
/** Optional. Available options are {`standard` (default), `materialized`, `endpoint`}. Use `materialized` to create a Materialized View from your new node. */
|
|
50
|
+
type?: string | undefined;
|
|
51
|
+
/** Required with `type=materialized`. Specifies the name of the destination Data Source where the Materialized View schema is defined. */
|
|
52
|
+
datasource?: string | undefined;
|
|
53
|
+
/** 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. */
|
|
54
|
+
override_datasource?: boolean | undefined;
|
|
55
|
+
/** Optional. Default `false`. When `true`, a job is triggered to populate the destination Data Source. */
|
|
56
|
+
populate?: boolean | undefined;
|
|
57
|
+
/** 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` */
|
|
58
|
+
populate_subset?: number | undefined;
|
|
59
|
+
/** 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. */
|
|
60
|
+
populate_condition?: string | undefined;
|
|
61
|
+
/** 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. */
|
|
62
|
+
unlink_on_populate_error?: string | undefined;
|
|
63
|
+
/** Optional. Engine for destination Materialized View. Requires the `type` parameter as `materialized`. */
|
|
64
|
+
engine?: string | undefined;
|
|
65
|
+
/** The node's SQL. */
|
|
66
|
+
body: string;
|
|
67
|
+
}
|
|
68
|
+
export type CreatePipeNodeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
69
|
+
export type CreatePipeNodeResponse = CreatePipeNodeResponseBodyMap;
|
|
70
|
+
export interface DeletePipeRequest {
|
|
71
|
+
pipe: string;
|
|
72
|
+
}
|
|
73
|
+
export type DeletePipeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
74
|
+
export type DeletePipeResponse = DeletePipeResponseBodyMap;
|
|
75
|
+
export interface DeletePipeByFileNameRequest {
|
|
76
|
+
pipe: string;
|
|
77
|
+
}
|
|
78
|
+
export type DeletePipeByFileNameResponseBodyMap = { [key: string]: unknown | undefined };
|
|
79
|
+
export type DeletePipeByFileNameResponse = DeletePipeByFileNameResponseBodyMap;
|
|
80
|
+
export interface DeletePipeNodeRequest {
|
|
81
|
+
pipe: string;
|
|
82
|
+
node: string;
|
|
83
|
+
}
|
|
84
|
+
export type DeletePipeNodeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
85
|
+
export type DeletePipeNodeResponse = DeletePipeNodeResponseBodyMap;
|
|
86
|
+
export interface ExplainPipeRequest {
|
|
87
|
+
pipe: string;
|
|
88
|
+
/** Auth token. Ensure it has the `PIPE:READ` and the proper `DATASOURCE:READ` scopes on it. */
|
|
89
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
90
|
+
/** The name or id of the pipe. */
|
|
91
|
+
pipe_name?: string | undefined;
|
|
92
|
+
/** Optional. The name or id of the node to explain. If not provided, the most relevant node of the pipe will be used. */
|
|
93
|
+
node_name?: string | undefined;
|
|
94
|
+
/** Optional. The value of the parameters to test the query with. They are regular URL query parameters. */
|
|
95
|
+
params?: string | undefined;
|
|
96
|
+
}
|
|
97
|
+
export type ExplainPipeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
98
|
+
export type ExplainPipeResponse = ExplainPipeResponseBodyMap;
|
|
99
|
+
export interface ExplainPipeNodeRequest {
|
|
100
|
+
pipe: string;
|
|
101
|
+
node: string;
|
|
102
|
+
/** Auth token. Ensure it has the `PIPE:READ` and the proper `DATASOURCE:READ` scopes on it. */
|
|
103
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
104
|
+
/** The name or id of the pipe. */
|
|
105
|
+
pipe_name?: string | undefined;
|
|
106
|
+
/** Optional. The name or id of the node to explain. If not provided, the most relevant node of the pipe will be used. */
|
|
107
|
+
node_name?: string | undefined;
|
|
108
|
+
/** Optional. The value of the parameters to test the query with. They are regular URL query parameters. */
|
|
109
|
+
params?: string | undefined;
|
|
110
|
+
}
|
|
111
|
+
export type ExplainPipeNodeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
112
|
+
export type ExplainPipeNodeResponse = ExplainPipeNodeResponseBodyMap;
|
|
113
|
+
export interface GetPipeRequest {
|
|
114
|
+
pipe: string;
|
|
115
|
+
}
|
|
116
|
+
export type GetPipeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
117
|
+
export type GetPipeResponse = GetPipeResponseBodyMap;
|
|
118
|
+
export interface GetPipeByFileNameRequest {
|
|
119
|
+
pipe: string;
|
|
120
|
+
}
|
|
121
|
+
export type GetPipeByFileNameResponse = string;
|
|
122
|
+
export interface ListPipesRequest {
|
|
123
|
+
/** The response will include the nodes dependent data sources and pipes, default is `false` */
|
|
124
|
+
dependencies?: boolean | undefined;
|
|
125
|
+
/** comma separated list of the pipe attributes to return in the response. Example: `attrs=name,description` */
|
|
126
|
+
attrs?: string | undefined;
|
|
127
|
+
/** comma separated list of the node attributes to return in the response. Example `node_attrs=id,name` */
|
|
128
|
+
node_attrs?: string | undefined;
|
|
129
|
+
}
|
|
130
|
+
export type ListPipesResponseBodyMap = { [key: string]: unknown | undefined };
|
|
131
|
+
export type ListPipesResponse = ListPipesResponseBodyMap;
|
|
132
|
+
export type QueryPipeRequestFormat = "json" | "csv" | "ndjson" | "parquet" | "prometheus";
|
|
133
|
+
export interface QueryPipeRequest {
|
|
134
|
+
pipe: string;
|
|
135
|
+
format: QueryPipeRequestFormat | (string & {});
|
|
136
|
+
/** Optional, query to execute, see API Query endpoint */
|
|
137
|
+
q?: string | undefined;
|
|
138
|
+
/** (Optional) Controls quoting of 64-bit or bigger integers (like UInt64 or Int128) when they are output in a JSON format. Such integers are enclosed in quotes by default. This behavior is compatible with most JavaScript implementations. Possible values: 0 -- Integers are output without quotes. 1 -- Integers are enclosed in quotes. Default value is 0 */
|
|
139
|
+
output_format_json_quote_64bit_integers?: number | undefined;
|
|
140
|
+
/** (Optional) Controls representation of inf and nan on the UI instead of null e.g when dividing by 0 - inf and when there is no representation of a number in Javascript - nan. Possible values: 0 - disabled, 1 - enabled. Default value is 0 */
|
|
141
|
+
output_format_json_quote_denormals?: number | undefined;
|
|
142
|
+
/** (Optional) Use Parquet String type instead of Binary for String columns. Possible values: 0 - disabled, 1 - enabled. Default value is 0 */
|
|
143
|
+
output_format_parquet_string_as_string?: number | undefined;
|
|
144
|
+
/** (Optional) Only valid with the `csv` format; any other format returns a 400. Set to `false` to omit the header row of column names, so that paginated pages can be concatenated without a header appearing mid-file. Possible values: true, false, 1, 0. Defaults to `true`, which is the long-standing behavior of the `csv` format */
|
|
145
|
+
__tb__csv_header?: boolean | undefined;
|
|
146
|
+
}
|
|
147
|
+
export interface QueryPipeResponse {
|
|
148
|
+
body: BinaryStream;
|
|
149
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
150
|
+
contentType?: string | undefined;
|
|
151
|
+
}
|
|
152
|
+
export type QueryPipeWithBodyRequestFormat = "json" | "csv" | "ndjson" | "parquet" | "prometheus";
|
|
153
|
+
export interface QueryPipeWithBodyRequest {
|
|
154
|
+
pipe: string;
|
|
155
|
+
format: QueryPipeWithBodyRequestFormat | (string & {});
|
|
156
|
+
[key: string]: unknown;
|
|
157
|
+
}
|
|
158
|
+
export interface QueryPipeWithBodyResponse {
|
|
159
|
+
body: BinaryStream;
|
|
160
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
161
|
+
contentType?: string | undefined;
|
|
162
|
+
}
|
|
163
|
+
export interface UpdatePipeRequest {
|
|
164
|
+
pipe: string;
|
|
165
|
+
/** new name for the pipe */
|
|
166
|
+
name?: string | undefined;
|
|
167
|
+
/** new Markdown description for the pipe */
|
|
168
|
+
description?: string | undefined;
|
|
169
|
+
/** Auth token. Ensure it has the `PIPE:CREATE` scope on it */
|
|
170
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
171
|
+
}
|
|
172
|
+
export type UpdatePipeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
173
|
+
export type UpdatePipeResponse = UpdatePipeResponseBodyMap;
|
|
174
|
+
export interface UpdatePipeByFileNameRequest {
|
|
175
|
+
pipe: string;
|
|
176
|
+
/** new name for the pipe */
|
|
177
|
+
name?: string | undefined;
|
|
178
|
+
/** new Markdown description for the pipe */
|
|
179
|
+
description?: string | undefined;
|
|
180
|
+
/** Auth token. Ensure it has the `PIPE:CREATE` scope on it */
|
|
181
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
182
|
+
}
|
|
183
|
+
export type UpdatePipeByFileNameResponseBodyMap = { [key: string]: unknown | undefined };
|
|
184
|
+
export type UpdatePipeByFileNameResponse = UpdatePipeByFileNameResponseBodyMap;
|
|
185
|
+
export interface UpdatePipeNodeRequest {
|
|
186
|
+
pipe: string;
|
|
187
|
+
node: string;
|
|
188
|
+
/** new name for the node */
|
|
189
|
+
name?: string | undefined;
|
|
190
|
+
/** new description for the node */
|
|
191
|
+
description?: string | undefined;
|
|
192
|
+
/** Auth token. Ensure it has the `PIPE:CREATE` scope on it */
|
|
193
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
194
|
+
}
|
|
195
|
+
export type UpdatePipeNodeResponseBodyMap = { [key: string]: unknown | undefined };
|
|
196
|
+
export type UpdatePipeNodeResponse = UpdatePipeNodeResponseBodyMap;
|
|
197
|
+
export type CreatePipeError = TinybirdOpError;
|
|
198
|
+
/** Creates a new Pipe. There are 3 ways to create a Pipe If you prefer to create the minimum Pipe, and then append your transformation nodes you can set your name and first transformation node's SQL in your POST request Pipes can be also created as copies of other Pipes. Just use the `from` argument: Bear in mind, if you use this method to overwrite an existing Pipe, the endpoint will only be maintained if the node name is the same. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
199
|
+
export const createPipe: API.OperationMethod<
|
|
200
|
+
PostV0PipesRequest,
|
|
201
|
+
CreatePipeResponse,
|
|
202
|
+
CreatePipeError,
|
|
203
|
+
TinybirdOpContext
|
|
204
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
205
|
+
input: __S(0, __c0, 0) as any as S.Schema<PostV0PipesRequest>,
|
|
206
|
+
output: __S(3, __c1, 1) as any as S.Schema<CreatePipeResponse>,
|
|
207
|
+
errors: [],
|
|
208
|
+
serviceErrors: TinybirdServiceErrors,
|
|
209
|
+
protocol: TinybirdProtocol,
|
|
210
|
+
retry: Retry.Retry,
|
|
211
|
+
telemetry: TELEMETRY,
|
|
212
|
+
span: "CreatePipe",
|
|
213
|
+
}));
|
|
214
|
+
|
|
215
|
+
export type CreatePipeNodeError = TinybirdOpError;
|
|
216
|
+
/** Appends a new node to a Pipe. Appends a new node that creates a Materialized View SQL query for the transformation node must be sent in the body encoded in utf-8 Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
217
|
+
export const createPipeNode: API.OperationMethod<
|
|
218
|
+
CreatePipeNodeRequest,
|
|
219
|
+
CreatePipeNodeResponse,
|
|
220
|
+
CreatePipeNodeError,
|
|
221
|
+
TinybirdOpContext
|
|
222
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
223
|
+
input: __S(4, __c2, 0) as any as S.Schema<CreatePipeNodeRequest>,
|
|
224
|
+
output: __S(3, __c1, 1) as any as S.Schema<CreatePipeNodeResponse>,
|
|
225
|
+
errors: [],
|
|
226
|
+
serviceErrors: TinybirdServiceErrors,
|
|
227
|
+
protocol: TinybirdProtocol,
|
|
228
|
+
retry: Retry.Retry,
|
|
229
|
+
telemetry: TELEMETRY,
|
|
230
|
+
span: "CreatePipeNode",
|
|
231
|
+
}));
|
|
232
|
+
|
|
233
|
+
export type DeletePipeError = TinybirdOpError;
|
|
234
|
+
/** Drops a Pipe from your account. Auth token in use must have the `DROP:NAME` scope. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
235
|
+
export const deletePipe: API.OperationMethod<
|
|
236
|
+
DeletePipeRequest,
|
|
237
|
+
DeletePipeResponse,
|
|
238
|
+
DeletePipeError,
|
|
239
|
+
TinybirdOpContext
|
|
240
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
241
|
+
input: __S(18, __c9, 0) as any as S.Schema<DeletePipeRequest>,
|
|
242
|
+
output: __S(3, __c1, 1) as any as S.Schema<DeletePipeResponse>,
|
|
243
|
+
errors: [],
|
|
244
|
+
serviceErrors: TinybirdServiceErrors,
|
|
245
|
+
protocol: TinybirdProtocol,
|
|
246
|
+
retry: Retry.Retry,
|
|
247
|
+
telemetry: TELEMETRY,
|
|
248
|
+
span: "DeletePipe",
|
|
249
|
+
}));
|
|
250
|
+
|
|
251
|
+
export type DeletePipeByFileNameError = TinybirdOpError;
|
|
252
|
+
/** Drops a Pipe from your account. Auth token in use must have the `DROP:NAME` scope. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
253
|
+
export const deletePipeByFileName: API.OperationMethod<
|
|
254
|
+
DeletePipeByFileNameRequest,
|
|
255
|
+
DeletePipeByFileNameResponse,
|
|
256
|
+
DeletePipeByFileNameError,
|
|
257
|
+
TinybirdOpContext
|
|
258
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
259
|
+
input: __S(20, __c10, 0) as any as S.Schema<DeletePipeByFileNameRequest>,
|
|
260
|
+
output: __S(3, __c1, 1) as any as S.Schema<DeletePipeByFileNameResponse>,
|
|
261
|
+
errors: [],
|
|
262
|
+
serviceErrors: TinybirdServiceErrors,
|
|
263
|
+
protocol: TinybirdProtocol,
|
|
264
|
+
retry: Retry.Retry,
|
|
265
|
+
telemetry: TELEMETRY,
|
|
266
|
+
span: "DeletePipeByFileName",
|
|
267
|
+
}));
|
|
268
|
+
|
|
269
|
+
export type DeletePipeNodeError = TinybirdOpError;
|
|
270
|
+
/** Drops a particular transformation node in the Pipe. It does not remove related nodes so this could leave the Pipe in an inconsistent state. For security reasons, enabled nodes can't be removed. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
271
|
+
export const deletePipeNode: API.OperationMethod<
|
|
272
|
+
DeletePipeNodeRequest,
|
|
273
|
+
DeletePipeNodeResponse,
|
|
274
|
+
DeletePipeNodeError,
|
|
275
|
+
TinybirdOpContext
|
|
276
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
277
|
+
input: __S(22, __c11, 0) as any as S.Schema<DeletePipeNodeRequest>,
|
|
278
|
+
output: __S(3, __c1, 1) as any as S.Schema<DeletePipeNodeResponse>,
|
|
279
|
+
errors: [],
|
|
280
|
+
serviceErrors: TinybirdServiceErrors,
|
|
281
|
+
protocol: TinybirdProtocol,
|
|
282
|
+
retry: Retry.Retry,
|
|
283
|
+
telemetry: TELEMETRY,
|
|
284
|
+
span: "DeletePipeNode",
|
|
285
|
+
}));
|
|
286
|
+
|
|
287
|
+
export type ExplainPipeError = TinybirdOpError;
|
|
288
|
+
/** Return the explain plan and the whole debug query for the node. If no node is specified, the most relevant node of the pipe will be used: - The endpoint node for endpoints. - The node that materializes for materialized views. - The copy node for Copy pipes. - The last node for general pipes. It accepts query parameters to test the query with different values. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
289
|
+
export const explainPipe: API.OperationMethod<
|
|
290
|
+
ExplainPipeRequest,
|
|
291
|
+
ExplainPipeResponse,
|
|
292
|
+
ExplainPipeError,
|
|
293
|
+
TinybirdOpContext
|
|
294
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
295
|
+
input: __S(24, __c12, 0) as any as S.Schema<ExplainPipeRequest>,
|
|
296
|
+
output: __S(3, __c1, 1) as any as S.Schema<ExplainPipeResponse>,
|
|
297
|
+
errors: [],
|
|
298
|
+
serviceErrors: TinybirdServiceErrors,
|
|
299
|
+
protocol: TinybirdProtocol,
|
|
300
|
+
retry: Retry.Retry,
|
|
301
|
+
telemetry: TELEMETRY,
|
|
302
|
+
span: "ExplainPipe",
|
|
303
|
+
}));
|
|
304
|
+
|
|
305
|
+
export type ExplainPipeNodeError = TinybirdOpError;
|
|
306
|
+
/** Return the explain plan and the whole debug query for the node. If no node is specified, the most relevant node of the pipe will be used: - The endpoint node for endpoints. - The node that materializes for materialized views. - The copy node for Copy pipes. - The last node for general pipes. It accepts query parameters to test the query with different values. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
307
|
+
export const explainPipeNode: API.OperationMethod<
|
|
308
|
+
ExplainPipeNodeRequest,
|
|
309
|
+
ExplainPipeNodeResponse,
|
|
310
|
+
ExplainPipeNodeError,
|
|
311
|
+
TinybirdOpContext
|
|
312
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
313
|
+
input: __S(26, __c13, 0) as any as S.Schema<ExplainPipeNodeRequest>,
|
|
314
|
+
output: __S(3, __c1, 1) as any as S.Schema<ExplainPipeNodeResponse>,
|
|
315
|
+
errors: [],
|
|
316
|
+
serviceErrors: TinybirdServiceErrors,
|
|
317
|
+
protocol: TinybirdProtocol,
|
|
318
|
+
retry: Retry.Retry,
|
|
319
|
+
telemetry: TELEMETRY,
|
|
320
|
+
span: "ExplainPipeNode",
|
|
321
|
+
}));
|
|
322
|
+
|
|
323
|
+
export type GetPipeError = TinybirdOpError;
|
|
324
|
+
/** Get pipe information. Provided Auth Token must have read access to the Pipe. `pipe_id` and `pipe_name` are two ways to refer to the pipe in SQL queries and API endpoints the only difference is `pipe_id` never changes so it'll work even if you change the `pipe_name` (which is the name used to display the pipe). In general you can use `pipe_id` or `pipe_name` indistinctly: You can make your Pipe's id more descriptive by prepending information such as `t_my_events_table.bd1c62b5e67142bd9bf9a7f113a2b6ea` Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
325
|
+
export const getPipe: API.OperationMethod<
|
|
326
|
+
GetPipeRequest,
|
|
327
|
+
GetPipeResponse,
|
|
328
|
+
GetPipeError,
|
|
329
|
+
TinybirdOpContext
|
|
330
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
331
|
+
input: __S(28, __c14, 0) as any as S.Schema<GetPipeRequest>,
|
|
332
|
+
output: __S(3, __c1, 1) as any as S.Schema<GetPipeResponse>,
|
|
333
|
+
errors: [],
|
|
334
|
+
serviceErrors: TinybirdServiceErrors,
|
|
335
|
+
protocol: TinybirdProtocol,
|
|
336
|
+
retry: Retry.Retry,
|
|
337
|
+
telemetry: TELEMETRY,
|
|
338
|
+
span: "GetPipe",
|
|
339
|
+
}));
|
|
340
|
+
|
|
341
|
+
export type GetPipeByFileNameError = TinybirdOpError;
|
|
342
|
+
/** Get pipe information. Provided Auth Token must have read access to the Pipe. `pipe_id` and `pipe_name` are two ways to refer to the pipe in SQL queries and API endpoints the only difference is `pipe_id` never changes so it'll work even if you change the `pipe_name` (which is the name used to display the pipe). In general you can use `pipe_id` or `pipe_name` indistinctly: You can make your Pipe's id more descriptive by prepending information such as `t_my_events_table.bd1c62b5e67142bd9bf9a7f113a2b6ea` Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
343
|
+
export const getPipeByFileName: API.OperationMethod<
|
|
344
|
+
GetPipeByFileNameRequest,
|
|
345
|
+
GetPipeByFileNameResponse,
|
|
346
|
+
GetPipeByFileNameError,
|
|
347
|
+
TinybirdOpContext
|
|
348
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
349
|
+
input: __S(30, __c15, 0) as any as S.Schema<GetPipeByFileNameRequest>,
|
|
350
|
+
output: __S(31, __c15, 1) as any as S.Schema<GetPipeByFileNameResponse>,
|
|
351
|
+
errors: [],
|
|
352
|
+
serviceErrors: TinybirdServiceErrors,
|
|
353
|
+
protocol: TinybirdProtocol,
|
|
354
|
+
retry: Retry.Retry,
|
|
355
|
+
telemetry: TELEMETRY,
|
|
356
|
+
span: "GetPipeByFileName",
|
|
357
|
+
}));
|
|
358
|
+
|
|
359
|
+
export type ListPipesError = TinybirdOpError;
|
|
360
|
+
/** Get a list of pipes in your account. Pipes in the response will be the ones that are accessible using a particular token with read permissions for them. Pipes id's are immutable so you can always refer to them in your 3rd party applications to make them compatible with Pipes once they are renamed. For lighter JSON responses consider using the `attrs` and `node_attrs` params to return exactly the attributes you need to consume. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
361
|
+
export const listPipes: API.OperationMethod<
|
|
362
|
+
ListPipesRequest,
|
|
363
|
+
ListPipesResponse,
|
|
364
|
+
ListPipesError,
|
|
365
|
+
TinybirdOpContext
|
|
366
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
367
|
+
input: __S(32, __c16, 0) as any as S.Schema<ListPipesRequest>,
|
|
368
|
+
output: __S(3, __c1, 1) as any as S.Schema<ListPipesResponse>,
|
|
369
|
+
errors: [],
|
|
370
|
+
serviceErrors: TinybirdServiceErrors,
|
|
371
|
+
protocol: TinybirdProtocol,
|
|
372
|
+
retry: Retry.Retry,
|
|
373
|
+
telemetry: TELEMETRY,
|
|
374
|
+
span: "ListPipes",
|
|
375
|
+
}));
|
|
376
|
+
|
|
377
|
+
export type QueryPipeError = TinybirdOpError;
|
|
378
|
+
/** Returns the published node data in a particular format. The `q` parameter is a SQL query (see [Query API](/docs/api-reference/query-api)). When using this endpoint to query your Pipes, you can use the `_` shortcut, which refers to your Pipe name Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
379
|
+
export const queryPipe: API.OperationMethod<
|
|
380
|
+
QueryPipeRequest,
|
|
381
|
+
QueryPipeResponse,
|
|
382
|
+
QueryPipeError,
|
|
383
|
+
TinybirdOpContext
|
|
384
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
385
|
+
input: __S(6, __c3, 0) as any as S.Schema<QueryPipeRequest>,
|
|
386
|
+
output: __S(8, __c4, 0) as any as S.Schema<QueryPipeResponse>,
|
|
387
|
+
errors: [],
|
|
388
|
+
serviceErrors: TinybirdServiceErrors,
|
|
389
|
+
protocol: TinybirdProtocol,
|
|
390
|
+
retry: Retry.Retry,
|
|
391
|
+
telemetry: TELEMETRY,
|
|
392
|
+
span: "QueryPipe",
|
|
393
|
+
}));
|
|
394
|
+
|
|
395
|
+
export type QueryPipeWithBodyError = TinybirdOpError;
|
|
396
|
+
/** Returns the published node data in a particular format, passing the parameters in the request body. Use this endpoint when the query is too long to be passed as a query string parameter. When using the post endpoint, there are no traces of the parameters in the pipe_stats_rt Data Source. See the get endpoint for more information. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
397
|
+
export const queryPipeWithBody: API.OperationMethod<
|
|
398
|
+
QueryPipeWithBodyRequest,
|
|
399
|
+
QueryPipeWithBodyResponse,
|
|
400
|
+
QueryPipeWithBodyError,
|
|
401
|
+
TinybirdOpContext
|
|
402
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
403
|
+
input: __S(10, __c5, 0) as any as S.Schema<QueryPipeWithBodyRequest>,
|
|
404
|
+
output: __S(8, __c4, 0) as any as S.Schema<QueryPipeWithBodyResponse>,
|
|
405
|
+
errors: [],
|
|
406
|
+
serviceErrors: TinybirdServiceErrors,
|
|
407
|
+
protocol: TinybirdProtocol,
|
|
408
|
+
retry: Retry.Retry,
|
|
409
|
+
telemetry: TELEMETRY,
|
|
410
|
+
span: "QueryPipeWithBody",
|
|
411
|
+
}));
|
|
412
|
+
|
|
413
|
+
export type UpdatePipeError = TinybirdOpError;
|
|
414
|
+
/** Changes Pipe's metadata. When there is another Pipe with the same name an error is raised. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
415
|
+
export const updatePipe: API.OperationMethod<
|
|
416
|
+
UpdatePipeRequest,
|
|
417
|
+
UpdatePipeResponse,
|
|
418
|
+
UpdatePipeError,
|
|
419
|
+
TinybirdOpContext
|
|
420
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
421
|
+
input: __S(12, __c6, 0) as any as S.Schema<UpdatePipeRequest>,
|
|
422
|
+
output: __S(3, __c1, 1) as any as S.Schema<UpdatePipeResponse>,
|
|
423
|
+
errors: [],
|
|
424
|
+
serviceErrors: TinybirdServiceErrors,
|
|
425
|
+
protocol: TinybirdProtocol,
|
|
426
|
+
retry: Retry.Retry,
|
|
427
|
+
telemetry: TELEMETRY,
|
|
428
|
+
span: "UpdatePipe",
|
|
429
|
+
}));
|
|
430
|
+
|
|
431
|
+
export type UpdatePipeByFileNameError = TinybirdOpError;
|
|
432
|
+
/** Changes Pipe's metadata. When there is another Pipe with the same name an error is raised. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
433
|
+
export const updatePipeByFileName: API.OperationMethod<
|
|
434
|
+
UpdatePipeByFileNameRequest,
|
|
435
|
+
UpdatePipeByFileNameResponse,
|
|
436
|
+
UpdatePipeByFileNameError,
|
|
437
|
+
TinybirdOpContext
|
|
438
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
439
|
+
input: __S(14, __c7, 0) as any as S.Schema<UpdatePipeByFileNameRequest>,
|
|
440
|
+
output: __S(3, __c1, 1) as any as S.Schema<UpdatePipeByFileNameResponse>,
|
|
441
|
+
errors: [],
|
|
442
|
+
serviceErrors: TinybirdServiceErrors,
|
|
443
|
+
protocol: TinybirdProtocol,
|
|
444
|
+
retry: Retry.Retry,
|
|
445
|
+
telemetry: TELEMETRY,
|
|
446
|
+
span: "UpdatePipeByFileName",
|
|
447
|
+
}));
|
|
448
|
+
|
|
449
|
+
export type UpdatePipeNodeError = TinybirdOpError;
|
|
450
|
+
/** Changes a particular transformation node in the Pipe Please, note that the desired SQL query should be sent in the body encoded in utf-8. Reference: https://www.tinybird.co/docs/api-reference/pipe-api */
|
|
451
|
+
export const updatePipeNode: API.OperationMethod<
|
|
452
|
+
UpdatePipeNodeRequest,
|
|
453
|
+
UpdatePipeNodeResponse,
|
|
454
|
+
UpdatePipeNodeError,
|
|
455
|
+
TinybirdOpContext
|
|
456
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
457
|
+
input: __S(16, __c8, 0) as any as S.Schema<UpdatePipeNodeRequest>,
|
|
458
|
+
output: __S(3, __c1, 1) as any as S.Schema<UpdatePipeNodeResponse>,
|
|
459
|
+
errors: [],
|
|
460
|
+
serviceErrors: TinybirdServiceErrors,
|
|
461
|
+
protocol: TinybirdProtocol,
|
|
462
|
+
retry: Retry.Retry,
|
|
463
|
+
telemetry: TELEMETRY,
|
|
464
|
+
span: "UpdatePipeNode",
|
|
465
|
+
}));
|
|
466
|
+
|
|
467
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
468
|
+
function __c0(j: number): any {
|
|
469
|
+
switch (j) {
|
|
470
|
+
case 0:
|
|
471
|
+
return S.suspend(() =>
|
|
472
|
+
S.Struct({
|
|
473
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
474
|
+
sql: S.optional(S.String.pipe(T.Query())),
|
|
475
|
+
from: S.optional(S.String.pipe(T.Query())),
|
|
476
|
+
description: S.optional(S.String.pipe(T.Query())),
|
|
477
|
+
}).pipe(T.Http({ method: "POST", uri: "/v0/pipes", code: 200 })),
|
|
478
|
+
).annotate({ identifier: "PostV0PipesRequest" });
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
function __c1(j: number): any {
|
|
482
|
+
switch (j) {
|
|
483
|
+
case 0:
|
|
484
|
+
return S.Record(S.String, S.Unknown);
|
|
485
|
+
case 1:
|
|
486
|
+
return S.suspend(() => __S(2, __c1, 0).pipe(T.RawResponseRoot())).annotate({
|
|
487
|
+
identifier: "CreatePipeResponse",
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
function __c2(j: number): any {
|
|
492
|
+
switch (j) {
|
|
493
|
+
case 0:
|
|
494
|
+
return S.suspend(() =>
|
|
495
|
+
S.Struct({
|
|
496
|
+
pipe: S.String.pipe(T.Label()),
|
|
497
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
498
|
+
description: S.optional(S.String.pipe(T.Query())),
|
|
499
|
+
token: S.optional(S.String.pipe(T.Query(), T.SensitiveValue({}))),
|
|
500
|
+
type: S.optional(S.String.pipe(T.Query())),
|
|
501
|
+
datasource: S.optional(S.String.pipe(T.Query())),
|
|
502
|
+
override_datasource: S.optional(S.Boolean.pipe(T.Query())),
|
|
503
|
+
populate: S.optional(S.Boolean.pipe(T.Query())),
|
|
504
|
+
populate_subset: S.optional(S.Number.pipe(T.Query())),
|
|
505
|
+
populate_condition: S.optional(S.String.pipe(T.Query())),
|
|
506
|
+
unlink_on_populate_error: S.optional(S.String.pipe(T.Query())),
|
|
507
|
+
engine: S.optional(S.String.pipe(T.Query())),
|
|
508
|
+
body: S.String.pipe(T.HttpBody()),
|
|
509
|
+
}).pipe(
|
|
510
|
+
T.Http({
|
|
511
|
+
method: "POST",
|
|
512
|
+
uri: "/v0/pipes/{pipe}/nodes",
|
|
513
|
+
code: 200,
|
|
514
|
+
bodyMediaType: "text/plain",
|
|
515
|
+
}),
|
|
516
|
+
),
|
|
517
|
+
).annotate({ identifier: "CreatePipeNodeRequest" });
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
function __c3(j: number): any {
|
|
521
|
+
switch (j) {
|
|
522
|
+
case 0:
|
|
523
|
+
return S.suspend(() =>
|
|
524
|
+
S.Struct({
|
|
525
|
+
pipe: S.String.pipe(T.Label()),
|
|
526
|
+
format: S.String.pipe(T.Label()),
|
|
527
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
528
|
+
output_format_json_quote_64bit_integers: S.optional(S.Number.pipe(T.Query())),
|
|
529
|
+
output_format_json_quote_denormals: S.optional(S.Number.pipe(T.Query())),
|
|
530
|
+
output_format_parquet_string_as_string: S.optional(S.Number.pipe(T.Query())),
|
|
531
|
+
__tb__csv_header: S.optional(S.Boolean.pipe(T.Query())),
|
|
532
|
+
}).pipe(T.Http({ method: "GET", uri: "/v0/pipes/{pipe}.{format}", code: 200 })),
|
|
533
|
+
).annotate({ identifier: "QueryPipeRequest" });
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
function __c4(j: number): any {
|
|
537
|
+
switch (j) {
|
|
538
|
+
case 0:
|
|
539
|
+
return S.suspend(() =>
|
|
540
|
+
S.Struct({
|
|
541
|
+
body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
|
|
542
|
+
contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
|
|
543
|
+
}),
|
|
544
|
+
).annotate({ identifier: "QueryPipeResponse" });
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function __c5(j: number): any {
|
|
548
|
+
switch (j) {
|
|
549
|
+
case 0:
|
|
550
|
+
return S.suspend(() =>
|
|
551
|
+
S.StructWithRest(
|
|
552
|
+
S.Struct({
|
|
553
|
+
pipe: S.String.pipe(T.Label()),
|
|
554
|
+
format: S.String.pipe(T.Label()),
|
|
555
|
+
}),
|
|
556
|
+
[S.Record(S.String, S.Unknown)],
|
|
557
|
+
).pipe(T.Http({ method: "POST", uri: "/v0/pipes/{pipe}.{format}", code: 200 })),
|
|
558
|
+
).annotate({ identifier: "QueryPipeWithBodyRequest" });
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
function __c6(j: number): any {
|
|
562
|
+
switch (j) {
|
|
563
|
+
case 0:
|
|
564
|
+
return S.suspend(() =>
|
|
565
|
+
S.Struct({
|
|
566
|
+
pipe: S.String.pipe(T.Label()),
|
|
567
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
568
|
+
description: S.optional(S.String.pipe(T.Query())),
|
|
569
|
+
token: S.optional(S.String.pipe(T.Query(), T.SensitiveValue({}))),
|
|
570
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v0/pipes/{pipe}", code: 200 })),
|
|
571
|
+
).annotate({ identifier: "UpdatePipeRequest" });
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
function __c7(j: number): any {
|
|
575
|
+
switch (j) {
|
|
576
|
+
case 0:
|
|
577
|
+
return S.suspend(() =>
|
|
578
|
+
S.Struct({
|
|
579
|
+
pipe: S.String.pipe(T.Label()),
|
|
580
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
581
|
+
description: S.optional(S.String.pipe(T.Query())),
|
|
582
|
+
token: S.optional(S.String.pipe(T.Query(), T.SensitiveValue({}))),
|
|
583
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v0/pipes/{pipe}.pipe", code: 200 })),
|
|
584
|
+
).annotate({ identifier: "UpdatePipeByFileNameRequest" });
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
function __c8(j: number): any {
|
|
588
|
+
switch (j) {
|
|
589
|
+
case 0:
|
|
590
|
+
return S.suspend(() =>
|
|
591
|
+
S.Struct({
|
|
592
|
+
pipe: S.String.pipe(T.Label()),
|
|
593
|
+
node: S.String.pipe(T.Label()),
|
|
594
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
595
|
+
description: S.optional(S.String.pipe(T.Query())),
|
|
596
|
+
token: S.optional(S.String.pipe(T.Query(), T.SensitiveValue({}))),
|
|
597
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v0/pipes/{pipe}/nodes/{node}", code: 200 })),
|
|
598
|
+
).annotate({ identifier: "UpdatePipeNodeRequest" });
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
function __c9(j: number): any {
|
|
602
|
+
switch (j) {
|
|
603
|
+
case 0:
|
|
604
|
+
return S.suspend(() =>
|
|
605
|
+
S.Struct({
|
|
606
|
+
pipe: S.String.pipe(T.Label()),
|
|
607
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/v0/pipes/{pipe}", code: 200 })),
|
|
608
|
+
).annotate({ identifier: "DeletePipeRequest" });
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
function __c10(j: number): any {
|
|
612
|
+
switch (j) {
|
|
613
|
+
case 0:
|
|
614
|
+
return S.suspend(() =>
|
|
615
|
+
S.Struct({
|
|
616
|
+
pipe: S.String.pipe(T.Label()),
|
|
617
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/v0/pipes/{pipe}.pipe", code: 200 })),
|
|
618
|
+
).annotate({ identifier: "DeletePipeByFileNameRequest" });
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
function __c11(j: number): any {
|
|
622
|
+
switch (j) {
|
|
623
|
+
case 0:
|
|
624
|
+
return S.suspend(() =>
|
|
625
|
+
S.Struct({
|
|
626
|
+
pipe: S.String.pipe(T.Label()),
|
|
627
|
+
node: S.String.pipe(T.Label()),
|
|
628
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/v0/pipes/{pipe}/nodes/{node}", code: 200 })),
|
|
629
|
+
).annotate({ identifier: "DeletePipeNodeRequest" });
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function __c12(j: number): any {
|
|
633
|
+
switch (j) {
|
|
634
|
+
case 0:
|
|
635
|
+
return S.suspend(() =>
|
|
636
|
+
S.Struct({
|
|
637
|
+
pipe: S.String.pipe(T.Label()),
|
|
638
|
+
token: S.optional(S.String.pipe(T.Query(), T.SensitiveValue({}))),
|
|
639
|
+
pipe_name: S.optional(S.String.pipe(T.Query())),
|
|
640
|
+
node_name: S.optional(S.String.pipe(T.Query())),
|
|
641
|
+
params: S.optional(S.String.pipe(T.Query())),
|
|
642
|
+
}).pipe(T.Http({ method: "GET", uri: "/v0/pipes/{pipe}/explain", code: 200 })),
|
|
643
|
+
).annotate({ identifier: "ExplainPipeRequest" });
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
function __c13(j: number): any {
|
|
647
|
+
switch (j) {
|
|
648
|
+
case 0:
|
|
649
|
+
return S.suspend(() =>
|
|
650
|
+
S.Struct({
|
|
651
|
+
pipe: S.String.pipe(T.Label()),
|
|
652
|
+
node: S.String.pipe(T.Label()),
|
|
653
|
+
token: S.optional(S.String.pipe(T.Query(), T.SensitiveValue({}))),
|
|
654
|
+
pipe_name: S.optional(S.String.pipe(T.Query())),
|
|
655
|
+
node_name: S.optional(S.String.pipe(T.Query())),
|
|
656
|
+
params: S.optional(S.String.pipe(T.Query())),
|
|
657
|
+
}).pipe(T.Http({ method: "GET", uri: "/v0/pipes/{pipe}/nodes/{node}/explain", code: 200 })),
|
|
658
|
+
).annotate({ identifier: "ExplainPipeNodeRequest" });
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
function __c14(j: number): any {
|
|
662
|
+
switch (j) {
|
|
663
|
+
case 0:
|
|
664
|
+
return S.suspend(() =>
|
|
665
|
+
S.Struct({
|
|
666
|
+
pipe: S.String.pipe(T.Label()),
|
|
667
|
+
}).pipe(T.Http({ method: "GET", uri: "/v0/pipes/{pipe}", code: 200 })),
|
|
668
|
+
).annotate({ identifier: "GetPipeRequest" });
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
function __c15(j: number): any {
|
|
672
|
+
switch (j) {
|
|
673
|
+
case 0:
|
|
674
|
+
return S.suspend(() =>
|
|
675
|
+
S.Struct({
|
|
676
|
+
pipe: S.String.pipe(T.Label()),
|
|
677
|
+
}).pipe(T.Http({ method: "GET", uri: "/v0/pipes/{pipe}.pipe", code: 200 })),
|
|
678
|
+
).annotate({ identifier: "GetPipeByFileNameRequest" });
|
|
679
|
+
case 1:
|
|
680
|
+
return S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
681
|
+
identifier: "GetPipeByFileNameResponse",
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
function __c16(j: number): any {
|
|
686
|
+
switch (j) {
|
|
687
|
+
case 0:
|
|
688
|
+
return S.suspend(() =>
|
|
689
|
+
S.Struct({
|
|
690
|
+
dependencies: S.optional(S.Boolean.pipe(T.Query())),
|
|
691
|
+
attrs: S.optional(S.String.pipe(T.Query())),
|
|
692
|
+
node_attrs: S.optional(S.String.pipe(T.Query())),
|
|
693
|
+
}).pipe(T.Http({ method: "GET", uri: "/v0/pipes", code: 200 })),
|
|
694
|
+
).annotate({ identifier: "ListPipesRequest" });
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
698
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
699
|
+
return (__s[i] ??= __L.at(f, j));
|
|
700
|
+
}
|