@galaxy-io/filament-ui 0.11.0 → 0.13.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/api/queries/constants.d.ts +1 -0
- package/dist/api/queries/constants.js +2 -1
- package/dist/api/queries/pipelines.d.ts +15 -0
- package/dist/api/queries/pipelines.js +13 -12
- package/dist/api/queries/runs.d.ts +1 -1
- package/dist/api/queries/runs.js +8 -11
- package/dist/api/queries/webhooks.d.ts +61 -0
- package/dist/api/queries/webhooks.js +41 -0
- package/dist/api/utils.d.ts +1 -0
- package/dist/api/utils.js +3 -1
- package/dist/components/connections/ConnectorPreviewChip.js +4 -3
- package/dist/components/webhooks/WebhookDeliveryUrlCopyButton.d.ts +8 -0
- package/dist/components/webhooks/WebhookDeliveryUrlCopyButton.js +33 -0
- package/dist/components/webhooks/WebhookEndpointErrorLayout.d.ts +7 -0
- package/dist/components/webhooks/WebhookEndpointErrorLayout.js +26 -0
- package/dist/components/webhooks/WebhookEndpointStatusBeacon.d.ts +7 -0
- package/dist/components/webhooks/WebhookEndpointStatusBeacon.js +20 -0
- package/dist/components/webhooks/WebhookEndpointStatusCallout.d.ts +8 -0
- package/dist/components/webhooks/WebhookEndpointStatusCallout.js +11 -0
- package/dist/components/webhooks/constants.d.ts +10 -0
- package/dist/components/webhooks/constants.js +36 -0
- package/dist/components/webhooks/hooks/useWebhookEndpointSync.d.ts +8 -0
- package/dist/components/webhooks/hooks/useWebhookEndpointSync.js +112 -0
- package/dist/components/webhooks/types.d.ts +9 -0
- package/dist/components/webhooks/types.js +13 -0
- package/dist/components/webhooks/utils.d.ts +21 -0
- package/dist/components/webhooks/utils.js +47 -0
- package/dist/constants.js +1 -1
- package/dist/gen/ingestion/v1/capabilities_pb.js +1 -1
- package/dist/gen/ingestion/v1/connectors_pb.d.ts +6 -0
- package/dist/gen/ingestion/v1/connectors_pb.js +1 -1
- package/dist/gen/ingestion/v1/runs_pb.d.ts +2 -1
- package/dist/gen/ingestion/v1/service_pb.d.ts +19 -0
- package/dist/gen/ingestion/v1/service_pb.js +5 -3
- package/dist/gen/ingestion/v1/webhooks_pb.d.ts +177 -0
- package/dist/gen/ingestion/v1/webhooks_pb.js +23 -0
- package/dist/hooks/useConfirm.d.ts +1 -1
- package/dist/module/hooks.d.ts +5 -6
- package/dist/module/hooks.js +6 -1
- package/dist/module/routes.d.ts +1 -2
- package/dist/module/schemas.d.ts +1 -2
- package/dist/module/schemas.js +1 -2
- package/dist/pages/connections/ConnectionsPage.js +0 -4
- package/dist/pages/connections/components/card/ConnectionCard.d.ts +0 -1
- package/dist/pages/connections/components/card/ConnectionCard.js +4 -9
- package/dist/pages/connections/components/create/configure/CreateConnectionConfigure.js +48 -11
- package/dist/pages/connections/components/drawer/ConnectionDrawer.js +6 -1
- package/dist/pages/connections/components/drawer/ConnectionDrawerSection.js +1 -1
- package/dist/pages/connections/components/drawer/ConnectionDrawerWebhook.d.ts +7 -0
- package/dist/pages/connections/components/drawer/ConnectionDrawerWebhook.js +105 -0
- package/dist/pages/connections/components/drawer/ConnectionDrawerWebhookSecrets.d.ts +7 -0
- package/dist/pages/connections/components/drawer/ConnectionDrawerWebhookSecrets.js +40 -0
- package/dist/pages/connections/components/drawer/ConnectionDrawerWebhookSigningKey.d.ts +9 -0
- package/dist/pages/connections/components/drawer/ConnectionDrawerWebhookSigningKey.js +120 -0
- package/dist/pages/connections/components/form/ConnectionFormSigningKeyModal.d.ts +9 -0
- package/dist/pages/connections/components/form/ConnectionFormSigningKeyModal.js +66 -0
- package/dist/pages/connections/components/form/ConnectionFormWrapper.d.ts +1 -0
- package/dist/pages/connections/components/form/ConnectionFormWrapper.js +2 -1
- package/dist/pages/connections/components/form/types.d.ts +5 -0
- package/dist/pages/connections/hooks/useConnectionWebhookKeyMint.d.ts +12 -0
- package/dist/pages/connections/hooks/useConnectionWebhookKeyMint.js +27 -0
- package/dist/pages/observability/ObservabilityPage.js +61 -66
- package/dist/pages/observability/components/ObservabilityPageActions.js +1 -3
- package/dist/pages/observability/components/ObservabilityWidgetEmpty.d.ts +8 -0
- package/dist/pages/observability/components/ObservabilityWidgetEmpty.js +30 -0
- package/dist/pages/observability/components/band/ObservabilityBand.d.ts +3 -0
- package/dist/pages/observability/components/band/ObservabilityBand.js +28 -0
- package/dist/pages/observability/components/band/ObservabilityBandList.d.ts +12 -0
- package/dist/pages/observability/components/band/ObservabilityBandList.js +81 -0
- package/dist/pages/observability/components/band/ObservabilityBandMetricTile.d.ts +10 -0
- package/dist/pages/observability/components/band/ObservabilityBandMetricTile.js +86 -0
- package/dist/pages/observability/components/band/ObservabilityBandPivotSelect.d.ts +7 -0
- package/dist/pages/observability/components/band/ObservabilityBandPivotSelect.js +37 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsChart.d.ts +10 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsChart.js +26 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsPastTile.d.ts +3 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsPastTile.js +128 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsTile.d.ts +3 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsTile.js +13 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsUpcomingTile.d.ts +3 -0
- package/dist/pages/observability/components/band/ObservabilityBandRunsUpcomingTile.js +63 -0
- package/dist/pages/observability/components/band/ObservabilityBandTile.d.ts +12 -0
- package/dist/pages/observability/components/band/ObservabilityBandTile.js +71 -0
- package/dist/pages/observability/components/band/ObservabilityBandTimeseriesChart.d.ts +14 -0
- package/dist/pages/observability/components/band/ObservabilityBandTimeseriesChart.js +48 -0
- package/dist/pages/observability/components/band/ObservabilityBandTopList.d.ts +12 -0
- package/dist/pages/observability/components/band/ObservabilityBandTopList.js +19 -0
- package/dist/pages/observability/components/band/constants.d.ts +25 -0
- package/dist/pages/observability/components/band/constants.js +81 -0
- package/dist/pages/observability/components/band/types.d.ts +27 -0
- package/dist/pages/observability/components/band/utils.d.ts +25 -0
- package/dist/pages/observability/components/band/utils.js +93 -0
- package/dist/pages/observability/components/connections/ObservabilityConnectionRow.d.ts +9 -0
- package/dist/pages/observability/components/connections/ObservabilityConnectionRow.js +57 -0
- package/dist/pages/observability/components/connections/ObservabilityConnectionsWidget.d.ts +7 -0
- package/dist/pages/observability/components/connections/ObservabilityConnectionsWidget.js +56 -0
- package/dist/pages/observability/components/connections/constants.d.ts +5 -0
- package/dist/pages/observability/components/connections/constants.js +24 -0
- package/dist/pages/observability/components/connections/types.d.ts +4 -0
- package/dist/pages/observability/components/connections/utils.d.ts +4 -0
- package/dist/pages/observability/components/connections/utils.js +23 -0
- package/dist/pages/observability/components/failures/ObservabilityFailuresBanner.d.ts +3 -0
- package/dist/pages/observability/components/failures/ObservabilityFailuresBanner.js +33 -0
- package/dist/pages/observability/components/failures/ObservabilityFailuresDetails.d.ts +7 -0
- package/dist/pages/observability/components/failures/ObservabilityFailuresDetails.js +99 -0
- package/dist/pages/observability/components/failures/constants.d.ts +2 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesBar.d.ts +7 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesBar.js +34 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesColumnCell.d.ts +7 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesColumnCell.js +15 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesHeader.d.ts +3 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesHeader.js +34 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesRow.d.ts +11 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesRow.js +120 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesWidget.d.ts +3 -0
- package/dist/pages/observability/components/pipelines/ObservabilityPipelinesWidget.js +142 -0
- package/dist/pages/observability/components/pipelines/constants.d.ts +23 -0
- package/dist/pages/observability/components/pipelines/constants.js +33 -0
- package/dist/pages/observability/components/pipelines/types.d.ts +22 -0
- package/dist/pages/observability/components/pipelines/types.js +11 -0
- package/dist/pages/observability/components/pipelines/utils.d.ts +9 -0
- package/dist/pages/observability/components/pipelines/utils.js +73 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsPastTable.js +6 -13
- package/dist/pages/observability/components/runs/ObservabilityRunsTableActions.d.ts +3 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsTableActions.js +43 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsTableWidget.js +2 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsViewToggle.d.ts +3 -0
- package/dist/pages/observability/components/runs/ObservabilityRunsViewToggle.js +26 -0
- package/dist/pages/observability/components/runs/constants.d.ts +4 -10
- package/dist/pages/observability/components/runs/constants.js +8 -12
- package/dist/pages/observability/components/scheduled/ObservabilityScheduledWidget.d.ts +3 -0
- package/dist/pages/observability/components/scheduled/ObservabilityScheduledWidget.js +94 -0
- package/dist/pages/observability/components/setup/ObservabilitySetupChecklist.js +3 -1
- package/dist/pages/observability/components/setup/constants.js +1 -1
- package/dist/pages/observability/constants.d.ts +18 -3
- package/dist/pages/observability/constants.js +24 -4
- package/dist/pages/observability/hooks/useObservabilityAggregateQuery.d.ts +2 -0
- package/dist/pages/observability/hooks/useObservabilityAggregateQuery.js +13 -0
- package/dist/pages/observability/hooks/useObservabilityBandRanking.d.ts +8 -0
- package/dist/pages/observability/hooks/useObservabilityBandRanking.js +21 -0
- package/dist/pages/observability/hooks/useObservabilityBandUpcoming.d.ts +8 -0
- package/dist/pages/observability/hooks/useObservabilityBandUpcoming.js +45 -0
- package/dist/pages/observability/hooks/useObservabilityMetricInputs.d.ts +9 -0
- package/dist/pages/observability/hooks/useObservabilityMetricInputs.js +33 -0
- package/dist/pages/observability/hooks/useObservabilityPipelines.d.ts +12 -0
- package/dist/pages/observability/hooks/useObservabilityPipelines.js +22 -0
- package/dist/pages/observability/hooks/useObservabilityTimeseriesQuery.d.ts +2 -0
- package/dist/pages/observability/hooks/useObservabilityTimeseriesQuery.js +13 -0
- package/dist/pages/observability/types.d.ts +16 -0
- package/dist/pages/observability/types.js +7 -1
- package/dist/pages/observability/utils.d.ts +6 -1
- package/dist/pages/observability/utils.js +19 -2
- package/dist/pages/pipelines/canvas/hooks/usePipelineCanvasPanelResourceOptions.js +1 -1
- package/dist/pages/pipelines/canvas/panel/overview/PipelineCanvasPanelOverview.js +1 -1
- package/dist/pages/pipelines/canvas/panel/overview/node/PipelineCanvasPanelNodeDetail.js +1 -1
- package/dist/pages/pipelines/canvas/panel/overview/resource/PipelineCanvasPanelResourceDetail.js +11 -0
- package/dist/pages/pipelines/canvas/panel/overview/resource/PipelineCanvasPanelResourceEndpoint.js +1 -1
- package/dist/pages/pipelines/canvas/panel/overview/resource/PipelineCanvasPanelResourceSection.js +4 -1
- package/dist/pages/pipelines/canvas/routes/hooks/usePipelineCanvasRoutes.js +1 -1
- package/dist/pages/pipelines/components/create/components/CreatePipelineModalFooter.js +7 -1
- package/dist/pages/pipelines/components/create/hooks/useCreatePipelineResources.js +2 -2
- package/dist/pages/pipelines/components/create/steps/CreatePipelineModalResources.js +5 -2
- package/dist/pages/pipelines/components/create/steps/components/CreatePipelineModalResourcesTable.js +15 -2
- package/dist/pages/pipelines/components/create/steps/components/CreatePipelineModalResourcesUrlCell.d.ts +7 -0
- package/dist/pages/pipelines/components/create/steps/components/CreatePipelineModalResourcesUrlCell.js +27 -0
- package/dist/pages/pipelines/components/header/PipelinePageEditActions.js +10 -0
- package/dist/pages/pipelines/components/header/PipelinePageHeading.js +1 -1
- package/dist/pages/pipelines/components/resource/PipelineResourceCreateForm.d.ts +1 -0
- package/dist/pages/pipelines/components/resource/PipelineResourceCreateForm.js +10 -3
- package/dist/pages/pipelines/components/run/PipelineRunModal.js +7 -4
- package/dist/pages/pipelines/components/run/PipelineRunModalResourcesPane.d.ts +1 -0
- package/dist/pages/pipelines/components/run/PipelineRunModalResourcesPane.js +5 -4
- package/dist/pages/pipelines/components/run/utils.d.ts +1 -0
- package/dist/pages/pipelines/components/run/utils.js +2 -1
- package/dist/pages/pipelines/components/table/PipelinesTable.js +1 -1
- package/dist/pages/pipelines/settings/PipelineSettingsPageAdvanced.js +1 -1
- package/dist/pages/pipelines/settings/PipelineSettingsPageDanger.js +1 -1
- package/dist/pages/pipelines/settings/PipelineSettingsPageGeneral.js +2 -2
- package/dist/pages/pipelines/settings/PipelineSettingsPageSchedule.js +1 -1
- package/dist/styles.css +15 -0
- package/dist/utils/errors.d.ts +2 -0
- package/dist/utils/errors.js +6 -1
- package/package.json +1 -1
- package/dist/pages/observability/components/metrics/ObservabilityMetricsWidget.d.ts +0 -3
- package/dist/pages/observability/components/metrics/ObservabilityMetricsWidget.js +0 -139
- package/dist/pages/observability/components/metrics/constants.d.ts +0 -3
- package/dist/pages/observability/components/metrics/constants.js +0 -11
- package/dist/pages/observability/components/runs/ObservabilityRunsChart.d.ts +0 -3
- package/dist/pages/observability/components/runs/ObservabilityRunsChart.js +0 -66
- package/dist/pages/observability/components/runs/ObservabilityRunsChartWidget.d.ts +0 -3
- package/dist/pages/observability/components/runs/ObservabilityRunsChartWidget.js +0 -75
- package/dist/pages/observability/components/runs/ObservabilityRunsScheduledChart.d.ts +0 -3
- package/dist/pages/observability/components/runs/ObservabilityRunsScheduledChart.js +0 -39
- package/dist/pages/observability/components/runs/types.d.ts +0 -1
- package/dist/pages/observability/components/runs/utils.d.ts +0 -14
- package/dist/pages/observability/components/runs/utils.js +0 -71
- package/dist/pages/observability/components/timeseries/ObservabilityPivotSelect.d.ts +0 -8
- package/dist/pages/observability/components/timeseries/ObservabilityPivotSelect.js +0 -28
- package/dist/pages/observability/components/timeseries/ObservabilityTimeseriesChart.d.ts +0 -14
- package/dist/pages/observability/components/timeseries/ObservabilityTimeseriesChart.js +0 -105
- package/dist/pages/observability/components/timeseries/ObservabilityTimeseriesWidget.d.ts +0 -19
- package/dist/pages/observability/components/timeseries/ObservabilityTimeseriesWidget.js +0 -61
- package/dist/pages/observability/components/timeseries/constants.d.ts +0 -19
- package/dist/pages/observability/components/timeseries/constants.js +0 -57
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/components/webhooks/types.ts
|
|
2
|
+
var WebhookEndpointStatus = /* @__PURE__ */ function(WebhookEndpointStatus) {
|
|
3
|
+
WebhookEndpointStatus["NO_KEY"] = "NO_KEY";
|
|
4
|
+
WebhookEndpointStatus["NO_PIPELINE"] = "NO_PIPELINE";
|
|
5
|
+
WebhookEndpointStatus["PIPELINE_DELETED"] = "PIPELINE_DELETED";
|
|
6
|
+
WebhookEndpointStatus["OFF"] = "OFF";
|
|
7
|
+
WebhookEndpointStatus["NOT_RUNNING"] = "NOT_RUNNING";
|
|
8
|
+
WebhookEndpointStatus["WAITING"] = "WAITING";
|
|
9
|
+
WebhookEndpointStatus["LIVE"] = "LIVE";
|
|
10
|
+
return WebhookEndpointStatus;
|
|
11
|
+
}({});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { WebhookEndpointStatus };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Connection } from '../../gen/ingestion/v1/connections_pb';
|
|
2
|
+
import { PipelineGraph } from '../../gen/ingestion/v1/pipelines_pb';
|
|
3
|
+
import { WebhookEndpointConfig } from '../../gen/ingestion/v1/webhooks_pb';
|
|
4
|
+
import { WebhookEndpointStatus } from './types';
|
|
5
|
+
export declare const isWebhookConnector: (connector: Connection["connector"] | undefined) => connector is "webhook";
|
|
6
|
+
export declare const getWebhookEndpointStatus: (endpoint: WebhookEndpointConfig | undefined, isPipelineDeleted: boolean) => WebhookEndpointStatus;
|
|
7
|
+
export declare const isWebhookPreviousKeyActive: (endpoint: WebhookEndpointConfig | undefined) => boolean;
|
|
8
|
+
export declare const createWebhookDeliveryBaseUrl: (deliveryUrl: WebhookEndpointConfig["deliveryUrl"] | undefined) => string | undefined;
|
|
9
|
+
export declare const createWebhookDeliveryUrl: (resource: string, deliveryUrl: WebhookEndpointConfig["deliveryUrl"] | undefined) => string | undefined;
|
|
10
|
+
export declare const createWebhookRouteKey: (sourceNodeId: string, sinkNodeId: string) => string;
|
|
11
|
+
export declare const getWebhookRouteResources: (graph: PipelineGraph | undefined, routeKey: WebhookEndpointConfig["routeKey"]) => string[];
|
|
12
|
+
export declare const getWebhookSourceRouteKeys: (graph: PipelineGraph | undefined, sourceConnectionId: Connection["id"]) => string[];
|
|
13
|
+
export declare const isSameWebhookResources: (left: string[], right: string[]) => boolean;
|
|
14
|
+
export declare const getWebhookResourceError: (resource: string) => "Use only letters, digits, - and _, up to 64 characters." | undefined;
|
|
15
|
+
export declare const createPutWebhookEndpointRequest: ({ sourceConnectionId, endpoint, patch, mintSecret, expectedPipelineVersionId, }: {
|
|
16
|
+
sourceConnectionId: Connection["id"];
|
|
17
|
+
endpoint: WebhookEndpointConfig | undefined;
|
|
18
|
+
patch?: Partial<Pick<WebhookEndpointConfig, "pipelineId" | "routeKey" | "resources" | "enabled">>;
|
|
19
|
+
mintSecret?: boolean;
|
|
20
|
+
expectedPipelineVersionId?: string;
|
|
21
|
+
}) => import('../../gen/ingestion/v1/webhooks_pb').PutWebhookEndpointRequest;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ConnectorKind } from "../../gen/ingestion/v1/common_pb.js";
|
|
2
|
+
import { PutWebhookEndpointRequestSchema, WebhookEndpointConfigSchema } from "../../gen/ingestion/v1/webhooks_pb.js";
|
|
3
|
+
import { WebhookEndpointStatus } from "./types.js";
|
|
4
|
+
import { WEBHOOK_CONNECTOR_NAME, WEBHOOK_RESOURCE_NAME_PATTERN } from "./constants.js";
|
|
5
|
+
import { create } from "@bufbuild/protobuf";
|
|
6
|
+
//#region src/components/webhooks/utils.ts
|
|
7
|
+
var isWebhookConnector = (connector) => connector === WEBHOOK_CONNECTOR_NAME;
|
|
8
|
+
var getWebhookEndpointStatus = (endpoint, isPipelineDeleted) => {
|
|
9
|
+
if (!endpoint?.hasSigningSecret) return WebhookEndpointStatus.NO_KEY;
|
|
10
|
+
if (!endpoint.pipelineId) return WebhookEndpointStatus.NO_PIPELINE;
|
|
11
|
+
if (isPipelineDeleted) return endpoint.enabled ? WebhookEndpointStatus.PIPELINE_DELETED : WebhookEndpointStatus.NO_PIPELINE;
|
|
12
|
+
if (!endpoint.enabled) return WebhookEndpointStatus.OFF;
|
|
13
|
+
if (!endpoint.accepting) return WebhookEndpointStatus.NOT_RUNNING;
|
|
14
|
+
if (!endpoint.routeReady) return WebhookEndpointStatus.WAITING;
|
|
15
|
+
return WebhookEndpointStatus.LIVE;
|
|
16
|
+
};
|
|
17
|
+
var isWebhookPreviousKeyActive = (endpoint) => !!endpoint && endpoint.previousKeyExpiresAt > BigInt(Date.now());
|
|
18
|
+
var createWebhookDeliveryBaseUrl = (deliveryUrl) => deliveryUrl || void 0;
|
|
19
|
+
var createWebhookDeliveryUrl = (resource, deliveryUrl) => {
|
|
20
|
+
const baseUrl = createWebhookDeliveryBaseUrl(deliveryUrl);
|
|
21
|
+
return baseUrl ? `${baseUrl}/${resource}` : void 0;
|
|
22
|
+
};
|
|
23
|
+
var createWebhookRouteKey = (sourceNodeId, sinkNodeId) => `route/${sourceNodeId}/${sinkNodeId}`;
|
|
24
|
+
var getWebhookRouteResources = (graph, routeKey) => [...new Set((graph?.edges ?? []).filter((edge) => edge.resource !== "" && createWebhookRouteKey(edge.fromNode, edge.toNode) === routeKey).map((edge) => edge.resource))].sort();
|
|
25
|
+
var getWebhookSourceRouteKeys = (graph, sourceConnectionId) => {
|
|
26
|
+
const sourceNodeIds = new Set((graph?.nodes ?? []).filter((node) => node.kind === ConnectorKind.SOURCE && node.connectionId === sourceConnectionId).map((node) => node.id));
|
|
27
|
+
return [...new Set((graph?.edges ?? []).filter((edge) => sourceNodeIds.has(edge.fromNode) && edge.resource !== "").map((edge) => createWebhookRouteKey(edge.fromNode, edge.toNode)))];
|
|
28
|
+
};
|
|
29
|
+
var isSameWebhookResources = (left, right) => [...left].sort().join("\n") === [...right].sort().join("\n");
|
|
30
|
+
var getWebhookResourceError = (resource) => WEBHOOK_RESOURCE_NAME_PATTERN.test(resource) ? void 0 : "Use only letters, digits, - and _, up to 64 characters.";
|
|
31
|
+
var createPutWebhookEndpointRequest = ({ sourceConnectionId, endpoint, patch = {}, mintSecret = false, expectedPipelineVersionId }) => create(PutWebhookEndpointRequestSchema, {
|
|
32
|
+
endpoint: create(WebhookEndpointConfigSchema, {
|
|
33
|
+
sourceConnectionId,
|
|
34
|
+
pipelineId: endpoint?.pipelineId ?? "",
|
|
35
|
+
routeKey: endpoint?.routeKey ?? "",
|
|
36
|
+
resources: endpoint?.resources ?? [],
|
|
37
|
+
enabled: endpoint?.enabled ?? false,
|
|
38
|
+
successStatus: endpoint?.successStatus ?? 0,
|
|
39
|
+
maxBodyBytes: endpoint?.maxBodyBytes ?? 0n,
|
|
40
|
+
...patch
|
|
41
|
+
}),
|
|
42
|
+
expectedRevision: endpoint?.revision ?? 0n,
|
|
43
|
+
mintSecret,
|
|
44
|
+
expectedPipelineVersionId
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { createPutWebhookEndpointRequest, createWebhookDeliveryBaseUrl, createWebhookDeliveryUrl, createWebhookRouteKey, getWebhookEndpointStatus, getWebhookResourceError, getWebhookRouteResources, getWebhookSourceRouteKeys, isSameWebhookResources, isWebhookConnector, isWebhookPreviousKeyActive };
|
package/dist/constants.js
CHANGED
|
@@ -4,7 +4,7 @@ var IS_DEBUG = process.env.NODE_ENV !== "production";
|
|
|
4
4
|
var NOOP = () => {};
|
|
5
5
|
var GITHUB_REPO_URL = "https://github.com/galaxy-io/filament";
|
|
6
6
|
var DOCUMENTATION_URL = "https://filament.getgalaxy.io";
|
|
7
|
-
var SLACK_COMMUNITY_URL = "https://join.slack.com/t/galaxy-
|
|
7
|
+
var SLACK_COMMUNITY_URL = "https://join.slack.com/t/galaxy-io-community/shared_invite/zt-45qln0zg5-9CTvKVXugvh3sEhpD6KzJQ";
|
|
8
8
|
var ACTIVE_RUN_STATUSES = /* @__PURE__ */ new Set([
|
|
9
9
|
RunStatus.REQUESTED,
|
|
10
10
|
RunStatus.RUNNING,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { file_ingestion_v1_common } from "./common_pb.js";
|
|
2
|
-
import { file_ingestion_v1_connectors } from "./connectors_pb.js";
|
|
3
2
|
import { file_ingestion_v1_pipelines } from "./pipelines_pb.js";
|
|
3
|
+
import { file_ingestion_v1_connectors } from "./connectors_pb.js";
|
|
4
4
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
//#region src/gen/ingestion/v1/capabilities_pb.ts
|
|
6
6
|
/**
|
|
@@ -67,6 +67,12 @@ export type ConnectorSpec = Message<"ingestion.v1.ConnectorSpec"> & {
|
|
|
67
67
|
* @generated from field: bool is_preview = 14;
|
|
68
68
|
*/
|
|
69
69
|
isPreview: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Ingress verifier for sources that receive webhooks. Empty otherwise.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: string webhook_verifier = 15;
|
|
74
|
+
*/
|
|
75
|
+
webhookVerifier: string;
|
|
70
76
|
};
|
|
71
77
|
/**
|
|
72
78
|
* Describes the message ingestion.v1.ConnectorSpec.
|
|
@@ -7,7 +7,7 @@ import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file ingestion/v1/connectors.proto.
|
|
9
9
|
*/
|
|
10
|
-
var file_ingestion_v1_connectors = /*@__PURE__*/ fileDesc("
|
|
10
|
+
var file_ingestion_v1_connectors = /*@__PURE__*/ fileDesc("Ch1pbmdlc3Rpb24vdjEvY29ubmVjdG9ycy5wcm90bxIMaW5nZXN0aW9uLnYxIpMDCg1Db25uZWN0b3JTcGVjEgwKBG5hbWUYASABKAkSFAoMZGlzcGxheV9uYW1lGAIgASgJEikKBGtpbmQYAyABKA4yGy5pbmdlc3Rpb24udjEuQ29ubmVjdG9yS2lu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pMCCg5SZXNvdXJjZUNvbHVtbhIMCgRuYW1lGAEgASgJEhQKDGxvZ2ljYWxfdHlwZRgCIAEoCRITCgtuYXRpdmVfdHlwZRgDIAEoCRITCgtpc19udWxsYWJsZRgEIAEoCBIWCg5pc19wcmltYXJ5X2tleRgFIAEoCBIaChJpc19jdXJzb3JfZWxpZ2libGUYBiABKAgSHQoVaXNfY3Vyc29yX3JlY29tbWVuZGVkGAcgASgIEhsKE3JlY29tbWVuZGF0aW9uX3JhbmsYCCABKAUSDwoHd2FybmluZxgJIAEoCRIXCg9pc19jb25maWd1cmFibGUYCiABKAgSGQoRc3VwcG9ydHNfbG9va2JhY2sYCyABKAginwEKD1Jlc291cmNlQ29sdW1ucxIQCghyZXNvdXJjZRgBIAEoCRItCgdjb2x1bW5zGAIgAygLMhwuaW5nZXN0aW9uLnYxLlJlc291cmNlQ29sdW1uEhsKE21hbmFnZWRfaW5jcmVtZW50YWwYAyABKAgSGgoSc2VsZWN0YWJsZV9jb2x1bW5zGAQgASgIEhIKCnBhcnRpdGlvbnMYBSADKAkiTgoaR2V0UmVzb3VyY2VDb2x1bW5zUmVzcG9uc2USMAoJcmVzb3VyY2VzGAEgAygLMh0uaW5nZXN0aW9uLnYxLlJlc291cmNlQ29sdW1uc2IGcHJvdG8z", [
|
|
11
11
|
file_google_protobuf_struct,
|
|
12
12
|
file_ingestion_v1_common,
|
|
13
13
|
file_ingestion_v1_pagination,
|
|
@@ -147,7 +147,8 @@ export type RunPipelineRequest = Message<"ingestion.v1.RunPipelineRequest"> & {
|
|
|
147
147
|
* resync_resources names resources read from the beginning again by the
|
|
148
148
|
* runs this call produces. A bounded run forgets their checkpoints first. A
|
|
149
149
|
* live continuous run drains and hands over to a successor that snapshots
|
|
150
|
-
* them again on the same stream.
|
|
150
|
+
* them again on the same stream. A continuous run accepts it only from a
|
|
151
|
+
* change data capture source.
|
|
151
152
|
*
|
|
152
153
|
* @generated from field: repeated string resync_resources = 5;
|
|
153
154
|
*/
|
|
@@ -7,6 +7,7 @@ import { CreatePipelineRequestSchema, CreatePipelineResponseSchema, CreatePipeli
|
|
|
7
7
|
import { GetRunRequestSchema, GetRunResponseSchema, ListRunsRequestSchema, ListRunsResponseSchema, RunPipelineRequestSchema, RunPipelineResponseSchema, SignalRunRequestSchema, SignalRunResponseSchema, TailRunRequestSchema, TailRunResponseSchema } from './runs_pb';
|
|
8
8
|
import { ListTransformFunctionsRequestSchema, ListTransformFunctionsResponseSchema, ValidateTransformRequestSchema, ValidateTransformResponseSchema } from './transformations_pb';
|
|
9
9
|
import { GetVersionRequestSchema, GetVersionResponseSchema } from './version_pb';
|
|
10
|
+
import { GetWebhookEndpointRequestSchema, GetWebhookEndpointResponseSchema, PutWebhookEndpointRequestSchema, PutWebhookEndpointResponseSchema } from './webhooks_pb';
|
|
10
11
|
/**
|
|
11
12
|
* Describes the file ingestion/v1/service.proto.
|
|
12
13
|
*/
|
|
@@ -103,6 +104,24 @@ export declare const IngestionService: GenService<{
|
|
|
103
104
|
input: typeof DeleteConnectionRequestSchema;
|
|
104
105
|
output: typeof DeleteConnectionResponseSchema;
|
|
105
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Tenant-owned webhook endpoint configuration. Delivery uses a separate HTTP path.
|
|
109
|
+
*
|
|
110
|
+
* @generated from rpc ingestion.v1.IngestionService.GetWebhookEndpoint
|
|
111
|
+
*/
|
|
112
|
+
getWebhookEndpoint: {
|
|
113
|
+
methodKind: "unary";
|
|
114
|
+
input: typeof GetWebhookEndpointRequestSchema;
|
|
115
|
+
output: typeof GetWebhookEndpointResponseSchema;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* @generated from rpc ingestion.v1.IngestionService.PutWebhookEndpoint
|
|
119
|
+
*/
|
|
120
|
+
putWebhookEndpoint: {
|
|
121
|
+
methodKind: "unary";
|
|
122
|
+
input: typeof PutWebhookEndpointRequestSchema;
|
|
123
|
+
output: typeof PutWebhookEndpointResponseSchema;
|
|
124
|
+
};
|
|
106
125
|
/**
|
|
107
126
|
* Pipeline options and validation are resolved for the complete graph.
|
|
108
127
|
*
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { file_ingestion_v1_runs } from "./runs_pb.js";
|
|
2
|
-
import { file_ingestion_v1_connectors } from "./connectors_pb.js";
|
|
3
2
|
import { file_ingestion_v1_pipelines } from "./pipelines_pb.js";
|
|
3
|
+
import { file_ingestion_v1_connectors } from "./connectors_pb.js";
|
|
4
4
|
import { file_ingestion_v1_capabilities } from "./capabilities_pb.js";
|
|
5
5
|
import { file_ingestion_v1_connections } from "./connections_pb.js";
|
|
6
6
|
import { file_ingestion_v1_notifiers } from "./notifiers_pb.js";
|
|
7
7
|
import { file_ingestion_v1_transformations } from "./transformations_pb.js";
|
|
8
8
|
import { file_ingestion_v1_version } from "./version_pb.js";
|
|
9
|
+
import { file_ingestion_v1_webhooks } from "./webhooks_pb.js";
|
|
9
10
|
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
10
11
|
//#region src/gen/ingestion/v1/service_pb.ts
|
|
11
12
|
/**
|
|
12
13
|
* Describes the file ingestion/v1/service.proto.
|
|
13
14
|
*/
|
|
14
|
-
var file_ingestion_v1_service = /*@__PURE__*/ fileDesc("
|
|
15
|
+
var file_ingestion_v1_service = /*@__PURE__*/ fileDesc("Chppbmdlc3Rpb24vdjEvc2VydmljZS5wcm90bxIMaW5nZXN0aW9uLnYxMvwaChBJbmdlc3Rpb25TZXJ2aWNlElsKDkxpc3RDb25uZWN0b3JzEiMuaW5nZXN0aW9uLnYxLkxpc3RDb25uZWN0b3JzUmVxdWVzdBokLmluZ2VzdGlvbi52MS5MaXN0Q29ubmVjdG9yc1Jlc3BvbnNlElUKDEdldENvbm5lY3RvchIhLmluZ2VzdGlvbi52MS5HZXRDb25uZWN0b3JSZXF1ZXN0GiIuaW5nZXN0aW9uLnYxLkdldENvbm5lY3RvclJlc3BvbnNlElsKDlZhbGlkYXRlQ29uZmlnEiMuaW5nZX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V0VmVyc2lvbhIfLmluZ2VzdGlvbi52MS5HZXRWZXJzaW9uUmVxdWVzdBogLmluZ2VzdGlvbi52MS5HZXRWZXJzaW9uUmVzcG9uc2ViBnByb3RvMw", [
|
|
15
16
|
file_ingestion_v1_capabilities,
|
|
16
17
|
file_ingestion_v1_connections,
|
|
17
18
|
file_ingestion_v1_connectors,
|
|
@@ -19,7 +20,8 @@ var file_ingestion_v1_service = /*@__PURE__*/ fileDesc("Chppbmdlc3Rpb24vdjEvc2Vy
|
|
|
19
20
|
file_ingestion_v1_pipelines,
|
|
20
21
|
file_ingestion_v1_runs,
|
|
21
22
|
file_ingestion_v1_transformations,
|
|
22
|
-
file_ingestion_v1_version
|
|
23
|
+
file_ingestion_v1_version,
|
|
24
|
+
file_ingestion_v1_webhooks
|
|
23
25
|
]);
|
|
24
26
|
/**
|
|
25
27
|
* IngestionService is the engine-as-a-service surface the pipeline UI drives.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2';
|
|
2
|
+
import { Message } from '@bufbuild/protobuf';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ingestion/v1/webhooks.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ingestion_v1_webhooks: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* WebhookEndpointConfig is tenant-owned receiver configuration. Signing keys
|
|
9
|
+
* are never returned by a read operation.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message ingestion.v1.WebhookEndpointConfig
|
|
12
|
+
*/
|
|
13
|
+
export type WebhookEndpointConfig = Message<"ingestion.v1.WebhookEndpointConfig"> & {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: string source_connection_id = 1;
|
|
16
|
+
*/
|
|
17
|
+
sourceConnectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: string pipeline_id = 2;
|
|
20
|
+
*/
|
|
21
|
+
pipelineId: string;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: string route_key = 3;
|
|
24
|
+
*/
|
|
25
|
+
routeKey: string;
|
|
26
|
+
/**
|
|
27
|
+
* Resource names accepted at /hooks/<source_connection_id>/<resource>. The
|
|
28
|
+
* bound pipeline decides where each one is written.
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: repeated string resources = 4;
|
|
31
|
+
*/
|
|
32
|
+
resources: string[];
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: bool enabled = 5;
|
|
35
|
+
*/
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: int64 revision = 6;
|
|
39
|
+
*/
|
|
40
|
+
revision: bigint;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: int32 success_status = 7;
|
|
43
|
+
*/
|
|
44
|
+
successStatus: number;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: int64 max_body_bytes = 8;
|
|
47
|
+
*/
|
|
48
|
+
maxBodyBytes: bigint;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: bool has_signing_secret = 9;
|
|
51
|
+
*/
|
|
52
|
+
hasSigningSecret: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: bool route_ready = 10;
|
|
55
|
+
*/
|
|
56
|
+
routeReady: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Verifier that authenticates deliveries, set from the source connector.
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: string verifier = 11;
|
|
61
|
+
*/
|
|
62
|
+
verifier: string;
|
|
63
|
+
/**
|
|
64
|
+
* Unix milliseconds until which the replaced signing key still verifies.
|
|
65
|
+
* Zero when no replaced key is active.
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: int64 previous_key_expires_at = 12;
|
|
68
|
+
*/
|
|
69
|
+
previousKeyExpiresAt: bigint;
|
|
70
|
+
/**
|
|
71
|
+
* Whether a pipeline that reads this source is running or paused. While
|
|
72
|
+
* false, new deliveries get 503 so senders retry until a pipeline starts.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: bool accepting = 13;
|
|
75
|
+
*/
|
|
76
|
+
accepting: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Absolute URL deliveries go to, without the resource:
|
|
79
|
+
* <public base URL>/hooks/<source_connection_id>. Empty when the server has
|
|
80
|
+
* no public base URL configured.
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: string delivery_url = 14;
|
|
83
|
+
*/
|
|
84
|
+
deliveryUrl: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message ingestion.v1.WebhookEndpointConfig.
|
|
88
|
+
* Use `create(WebhookEndpointConfigSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
export declare const WebhookEndpointConfigSchema: GenMessage<WebhookEndpointConfig>;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message ingestion.v1.PutWebhookEndpointRequest
|
|
93
|
+
*/
|
|
94
|
+
export type PutWebhookEndpointRequest = Message<"ingestion.v1.PutWebhookEndpointRequest"> & {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: ingestion.v1.WebhookEndpointConfig endpoint = 1;
|
|
97
|
+
*/
|
|
98
|
+
endpoint?: WebhookEndpointConfig | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Zero creates an endpoint. Updates must send the last observed revision.
|
|
101
|
+
*
|
|
102
|
+
* @generated from field: int64 expected_revision = 2;
|
|
103
|
+
*/
|
|
104
|
+
expectedRevision: bigint;
|
|
105
|
+
/**
|
|
106
|
+
* Supply an imported provider key or ask Filament to mint one. Omit both on
|
|
107
|
+
* update to keep the current key. A newly supplied key replaces the old one,
|
|
108
|
+
* which keeps verifying for 72 hours so senders can switch over.
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: string imported_secret = 3;
|
|
111
|
+
*/
|
|
112
|
+
importedSecret: string;
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: bool mint_secret = 4;
|
|
115
|
+
*/
|
|
116
|
+
mintSecret: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* When set, the endpoint write must use the pipeline's current version.
|
|
119
|
+
* Pipeline graph synchronization sends this to reject stale saves.
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: string expected_pipeline_version_id = 5;
|
|
122
|
+
*/
|
|
123
|
+
expectedPipelineVersionId: string;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Describes the message ingestion.v1.PutWebhookEndpointRequest.
|
|
127
|
+
* Use `create(PutWebhookEndpointRequestSchema)` to create a new message.
|
|
128
|
+
*/
|
|
129
|
+
export declare const PutWebhookEndpointRequestSchema: GenMessage<PutWebhookEndpointRequest>;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from message ingestion.v1.PutWebhookEndpointResponse
|
|
132
|
+
*/
|
|
133
|
+
export type PutWebhookEndpointResponse = Message<"ingestion.v1.PutWebhookEndpointResponse"> & {
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: ingestion.v1.WebhookEndpointConfig endpoint = 1;
|
|
136
|
+
*/
|
|
137
|
+
endpoint?: WebhookEndpointConfig | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Returned only for a newly minted key. Store it for sender setup now.
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: string minted_secret = 2;
|
|
142
|
+
*/
|
|
143
|
+
mintedSecret: string;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Describes the message ingestion.v1.PutWebhookEndpointResponse.
|
|
147
|
+
* Use `create(PutWebhookEndpointResponseSchema)` to create a new message.
|
|
148
|
+
*/
|
|
149
|
+
export declare const PutWebhookEndpointResponseSchema: GenMessage<PutWebhookEndpointResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* @generated from message ingestion.v1.GetWebhookEndpointRequest
|
|
152
|
+
*/
|
|
153
|
+
export type GetWebhookEndpointRequest = Message<"ingestion.v1.GetWebhookEndpointRequest"> & {
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: string source_connection_id = 1;
|
|
156
|
+
*/
|
|
157
|
+
sourceConnectionId: string;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Describes the message ingestion.v1.GetWebhookEndpointRequest.
|
|
161
|
+
* Use `create(GetWebhookEndpointRequestSchema)` to create a new message.
|
|
162
|
+
*/
|
|
163
|
+
export declare const GetWebhookEndpointRequestSchema: GenMessage<GetWebhookEndpointRequest>;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from message ingestion.v1.GetWebhookEndpointResponse
|
|
166
|
+
*/
|
|
167
|
+
export type GetWebhookEndpointResponse = Message<"ingestion.v1.GetWebhookEndpointResponse"> & {
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: ingestion.v1.WebhookEndpointConfig endpoint = 1;
|
|
170
|
+
*/
|
|
171
|
+
endpoint?: WebhookEndpointConfig | undefined;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Describes the message ingestion.v1.GetWebhookEndpointResponse.
|
|
175
|
+
* Use `create(GetWebhookEndpointResponseSchema)` to create a new message.
|
|
176
|
+
*/
|
|
177
|
+
export declare const GetWebhookEndpointResponseSchema: GenMessage<GetWebhookEndpointResponse>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
//#region src/gen/ingestion/v1/webhooks_pb.ts
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ingestion/v1/webhooks.proto.
|
|
5
|
+
*/
|
|
6
|
+
var file_ingestion_v1_webhooks = /*@__PURE__*/ fileDesc("Chtpbmdlc3Rpb24vdjEvd2ViaG9va3MucHJvdG8SDGluZ2VzdGlvbi52MSLQAgoVV2ViaG9va0VuZHBvaW50Q29uZmlnEhwKFHNvdXJjZV9jb25uZWN0aW9uX2lkGAEgASgJEhMKC3BpcGVsaW5lX2lkGAIgASgJEhEKCXJvdXRlX2tleRgDIAEoCRIRCglyZXNvdXJjZXMYBCADKAkSDwoHZW5hYmxlZBgFIAEoCBIQCghyZXZpc2lvbhgGIAEoAxIWCg5zdWNjZXNzX3N0YXR1cxgHIAEoBRIWCg5tYXhfYm9keV9ieXRlcxgIIAEoAxIaChJoYXNfc2lnbmluZ19zZWNyZXQYCSABKAgSEwoLcm91dGVfcmVhZHkYCiABKAgSEAoIdmVyaWZpZXIYCyABKAkSHwoXcHJldmlvdXNfa2V5X2V4cGlyZXNfYXQYDCABKAMSEQoJYWNjZXB0aW5nGA0gASgIEhQKDGRlbGl2ZXJ5X3VybBgOIAEoCSLBAQoZUHV0V2ViaG9va0VuZHBvaW50UmVxdWVzdBI1CghlbmRwb2ludBgBIAEoCzIjLmluZ2VzdGlvbi52MS5XZWJob29rRW5kcG9pbnRDb25maWcSGQoRZXhwZWN0ZWRfcmV2aXNpb24YAiABKAMSFwoPaW1wb3J0ZWRfc2VjcmV0GAMgASgJEhMKC21pbnRfc2VjcmV0GAQgASgIEiQKHGV4cGVjdGVkX3BpcGVsaW5lX3ZlcnNpb25faWQYBSABKAkiagoaUHV0V2ViaG9va0VuZHBvaW50UmVzcG9uc2USNQoIZW5kcG9pbnQYASABKAsyIy5pbmdlc3Rpb24udjEuV2ViaG9va0VuZHBvaW50Q29uZmlnEhUKDW1pbnRlZF9zZWNyZXQYAiABKAkiOQoZR2V0V2ViaG9va0VuZHBvaW50UmVxdWVzdBIcChRzb3VyY2VfY29ubmVjdGlvbl9pZBgBIAEoCSJTChpHZXRXZWJob29rRW5kcG9pbnRSZXNwb25zZRI1CghlbmRwb2ludBgBIAEoCzIjLmluZ2VzdGlvbi52MS5XZWJob29rRW5kcG9pbnRDb25maWdiBnByb3RvMw");
|
|
7
|
+
/**
|
|
8
|
+
* Describes the message ingestion.v1.WebhookEndpointConfig.
|
|
9
|
+
* Use `create(WebhookEndpointConfigSchema)` to create a new message.
|
|
10
|
+
*/
|
|
11
|
+
var WebhookEndpointConfigSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_webhooks, 0);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message ingestion.v1.PutWebhookEndpointRequest.
|
|
14
|
+
* Use `create(PutWebhookEndpointRequestSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
var PutWebhookEndpointRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_webhooks, 1);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message ingestion.v1.GetWebhookEndpointRequest.
|
|
19
|
+
* Use `create(GetWebhookEndpointRequestSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
var GetWebhookEndpointRequestSchema = /*@__PURE__*/ messageDesc(file_ingestion_v1_webhooks, 3);
|
|
22
|
+
//#endregion
|
|
23
|
+
export { GetWebhookEndpointRequestSchema, PutWebhookEndpointRequestSchema, WebhookEndpointConfigSchema, file_ingestion_v1_webhooks };
|
package/dist/module/hooks.d.ts
CHANGED
|
@@ -37,13 +37,12 @@ export declare const useObservabilitySearch: () => {
|
|
|
37
37
|
timeframe: import('../pages/observability/types').ObservabilityTimeframe;
|
|
38
38
|
refreshInterval: import('../pages/observability/types').ObservabilityRefreshInterval;
|
|
39
39
|
runs: import('../pages/observability/types').ObservabilityRunsView;
|
|
40
|
+
throughput: import('../pages/observability/types').ObservabilityThroughputView;
|
|
41
|
+
throughputPivot: import('../gen/metrics/v1/metrics_pb').MetricDimension;
|
|
42
|
+
usage: import('../pages/observability/types').ObservabilityUsageView;
|
|
43
|
+
usagePivot: import('../gen/metrics/v1/metrics_pb').MetricDimension;
|
|
44
|
+
pipelinesPage: number;
|
|
40
45
|
statuses: import('../gen/ingestion/v1/runs_pb').RunStatus[];
|
|
41
|
-
throughput?: import('../pages/observability/types').ObservabilityThroughputView | undefined;
|
|
42
|
-
throughputPivot?: import('../gen/metrics/v1/metrics_pb').MetricDimension | undefined;
|
|
43
|
-
usage?: import('../pages/observability/types').ObservabilityUsageView | undefined;
|
|
44
|
-
usagePivot?: import('../gen/metrics/v1/metrics_pb').MetricDimension | undefined;
|
|
45
|
-
runsBucket?: bigint | undefined;
|
|
46
|
-
runsStatus?: import('../gen/ingestion/v1/runs_pb').RunStatus | undefined;
|
|
47
46
|
};
|
|
48
47
|
export declare const usePipelinesSearch: () => {
|
|
49
48
|
q?: string | undefined;
|
package/dist/module/hooks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OBSERVABILITY_RUNS_DEFAULT_STATUSES } from "../pages/observability/components/runs/constants.js";
|
|
2
|
-
import { OBSERVABILITY_DEFAULT_REFRESH_INTERVAL, OBSERVABILITY_DEFAULT_RUNS_VIEW, OBSERVABILITY_DEFAULT_TIMEFRAME } from "../pages/observability/constants.js";
|
|
2
|
+
import { OBSERVABILITY_BAND_PIVOT_KEY_TO_DEFAULT_MAP, OBSERVABILITY_BAND_VIEW_KEY_TO_DEFAULT_MAP, OBSERVABILITY_DEFAULT_REFRESH_INTERVAL, OBSERVABILITY_DEFAULT_RUNS_VIEW, OBSERVABILITY_DEFAULT_TIMEFRAME } from "../pages/observability/constants.js";
|
|
3
3
|
import { connectionsSearchSchema, filamentLayoutSearchSchema, listSearchParamsSchema, observabilitySearchSchema, pipelineCanvasSearchSchema, pipelineHistorySearchSchema, pipelineParamsSchema, pipelineSearchSchema, pipelinesSearchSchema } from "./schemas.js";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
5
|
import { useMatchRoute, useMatches, useNavigate, useParams, useSearch } from "@tanstack/react-router";
|
|
@@ -59,6 +59,11 @@ var useObservabilitySearch = () => useSearch({
|
|
|
59
59
|
timeframe: parsed.timeframe ?? OBSERVABILITY_DEFAULT_TIMEFRAME,
|
|
60
60
|
refreshInterval: parsed.refreshInterval ?? OBSERVABILITY_DEFAULT_REFRESH_INTERVAL,
|
|
61
61
|
runs: parsed.runs ?? OBSERVABILITY_DEFAULT_RUNS_VIEW,
|
|
62
|
+
throughput: parsed.throughput ?? OBSERVABILITY_BAND_VIEW_KEY_TO_DEFAULT_MAP.throughput,
|
|
63
|
+
throughputPivot: parsed.throughputPivot ?? OBSERVABILITY_BAND_PIVOT_KEY_TO_DEFAULT_MAP.throughputPivot,
|
|
64
|
+
usage: parsed.usage ?? OBSERVABILITY_BAND_VIEW_KEY_TO_DEFAULT_MAP.usage,
|
|
65
|
+
usagePivot: parsed.usagePivot ?? OBSERVABILITY_BAND_PIVOT_KEY_TO_DEFAULT_MAP.usagePivot,
|
|
66
|
+
pipelinesPage: parsed.pipelinesPage ?? 1,
|
|
62
67
|
statuses: parsed.statuses ?? OBSERVABILITY_RUNS_DEFAULT_STATUSES
|
|
63
68
|
};
|
|
64
69
|
}
|
package/dist/module/routes.d.ts
CHANGED
|
@@ -28,8 +28,7 @@ export declare const observabilityRouteOptions: FilamentRouteComponents & {
|
|
|
28
28
|
usage: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<typeof import('../pages/observability/types').ObservabilityUsageView>>>;
|
|
29
29
|
usagePivot: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<typeof import('../gen/metrics/v1/metrics_pb').MetricDimension>>>;
|
|
30
30
|
statuses: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodEnum<typeof import('../gen/ingestion/v1/runs_pb').RunStatus>>>>;
|
|
31
|
-
|
|
32
|
-
runsStatus: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<typeof import('../gen/ingestion/v1/runs_pb').RunStatus>>>;
|
|
31
|
+
pipelinesPage: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodCoercedNumber<unknown>>>;
|
|
33
32
|
}, import('zod/v4/core').$strip>;
|
|
34
33
|
};
|
|
35
34
|
export declare const pipelinesRouteOptions: FilamentRouteComponents & {
|
package/dist/module/schemas.d.ts
CHANGED
|
@@ -36,8 +36,7 @@ export declare const observabilitySearchSchema: z.ZodObject<{
|
|
|
36
36
|
usage: z.ZodCatch<z.ZodOptional<z.ZodEnum<typeof ObservabilityUsageView>>>;
|
|
37
37
|
usagePivot: z.ZodCatch<z.ZodOptional<z.ZodEnum<typeof MetricDimension>>>;
|
|
38
38
|
statuses: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof RunStatus>>>>;
|
|
39
|
-
|
|
40
|
-
runsStatus: z.ZodCatch<z.ZodOptional<z.ZodEnum<typeof RunStatus>>>;
|
|
39
|
+
pipelinesPage: z.ZodCatch<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
41
40
|
}, z.core.$strip>;
|
|
42
41
|
export type ObservabilitySearch = z.infer<typeof observabilitySearchSchema>;
|
|
43
42
|
export declare const pipelinesSearchSchema: z.ZodObject<{
|
package/dist/module/schemas.js
CHANGED
|
@@ -34,8 +34,7 @@ var observabilitySearchSchema = z.object({
|
|
|
34
34
|
usage: z.enum(ObservabilityUsageView).optional().catch(void 0),
|
|
35
35
|
usagePivot: z.enum(MetricDimension).optional().catch(void 0),
|
|
36
36
|
statuses: z.array(z.enum(RunStatus)).optional().catch(void 0),
|
|
37
|
-
|
|
38
|
-
runsStatus: z.enum(RunStatus).optional().catch(void 0)
|
|
37
|
+
pipelinesPage: z.coerce.number().int().positive().optional().catch(void 0)
|
|
39
38
|
});
|
|
40
39
|
var pipelinesSearchSchema = listSearchParamsSchema;
|
|
41
40
|
var connectionsSearchSchema = listSearchParamsSchema.pick({ q: true });
|
|
@@ -2,7 +2,6 @@ import { ConnectorKind } from "../../gen/ingestion/v1/common_pb.js";
|
|
|
2
2
|
import { Flow } from "../../module/types.js";
|
|
3
3
|
import { useConnectionsSearch, useFilamentFlowOpen, useFilamentSearchUpdate } from "../../module/hooks.js";
|
|
4
4
|
import { CONNECTOR_KIND_TO_PLURAL_LABEL_MAP, CONNECTOR_KIND_TO_PLURAL_NOUN_MAP } from "../../components/connections/constants.js";
|
|
5
|
-
import { useListConnectorsQuery } from "../../api/queries/connectors.js";
|
|
6
5
|
import { createListConnectionsInput, useSuspenseListConnectionsInfiniteQuery } from "../../api/queries/connections.js";
|
|
7
6
|
import { CONNECTOR_KIND_TO_CREATE_TITLE_MAP, CONNECTOR_KIND_TO_DOCS_PATH_MAP, CONNECTOR_KIND_TO_EMPTY_MESSAGE_MAP } from "./constants.js";
|
|
8
7
|
import DocsLink from "../../components/DocsLink.js";
|
|
@@ -38,8 +37,6 @@ var ConnectionsPage = ({ kind }) => {
|
|
|
38
37
|
};
|
|
39
38
|
const { data, hasNextPage, isFetchingNextPage, fetchNextPage } = useSuspenseListConnectionsInfiniteQuery({ input: createListConnectionsInput(kind, { q }) });
|
|
40
39
|
const kindConnections = useMemo(() => data.pages.flatMap((page) => page.connections), [data.pages]);
|
|
41
|
-
const { data: catalog } = useListConnectorsQuery();
|
|
42
|
-
const previewByConnector = useMemo(() => new Map(catalog?.connectors.map((connector) => [`${connector.kind}:${connector.name}`, connector.isPreview]) ?? []), [catalog?.connectors]);
|
|
43
40
|
const endRef = useEndReached({
|
|
44
41
|
onEndReached: hasNextPage ? () => void fetchNextPage() : void 0,
|
|
45
42
|
isEnabled: !isFetchingNextPage,
|
|
@@ -92,7 +89,6 @@ var ConnectionsPage = ({ kind }) => {
|
|
|
92
89
|
gap: 12,
|
|
93
90
|
children: kindConnections.map((connection) => /* @__PURE__ */ jsx(ConnectionCard, {
|
|
94
91
|
connection,
|
|
95
|
-
isPreview: previewByConnector.get(`${connection.kind}:${connection.connector}`) ?? false,
|
|
96
92
|
pipelineCount: hasPipelineCounts ? pipelineCountsByConnectionId.get(connection.id) ?? 0 : void 0,
|
|
97
93
|
onClick: () => handleConnectionClick(connection.id)
|
|
98
94
|
}, connection.id))
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { formatVersion } from "../../../../utils/format.js";
|
|
2
2
|
import ConnectorTile from "../../../../components/connections/ConnectorTile.js";
|
|
3
3
|
import ConnectionKindChip from "../../../../components/connections/ConnectionKindChip.js";
|
|
4
|
-
import ConnectorPreviewChip from "../../../../components/connections/ConnectorPreviewChip.js";
|
|
5
4
|
import { FlowArrowIcon } from "@phosphor-icons/react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import Flex, { AlignItems, JustifyContent } from "@galaxy-io/dls/layout/Flex";
|
|
@@ -12,7 +11,7 @@ import Widget from "@galaxy-io/dls/widget/Widget";
|
|
|
12
11
|
import FlexItem from "@galaxy-io/dls/layout/FlexItem";
|
|
13
12
|
import pluralize from "pluralize";
|
|
14
13
|
//#region src/pages/connections/components/card/ConnectionCard.tsx
|
|
15
|
-
var ConnectionCard = ({ connection,
|
|
14
|
+
var ConnectionCard = ({ connection, pipelineCount, onClick }) => {
|
|
16
15
|
const pipelineLabel = pipelineCount === void 0 ? EMPTY_VALUE : pluralize("pipeline", pipelineCount, true);
|
|
17
16
|
return /* @__PURE__ */ jsxs(Widget, {
|
|
18
17
|
isInteractive: true,
|
|
@@ -41,13 +40,9 @@ var ConnectionCard = ({ connection, isPreview, pipelineCount, onClick }) => {
|
|
|
41
40
|
weight: TextWeight.MEDIUM,
|
|
42
41
|
children: connection.name
|
|
43
42
|
})]
|
|
44
|
-
}), /* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
children: [/* @__PURE__ */ jsx(ConnectorPreviewChip, { isPreview }), /* @__PURE__ */ jsx(ConnectionKindChip, {
|
|
48
|
-
kind: connection.kind,
|
|
49
|
-
size: ChipSize.SMALL
|
|
50
|
-
})]
|
|
43
|
+
}), /* @__PURE__ */ jsx(ConnectionKindChip, {
|
|
44
|
+
kind: connection.kind,
|
|
45
|
+
size: ChipSize.SMALL
|
|
51
46
|
})]
|
|
52
47
|
}), /* @__PURE__ */ jsx(Flex, {
|
|
53
48
|
alignItems: AlignItems.START,
|