@galaxy-io/filament-ts 0.3.0 → 0.5.0
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/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +2 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/Client.d.ts +46 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/Client.js +125 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/index.d.ts +1 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/index.js +1 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/requests/IngestionV1ListTransformFunctionsRequest.d.ts +12 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/requests/IngestionV1ListTransformFunctionsRequest.js +2 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/requests/IngestionV1ValidateTransformRequest.d.ts +14 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/requests/IngestionV1ValidateTransformRequest.js +2 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/requests/index.d.ts +2 -0
- package/dist/api/resources/ingestionV1Ingestionservice/client/requests/index.js +1 -0
- package/dist/api/resources/ingestionV1Ingestionservice/exports.d.ts +2 -0
- package/dist/api/resources/ingestionV1Ingestionservice/exports.js +3 -0
- package/dist/api/resources/ingestionV1Ingestionservice/index.d.ts +1 -0
- package/dist/api/resources/ingestionV1Ingestionservice/index.js +1 -0
- package/dist/api/types/AuthV1GetAuthConfigResponse.d.ts +5 -0
- package/dist/api/types/GoogleProtobufNullValue.d.ts +8 -3
- package/dist/api/types/GoogleProtobufNullValue.js +8 -3
- package/dist/api/types/IngestionV1ConnectorSpec.d.ts +2 -0
- package/dist/api/types/IngestionV1ListTransformFunctionsResponse.d.ts +11 -0
- package/dist/api/types/IngestionV1ListTransformFunctionsResponse.js +2 -0
- package/dist/api/types/IngestionV1NotificationType.d.ts +1 -0
- package/dist/api/types/IngestionV1NotificationType.js +1 -0
- package/dist/api/types/IngestionV1Notifier.d.ts +2 -1
- package/dist/api/types/IngestionV1PipelineEdge.d.ts +6 -0
- package/dist/api/types/IngestionV1ReadMode.d.ts +1 -0
- package/dist/api/types/IngestionV1ReadMode.js +1 -0
- package/dist/api/types/IngestionV1ResourceColumns.d.ts +2 -0
- package/dist/api/types/IngestionV1TransformArgument.d.ts +15 -0
- package/dist/api/types/IngestionV1TransformArgument.js +2 -0
- package/dist/api/types/IngestionV1TransformExpressionType.d.ts +11 -0
- package/dist/api/types/IngestionV1TransformExpressionType.js +2 -0
- package/dist/api/types/IngestionV1TransformFunction.d.ts +22 -0
- package/dist/api/types/IngestionV1TransformFunction.js +2 -0
- package/dist/api/types/IngestionV1ValidateTransformResponse.d.ts +14 -0
- package/dist/api/types/IngestionV1ValidateTransformResponse.js +2 -0
- package/dist/api/types/IngestionV1WriteMode.d.ts +1 -0
- package/dist/api/types/IngestionV1WriteMode.js +1 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AuthClient } from "./api/resources/auth/client/Client.js";
|
|
2
2
|
import { ConnectionClient } from "./api/resources/connection/client/Client.js";
|
|
3
3
|
import { ConnectorClient } from "./api/resources/connector/client/Client.js";
|
|
4
|
+
import { IngestionV1IngestionserviceClient } from "./api/resources/ingestionV1Ingestionservice/client/Client.js";
|
|
4
5
|
import { MemberClient } from "./api/resources/member/client/Client.js";
|
|
5
6
|
import { MetricsClient } from "./api/resources/metrics/client/Client.js";
|
|
6
7
|
import { PipelineClient } from "./api/resources/pipeline/client/Client.js";
|
|
@@ -23,6 +24,7 @@ export declare class FilamentClient {
|
|
|
23
24
|
protected _pipeline: PipelineClient | undefined;
|
|
24
25
|
protected _connector: ConnectorClient | undefined;
|
|
25
26
|
protected _run: RunClient | undefined;
|
|
27
|
+
protected _ingestionV1Ingestionservice: IngestionV1IngestionserviceClient | undefined;
|
|
26
28
|
protected _metrics: MetricsClient | undefined;
|
|
27
29
|
constructor(options: FilamentClient.Options);
|
|
28
30
|
get auth(): AuthClient;
|
|
@@ -32,6 +34,7 @@ export declare class FilamentClient {
|
|
|
32
34
|
get pipeline(): PipelineClient;
|
|
33
35
|
get connector(): ConnectorClient;
|
|
34
36
|
get run(): RunClient;
|
|
37
|
+
get ingestionV1Ingestionservice(): IngestionV1IngestionserviceClient;
|
|
35
38
|
get metrics(): MetricsClient;
|
|
36
39
|
/**
|
|
37
40
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
package/dist/Client.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { AuthClient } from "./api/resources/auth/client/Client.js";
|
|
3
3
|
import { ConnectionClient } from "./api/resources/connection/client/Client.js";
|
|
4
4
|
import { ConnectorClient } from "./api/resources/connector/client/Client.js";
|
|
5
|
+
import { IngestionV1IngestionserviceClient } from "./api/resources/ingestionV1Ingestionservice/client/Client.js";
|
|
5
6
|
import { MemberClient } from "./api/resources/member/client/Client.js";
|
|
6
7
|
import { MetricsClient } from "./api/resources/metrics/client/Client.js";
|
|
7
8
|
import { PipelineClient } from "./api/resources/pipeline/client/Client.js";
|
|
@@ -18,6 +19,7 @@ export class FilamentClient {
|
|
|
18
19
|
_pipeline;
|
|
19
20
|
_connector;
|
|
20
21
|
_run;
|
|
22
|
+
_ingestionV1Ingestionservice;
|
|
21
23
|
_metrics;
|
|
22
24
|
constructor(options) {
|
|
23
25
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
@@ -43,6 +45,9 @@ export class FilamentClient {
|
|
|
43
45
|
get run() {
|
|
44
46
|
return (this._run ??= new RunClient(this._options));
|
|
45
47
|
}
|
|
48
|
+
get ingestionV1Ingestionservice() {
|
|
49
|
+
return (this._ingestionV1Ingestionservice ??= new IngestionV1IngestionserviceClient(this._options));
|
|
50
|
+
}
|
|
46
51
|
get metrics() {
|
|
47
52
|
return (this._metrics ??= new MetricsClient(this._options));
|
|
48
53
|
}
|
|
@@ -4,6 +4,8 @@ export * from "./connection/client/requests/index.js";
|
|
|
4
4
|
export * as connection from "./connection/index.js";
|
|
5
5
|
export * from "./connector/client/requests/index.js";
|
|
6
6
|
export * as connector from "./connector/index.js";
|
|
7
|
+
export * from "./ingestionV1Ingestionservice/client/requests/index.js";
|
|
8
|
+
export * as ingestionV1Ingestionservice from "./ingestionV1Ingestionservice/index.js";
|
|
7
9
|
export * from "./member/client/requests/index.js";
|
|
8
10
|
export * as member from "./member/index.js";
|
|
9
11
|
export * from "./metrics/client/requests/index.js";
|
|
@@ -4,6 +4,8 @@ export * from "./connection/client/requests/index.js";
|
|
|
4
4
|
export * as connection from "./connection/index.js";
|
|
5
5
|
export * from "./connector/client/requests/index.js";
|
|
6
6
|
export * as connector from "./connector/index.js";
|
|
7
|
+
export * from "./ingestionV1Ingestionservice/client/requests/index.js";
|
|
8
|
+
export * as ingestionV1Ingestionservice from "./ingestionV1Ingestionservice/index.js";
|
|
7
9
|
export * from "./member/client/requests/index.js";
|
|
8
10
|
export * as member from "./member/index.js";
|
|
9
11
|
export * from "./metrics/client/requests/index.js";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import type * as Filament from "../../../index.js";
|
|
5
|
+
export declare namespace IngestionV1IngestionserviceClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* IngestionService is the engine-as-a-service surface the pipeline UI drives.
|
|
12
|
+
*/
|
|
13
|
+
export declare class IngestionV1IngestionserviceClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<IngestionV1IngestionserviceClient.Options>;
|
|
15
|
+
constructor(options: IngestionV1IngestionserviceClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Transformations; the function catalog and per-resource compile check a builder needs.
|
|
18
|
+
*
|
|
19
|
+
* @param {Filament.IngestionV1ListTransformFunctionsRequest} request
|
|
20
|
+
* @param {IngestionV1IngestionserviceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
|
+
*
|
|
22
|
+
* @throws {@link errors.FilamentError}
|
|
23
|
+
* @throws {@link errors.FilamentTimeoutError}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.ingestionV1Ingestionservice.listtransformfunctions({
|
|
27
|
+
* "Connect-Timeout-Ms": 1000
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
listtransformfunctions(request?: Filament.IngestionV1ListTransformFunctionsRequest, requestOptions?: IngestionV1IngestionserviceClient.RequestOptions): core.HttpResponsePromise<Filament.IngestionV1ListTransformFunctionsResponse>;
|
|
31
|
+
private __listtransformfunctions;
|
|
32
|
+
/**
|
|
33
|
+
* @param {Filament.IngestionV1ValidateTransformRequest} request
|
|
34
|
+
* @param {IngestionV1IngestionserviceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link errors.FilamentError}
|
|
37
|
+
* @throws {@link errors.FilamentTimeoutError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.ingestionV1Ingestionservice.validatetransform({
|
|
41
|
+
* "Connect-Timeout-Ms": 1000
|
|
42
|
+
* })
|
|
43
|
+
*/
|
|
44
|
+
validatetransform(request?: Filament.IngestionV1ValidateTransformRequest, requestOptions?: IngestionV1IngestionserviceClient.RequestOptions): core.HttpResponsePromise<Filament.IngestionV1ValidateTransformResponse>;
|
|
45
|
+
private __validatetransform;
|
|
46
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
|
|
4
|
+
import * as core from "../../../../core/index.js";
|
|
5
|
+
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.js";
|
|
6
|
+
import * as environments from "../../../../environments.js";
|
|
7
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
|
|
8
|
+
import * as errors from "../../../../errors/index.js";
|
|
9
|
+
/**
|
|
10
|
+
* IngestionService is the engine-as-a-service surface the pipeline UI drives.
|
|
11
|
+
*/
|
|
12
|
+
export class IngestionV1IngestionserviceClient {
|
|
13
|
+
_options;
|
|
14
|
+
constructor(options) {
|
|
15
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Transformations; the function catalog and per-resource compile check a builder needs.
|
|
19
|
+
*
|
|
20
|
+
* @param {Filament.IngestionV1ListTransformFunctionsRequest} request
|
|
21
|
+
* @param {IngestionV1IngestionserviceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
|
+
*
|
|
23
|
+
* @throws {@link errors.FilamentError}
|
|
24
|
+
* @throws {@link errors.FilamentTimeoutError}
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* await client.ingestionV1Ingestionservice.listtransformfunctions({
|
|
28
|
+
* "Connect-Timeout-Ms": 1000
|
|
29
|
+
* })
|
|
30
|
+
*/
|
|
31
|
+
listtransformfunctions(request = {}, requestOptions) {
|
|
32
|
+
return core.HttpResponsePromise.fromPromise(this.__listtransformfunctions(request, requestOptions));
|
|
33
|
+
}
|
|
34
|
+
async __listtransformfunctions(request = {}, requestOptions) {
|
|
35
|
+
const { "Connect-Timeout-Ms": connectTimeoutMs, ..._body } = request;
|
|
36
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
37
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({
|
|
38
|
+
"Connect-Timeout-Ms": connectTimeoutMs,
|
|
39
|
+
"Connect-Protocol-Version": requestOptions?.connectProtocolVersion ?? "1",
|
|
40
|
+
}), requestOptions?.headers);
|
|
41
|
+
const _response = await core.fetcher({
|
|
42
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
43
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
44
|
+
environments.FilamentEnvironment.Default, "ingestion.v1.IngestionService/ListTransformFunctions"),
|
|
45
|
+
method: "POST",
|
|
46
|
+
headers: _headers,
|
|
47
|
+
contentType: "application/json",
|
|
48
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
49
|
+
requestType: "json",
|
|
50
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
|
|
51
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
52
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
53
|
+
abortSignal: requestOptions?.abortSignal,
|
|
54
|
+
fetchFn: this._options?.fetch,
|
|
55
|
+
logging: this._options.logging,
|
|
56
|
+
});
|
|
57
|
+
if (_response.ok) {
|
|
58
|
+
return {
|
|
59
|
+
data: _response.body,
|
|
60
|
+
rawResponse: _response.rawResponse,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (_response.error.reason === "status-code") {
|
|
64
|
+
throw new errors.FilamentError({
|
|
65
|
+
statusCode: _response.error.statusCode,
|
|
66
|
+
body: _response.error.body,
|
|
67
|
+
rawResponse: _response.rawResponse,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/ingestion.v1.IngestionService/ListTransformFunctions");
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param {Filament.IngestionV1ValidateTransformRequest} request
|
|
74
|
+
* @param {IngestionV1IngestionserviceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link errors.FilamentError}
|
|
77
|
+
* @throws {@link errors.FilamentTimeoutError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.ingestionV1Ingestionservice.validatetransform({
|
|
81
|
+
* "Connect-Timeout-Ms": 1000
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
validatetransform(request = {}, requestOptions) {
|
|
85
|
+
return core.HttpResponsePromise.fromPromise(this.__validatetransform(request, requestOptions));
|
|
86
|
+
}
|
|
87
|
+
async __validatetransform(request = {}, requestOptions) {
|
|
88
|
+
const { "Connect-Timeout-Ms": connectTimeoutMs, ..._body } = request;
|
|
89
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
90
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({
|
|
91
|
+
"Connect-Timeout-Ms": connectTimeoutMs,
|
|
92
|
+
"Connect-Protocol-Version": requestOptions?.connectProtocolVersion ?? "1",
|
|
93
|
+
}), requestOptions?.headers);
|
|
94
|
+
const _response = await core.fetcher({
|
|
95
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
96
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
97
|
+
environments.FilamentEnvironment.Default, "ingestion.v1.IngestionService/ValidateTransform"),
|
|
98
|
+
method: "POST",
|
|
99
|
+
headers: _headers,
|
|
100
|
+
contentType: "application/json",
|
|
101
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
102
|
+
requestType: "json",
|
|
103
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
|
|
104
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
105
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
106
|
+
abortSignal: requestOptions?.abortSignal,
|
|
107
|
+
fetchFn: this._options?.fetch,
|
|
108
|
+
logging: this._options.logging,
|
|
109
|
+
});
|
|
110
|
+
if (_response.ok) {
|
|
111
|
+
return {
|
|
112
|
+
data: _response.body,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
if (_response.error.reason === "status-code") {
|
|
117
|
+
throw new errors.FilamentError({
|
|
118
|
+
statusCode: _response.error.statusCode,
|
|
119
|
+
body: _response.error.body,
|
|
120
|
+
rawResponse: _response.rawResponse,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/ingestion.v1.IngestionService/ValidateTransform");
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Filament from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* "Connect-Timeout-Ms": 1000
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface IngestionV1ListTransformFunctionsRequest {
|
|
9
|
+
/** Define the timeout, in ms */
|
|
10
|
+
"Connect-Timeout-Ms"?: Filament.ConnectTimeoutHeader;
|
|
11
|
+
logicalType?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Filament from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* "Connect-Timeout-Ms": 1000
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface IngestionV1ValidateTransformRequest {
|
|
9
|
+
/** Define the timeout, in ms */
|
|
10
|
+
"Connect-Timeout-Ms"?: Filament.ConnectTimeoutHeader;
|
|
11
|
+
sourceConnectionId?: string;
|
|
12
|
+
resource?: string;
|
|
13
|
+
transform?: Filament.GoogleProtobufStruct;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -11,4 +11,9 @@ export interface AuthV1GetAuthConfigResponse {
|
|
|
11
11
|
* project IDs or reserved scope knowledge.
|
|
12
12
|
*/
|
|
13
13
|
serviceAccountScopes?: string[] | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* invite_only means sign-up is closed: Register is refused and the UI
|
|
16
|
+
* offers no way to create an organization. People join by invitation.
|
|
17
|
+
*/
|
|
18
|
+
inviteOnly?: boolean | undefined;
|
|
14
19
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* `Value` type union.
|
|
2
|
+
* Represents a JSON `null`.
|
|
4
3
|
*
|
|
5
|
-
*
|
|
4
|
+
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
5
|
+
* the null value for the `Value` type union.
|
|
6
|
+
*
|
|
7
|
+
* A field of type `NullValue` with any value other than `0` is considered
|
|
8
|
+
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
9
|
+
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
10
|
+
* a `0` value.
|
|
6
11
|
*/
|
|
7
12
|
export declare const GoogleProtobufNullValue: {
|
|
8
13
|
readonly NullValue: "NULL_VALUE";
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* `Value` type union.
|
|
3
|
+
* Represents a JSON `null`.
|
|
5
4
|
*
|
|
6
|
-
*
|
|
5
|
+
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
6
|
+
* the null value for the `Value` type union.
|
|
7
|
+
*
|
|
8
|
+
* A field of type `NullValue` with any value other than `0` is considered
|
|
9
|
+
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
10
|
+
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
11
|
+
* a `0` value.
|
|
7
12
|
*/
|
|
8
13
|
export const GoogleProtobufNullValue = {
|
|
9
14
|
NullValue: "NULL_VALUE",
|
|
@@ -15,4 +15,6 @@ export interface IngestionV1ConnectorSpec {
|
|
|
15
15
|
schemaField?: string | undefined;
|
|
16
16
|
maturity?: Filament.IngestionV1ConnectorMaturity | undefined;
|
|
17
17
|
apiVersion?: string | undefined;
|
|
18
|
+
/** Concrete registration selected by a source catalog alias; empty otherwise. */
|
|
19
|
+
aliasTarget?: string | undefined;
|
|
18
20
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Filament from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* ListTransformFunctionsResponse carries the catalog, the grammar version a
|
|
4
|
+
* definition must declare, and the grammar's JSON schema for client-side
|
|
5
|
+
* shape checks.
|
|
6
|
+
*/
|
|
7
|
+
export interface IngestionV1ListTransformFunctionsResponse {
|
|
8
|
+
functions?: Filament.IngestionV1TransformFunction[] | undefined;
|
|
9
|
+
grammarVersion?: number | undefined;
|
|
10
|
+
grammarSchema?: string | undefined;
|
|
11
|
+
}
|
|
@@ -5,5 +5,6 @@
|
|
|
5
5
|
export declare const IngestionV1NotificationType: {
|
|
6
6
|
readonly NotificationTypeUnspecified: "NOTIFICATION_TYPE_UNSPECIFIED";
|
|
7
7
|
readonly NotificationTypeWebhook: "NOTIFICATION_TYPE_WEBHOOK";
|
|
8
|
+
readonly NotificationTypeSlack: "NOTIFICATION_TYPE_SLACK";
|
|
8
9
|
};
|
|
9
10
|
export type IngestionV1NotificationType = (typeof IngestionV1NotificationType)[keyof typeof IngestionV1NotificationType];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type * as Filament from "../index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Notifier holds settings, plain config, and secret references, never secret
|
|
4
|
-
* values. Webhook config carries url; secret_refs carries headers.
|
|
4
|
+
* values. Webhook config carries url; secret_refs carries headers. Slack
|
|
5
|
+
* config is empty; secret_refs carries url.
|
|
5
6
|
*/
|
|
6
7
|
export interface IngestionV1Notifier {
|
|
7
8
|
id?: string | undefined;
|
|
@@ -22,4 +22,10 @@ export interface IngestionV1PipelineEdge {
|
|
|
22
22
|
writeMode?: Filament.IngestionV1WriteMode | undefined;
|
|
23
23
|
/** Optional destination name for this resource in any execution mode; source identity is unchanged. */
|
|
24
24
|
destinationResource?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* transform is the edge's transform definition as a JSON object matching
|
|
27
|
+
* the transform grammar, keyed by resource. A resource-specific edge may
|
|
28
|
+
* only define its own resource. Empty means rows pass through unchanged.
|
|
29
|
+
*/
|
|
30
|
+
transform?: Filament.GoogleProtobufStruct | undefined;
|
|
25
31
|
}
|
|
@@ -3,5 +3,6 @@ export declare const IngestionV1ReadMode: {
|
|
|
3
3
|
readonly ReadModeUnspecified: "READ_MODE_UNSPECIFIED";
|
|
4
4
|
readonly ReadModeFull: "READ_MODE_FULL";
|
|
5
5
|
readonly ReadModeIncremental: "READ_MODE_INCREMENTAL";
|
|
6
|
+
readonly ReadModeCdc: "READ_MODE_CDC";
|
|
6
7
|
};
|
|
7
8
|
export type IngestionV1ReadMode = (typeof IngestionV1ReadMode)[keyof typeof IngestionV1ReadMode];
|
|
@@ -2,4 +2,6 @@ import type * as Filament from "../index.js";
|
|
|
2
2
|
export interface IngestionV1ResourceColumns {
|
|
3
3
|
resource?: string | undefined;
|
|
4
4
|
columns?: Filament.IngestionV1ResourceColumn[] | undefined;
|
|
5
|
+
/** Incremental state is owned by the source; no cursor column is required. */
|
|
6
|
+
managedIncremental?: boolean | undefined;
|
|
5
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TransformArgument is one positional argument of a catalog function. An empty
|
|
3
|
+
* logical_types accepts any type.
|
|
4
|
+
*/
|
|
5
|
+
export interface IngestionV1TransformArgument {
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
logicalTypes?: string[] | undefined;
|
|
8
|
+
isColumn?: boolean | undefined;
|
|
9
|
+
isLiteral?: boolean | undefined;
|
|
10
|
+
isOptional?: boolean | undefined;
|
|
11
|
+
/** is_variadic on the last argument lets a call repeat it any number of times. */
|
|
12
|
+
isVariadic?: boolean | undefined;
|
|
13
|
+
/** display_name is the field label a builder shows for this argument. */
|
|
14
|
+
displayName?: string | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TransformExpressionType is the logical type of one compiled sub-expression.
|
|
3
|
+
* path uses the grammar ValidationError.field uses, extended into
|
|
4
|
+
* expressions: resources["r"].steps[2].compute["x"] is a whole expression,
|
|
5
|
+
* resources["r"].steps[2].compute["x"].concat[1] its second argument, and
|
|
6
|
+
* resources["r"].steps[2].where.and[0].gt[1] a value inside a condition.
|
|
7
|
+
*/
|
|
8
|
+
export interface IngestionV1TransformExpressionType {
|
|
9
|
+
path?: string | undefined;
|
|
10
|
+
logicalType?: string | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Filament from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* TransformFunction is one catalog entry. name is what a definition calls;
|
|
4
|
+
* display_name is what a builder shows for it. operator_symbol is optional
|
|
5
|
+
* presentation metadata for a binary function that can use compact infix UI.
|
|
6
|
+
*/
|
|
7
|
+
export interface IngestionV1TransformFunction {
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
args?: Filament.IngestionV1TransformArgument[] | undefined;
|
|
11
|
+
returns?: string | undefined;
|
|
12
|
+
displayName?: string | undefined;
|
|
13
|
+
sameType?: boolean | undefined;
|
|
14
|
+
returnsInput?: boolean | undefined;
|
|
15
|
+
operatorSymbol?: string | undefined;
|
|
16
|
+
/** condition_operator marks functions suitable for the compact row-condition picker. */
|
|
17
|
+
conditionOperator?: boolean | undefined;
|
|
18
|
+
/** variadic_add_label names the action that appends another variadic argument. */
|
|
19
|
+
variadicAddLabel?: string | undefined;
|
|
20
|
+
/** condition_join is "and" or "or" for functions that join compact conditions. */
|
|
21
|
+
conditionJoin?: string | undefined;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Filament from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* ValidateTransformResponse lists every issue with the path in the definition
|
|
4
|
+
* it sits at, the columns the resource will have after the steps that
|
|
5
|
+
* compiled, and the type of every sub-expression that compiled. Columns and
|
|
6
|
+
* types come back on failure too, so a builder can show them while a
|
|
7
|
+
* definition is still being edited.
|
|
8
|
+
*/
|
|
9
|
+
export interface IngestionV1ValidateTransformResponse {
|
|
10
|
+
valid?: boolean | undefined;
|
|
11
|
+
issues?: Filament.IngestionV1ValidationError[] | undefined;
|
|
12
|
+
outputColumns?: Filament.IngestionV1ResourceColumn[] | undefined;
|
|
13
|
+
expressionTypes?: Filament.IngestionV1TransformExpressionType[] | undefined;
|
|
14
|
+
}
|
|
@@ -8,5 +8,6 @@ export declare const IngestionV1WriteMode: {
|
|
|
8
8
|
readonly WriteModeReplace: "WRITE_MODE_REPLACE";
|
|
9
9
|
readonly WriteModeUpsert: "WRITE_MODE_UPSERT";
|
|
10
10
|
readonly WriteModeMerge: "WRITE_MODE_MERGE";
|
|
11
|
+
readonly WriteModeDelete: "WRITE_MODE_DELETE";
|
|
11
12
|
};
|
|
12
13
|
export type IngestionV1WriteMode = (typeof IngestionV1WriteMode)[keyof typeof IngestionV1WriteMode];
|
|
@@ -67,6 +67,7 @@ export * from "./IngestionV1ListPipelineNotifiersResponse.js";
|
|
|
67
67
|
export * from "./IngestionV1ListPipelinesResponse.js";
|
|
68
68
|
export * from "./IngestionV1ListPipelineVersionsResponse.js";
|
|
69
69
|
export * from "./IngestionV1ListRunsResponse.js";
|
|
70
|
+
export * from "./IngestionV1ListTransformFunctionsResponse.js";
|
|
70
71
|
export * from "./IngestionV1NotificationType.js";
|
|
71
72
|
export * from "./IngestionV1Notifier.js";
|
|
72
73
|
export * from "./IngestionV1NotifierEvent.js";
|
|
@@ -107,12 +108,16 @@ export * from "./IngestionV1SortingRequest.js";
|
|
|
107
108
|
export * from "./IngestionV1SortOrder.js";
|
|
108
109
|
export * from "./IngestionV1TailRunRequest.js";
|
|
109
110
|
export * from "./IngestionV1TailRunResponse.js";
|
|
111
|
+
export * from "./IngestionV1TransformArgument.js";
|
|
112
|
+
export * from "./IngestionV1TransformExpressionType.js";
|
|
113
|
+
export * from "./IngestionV1TransformFunction.js";
|
|
110
114
|
export * from "./IngestionV1UpdateConnectionResponse.js";
|
|
111
115
|
export * from "./IngestionV1UpdatePipelineNotifierResponse.js";
|
|
112
116
|
export * from "./IngestionV1UpdatePipelineResponse.js";
|
|
113
117
|
export * from "./IngestionV1UpdatePipelineScheduleResponse.js";
|
|
114
118
|
export * from "./IngestionV1ValidateConfigResponse.js";
|
|
115
119
|
export * from "./IngestionV1ValidatePipelineResponse.js";
|
|
120
|
+
export * from "./IngestionV1ValidateTransformResponse.js";
|
|
116
121
|
export * from "./IngestionV1ValidationError.js";
|
|
117
122
|
export * from "./IngestionV1WorkerConfiguration.js";
|
|
118
123
|
export * from "./IngestionV1WorkerResources.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -67,6 +67,7 @@ export * from "./IngestionV1ListPipelineNotifiersResponse.js";
|
|
|
67
67
|
export * from "./IngestionV1ListPipelinesResponse.js";
|
|
68
68
|
export * from "./IngestionV1ListPipelineVersionsResponse.js";
|
|
69
69
|
export * from "./IngestionV1ListRunsResponse.js";
|
|
70
|
+
export * from "./IngestionV1ListTransformFunctionsResponse.js";
|
|
70
71
|
export * from "./IngestionV1NotificationType.js";
|
|
71
72
|
export * from "./IngestionV1Notifier.js";
|
|
72
73
|
export * from "./IngestionV1NotifierEvent.js";
|
|
@@ -107,12 +108,16 @@ export * from "./IngestionV1SortingRequest.js";
|
|
|
107
108
|
export * from "./IngestionV1SortOrder.js";
|
|
108
109
|
export * from "./IngestionV1TailRunRequest.js";
|
|
109
110
|
export * from "./IngestionV1TailRunResponse.js";
|
|
111
|
+
export * from "./IngestionV1TransformArgument.js";
|
|
112
|
+
export * from "./IngestionV1TransformExpressionType.js";
|
|
113
|
+
export * from "./IngestionV1TransformFunction.js";
|
|
110
114
|
export * from "./IngestionV1UpdateConnectionResponse.js";
|
|
111
115
|
export * from "./IngestionV1UpdatePipelineNotifierResponse.js";
|
|
112
116
|
export * from "./IngestionV1UpdatePipelineResponse.js";
|
|
113
117
|
export * from "./IngestionV1UpdatePipelineScheduleResponse.js";
|
|
114
118
|
export * from "./IngestionV1ValidateConfigResponse.js";
|
|
115
119
|
export * from "./IngestionV1ValidatePipelineResponse.js";
|
|
120
|
+
export * from "./IngestionV1ValidateTransformResponse.js";
|
|
116
121
|
export * from "./IngestionV1ValidationError.js";
|
|
117
122
|
export * from "./IngestionV1WorkerConfiguration.js";
|
|
118
123
|
export * from "./IngestionV1WorkerResources.js";
|