@keystrokehq/segment 0.0.16 → 0.1.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/README.md +10 -104
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-labels-to-source.cjs +27 -0
- package/dist/actions/add-labels-to-source.cjs.map +1 -0
- package/dist/actions/add-labels-to-source.d.cts +9 -0
- package/dist/actions/add-labels-to-source.d.cts.map +1 -0
- package/dist/actions/add-labels-to-source.d.mts +9 -0
- package/dist/actions/add-labels-to-source.d.mts.map +1 -0
- package/dist/actions/add-labels-to-source.mjs +26 -0
- package/dist/actions/add-labels-to-source.mjs.map +1 -0
- package/dist/actions/alias.cjs +23 -0
- package/dist/actions/alias.cjs.map +1 -0
- package/dist/actions/alias.d.cts +9 -0
- package/dist/actions/alias.d.cts.map +1 -0
- package/dist/actions/alias.d.mts +9 -0
- package/dist/actions/alias.d.mts.map +1 -0
- package/dist/actions/alias.mjs +20 -0
- package/dist/actions/alias.mjs.map +1 -0
- package/dist/actions/batch.cjs +21 -0
- package/dist/actions/batch.cjs.map +1 -0
- package/dist/actions/batch.d.cts +9 -0
- package/dist/actions/batch.d.cts.map +1 -0
- package/dist/actions/batch.d.mts +9 -0
- package/dist/actions/batch.d.mts.map +1 -0
- package/dist/actions/batch.mjs +18 -0
- package/dist/actions/batch.mjs.map +1 -0
- package/dist/actions/delete-source.cjs +17 -0
- package/dist/actions/delete-source.cjs.map +1 -0
- package/dist/actions/delete-source.d.cts +9 -0
- package/dist/actions/delete-source.d.cts.map +1 -0
- package/dist/actions/delete-source.d.mts +9 -0
- package/dist/actions/delete-source.d.mts.map +1 -0
- package/dist/actions/delete-source.mjs +16 -0
- package/dist/actions/delete-source.mjs.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs +37 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +9 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +9 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs +36 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -0
- package/dist/actions/get-destination.cjs +78 -0
- package/dist/actions/get-destination.cjs.map +1 -0
- package/dist/actions/get-destination.d.cts +9 -0
- package/dist/actions/get-destination.d.cts.map +1 -0
- package/dist/actions/get-destination.d.mts +9 -0
- package/dist/actions/get-destination.d.mts.map +1 -0
- package/dist/actions/get-destination.mjs +77 -0
- package/dist/actions/get-destination.mjs.map +1 -0
- package/dist/actions/group.cjs +25 -0
- package/dist/actions/group.cjs.map +1 -0
- package/dist/actions/group.d.cts +9 -0
- package/dist/actions/group.d.cts.map +1 -0
- package/dist/actions/group.d.mts +9 -0
- package/dist/actions/group.d.mts.map +1 -0
- package/dist/actions/group.mjs +22 -0
- package/dist/actions/group.mjs.map +1 -0
- package/dist/actions/identify.cjs +25 -0
- package/dist/actions/identify.cjs.map +1 -0
- package/dist/actions/identify.d.cts +9 -0
- package/dist/actions/identify.d.cts.map +1 -0
- package/dist/actions/identify.d.mts +9 -0
- package/dist/actions/identify.d.mts.map +1 -0
- package/dist/actions/identify.mjs +22 -0
- package/dist/actions/identify.mjs.map +1 -0
- package/dist/actions/import-historical-data.cjs +20 -0
- package/dist/actions/import-historical-data.cjs.map +1 -0
- package/dist/actions/import-historical-data.d.cts +9 -0
- package/dist/actions/import-historical-data.d.cts.map +1 -0
- package/dist/actions/import-historical-data.d.mts +9 -0
- package/dist/actions/import-historical-data.d.mts.map +1 -0
- package/dist/actions/import-historical-data.mjs +17 -0
- package/dist/actions/import-historical-data.mjs.map +1 -0
- package/dist/actions/index.cjs +35 -0
- package/dist/actions/index.d.cts +18 -0
- package/dist/actions/index.d.mts +18 -0
- package/dist/actions/index.mjs +18 -0
- package/dist/actions/list-connected-warehouses-from-source.cjs +55 -0
- package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.d.cts +9 -0
- package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.d.mts +9 -0
- package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.mjs +54 -0
- package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +41 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +9 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +9 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +40 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -0
- package/dist/actions/list-schema-settings-in-source.cjs +44 -0
- package/dist/actions/list-schema-settings-in-source.cjs.map +1 -0
- package/dist/actions/list-schema-settings-in-source.d.cts +9 -0
- package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -0
- package/dist/actions/list-schema-settings-in-source.d.mts +9 -0
- package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -0
- package/dist/actions/list-schema-settings-in-source.mjs +43 -0
- package/dist/actions/list-schema-settings-in-source.mjs.map +1 -0
- package/dist/actions/page.cjs +26 -0
- package/dist/actions/page.cjs.map +1 -0
- package/dist/actions/page.d.cts +9 -0
- package/dist/actions/page.d.cts.map +1 -0
- package/dist/actions/page.d.mts +9 -0
- package/dist/actions/page.d.mts.map +1 -0
- package/dist/actions/page.mjs +23 -0
- package/dist/actions/page.mjs.map +1 -0
- package/dist/actions/remove-source-write-key.cjs +20 -0
- package/dist/actions/remove-source-write-key.cjs.map +1 -0
- package/dist/actions/remove-source-write-key.d.cts +9 -0
- package/dist/actions/remove-source-write-key.d.cts.map +1 -0
- package/dist/actions/remove-source-write-key.d.mts +9 -0
- package/dist/actions/remove-source-write-key.d.mts.map +1 -0
- package/dist/actions/remove-source-write-key.mjs +19 -0
- package/dist/actions/remove-source-write-key.mjs.map +1 -0
- package/dist/actions/screen.cjs +25 -0
- package/dist/actions/screen.cjs.map +1 -0
- package/dist/actions/screen.d.cts +9 -0
- package/dist/actions/screen.d.cts.map +1 -0
- package/dist/actions/screen.d.mts +9 -0
- package/dist/actions/screen.d.mts.map +1 -0
- package/dist/actions/screen.mjs +22 -0
- package/dist/actions/screen.mjs.map +1 -0
- package/dist/actions/track.cjs +25 -0
- package/dist/actions/track.cjs.map +1 -0
- package/dist/actions/track.d.cts +9 -0
- package/dist/actions/track.d.cts.map +1 -0
- package/dist/actions/track.d.mts +9 -0
- package/dist/actions/track.d.mts.map +1 -0
- package/dist/actions/track.mjs +22 -0
- package/dist/actions/track.mjs.map +1 -0
- package/dist/actions/update-source.cjs +51 -0
- package/dist/actions/update-source.cjs.map +1 -0
- package/dist/actions/update-source.d.cts +9 -0
- package/dist/actions/update-source.d.cts.map +1 -0
- package/dist/actions/update-source.d.mts +9 -0
- package/dist/actions/update-source.d.mts.map +1 -0
- package/dist/actions/update-source.mjs +50 -0
- package/dist/actions/update-source.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.mts +20 -4
- package/dist/index.mjs +21 -5
- package/package.json +31 -60
- package/LICENSE +0 -21
- package/dist/client-DQfeZzLR.mjs +0 -362
- package/dist/common-DUU0airJ.mjs +0 -56
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -3
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/schemas/index.d.mts +0 -57
- package/dist/schemas/index.mjs +0 -3
- package/dist/segment.credential-set-BTTrkHO7.mjs +0 -33
- package/dist/segment.credential-set-BgROtI_9.d.mts +0 -57
- package/dist/triggers/index.d.mts +0 -110
- package/dist/triggers/index.mjs +0 -367
- package/dist/workspace-list-spaces.operation-DKWX3vl5.mjs +0 -5200
- package/dist/workspace-list-spaces.operation-DNIUfIuv.d.mts +0 -6548
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { segmentAddLabelsToSource } from "./add-labels-to-source.cjs";
|
|
2
|
+
import { segmentAlias } from "./alias.cjs";
|
|
3
|
+
import { segmentBatch } from "./batch.cjs";
|
|
4
|
+
import { segmentDeleteSource } from "./delete-source.cjs";
|
|
5
|
+
import { segmentGetDailyPerSourceApiCallsUsage } from "./get-daily-per-source-api-calls-usage.cjs";
|
|
6
|
+
import { segmentGetDestination } from "./get-destination.cjs";
|
|
7
|
+
import { segmentGroup } from "./group.cjs";
|
|
8
|
+
import { segmentIdentify } from "./identify.cjs";
|
|
9
|
+
import { segmentImportHistoricalData } from "./import-historical-data.cjs";
|
|
10
|
+
import { segmentListConnectedWarehousesFromSource } from "./list-connected-warehouses-from-source.cjs";
|
|
11
|
+
import { segmentListDeliveryMetricsSummaryFromDestination } from "./list-delivery-metrics-summary-from-destination.cjs";
|
|
12
|
+
import { segmentListSchemaSettingsInSource } from "./list-schema-settings-in-source.cjs";
|
|
13
|
+
import { segmentPage } from "./page.cjs";
|
|
14
|
+
import { segmentRemoveSourceWriteKey } from "./remove-source-write-key.cjs";
|
|
15
|
+
import { segmentScreen } from "./screen.cjs";
|
|
16
|
+
import { segmentTrack } from "./track.cjs";
|
|
17
|
+
import { segmentUpdateSource } from "./update-source.cjs";
|
|
18
|
+
export { segmentAddLabelsToSource, segmentAlias, segmentBatch, segmentDeleteSource, segmentGetDailyPerSourceApiCallsUsage, segmentGetDestination, segmentGroup, segmentIdentify, segmentImportHistoricalData, segmentListConnectedWarehousesFromSource, segmentListDeliveryMetricsSummaryFromDestination, segmentListSchemaSettingsInSource, segmentPage, segmentRemoveSourceWriteKey, segmentScreen, segmentTrack, segmentUpdateSource };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { segmentAddLabelsToSource } from "./add-labels-to-source.mjs";
|
|
2
|
+
import { segmentAlias } from "./alias.mjs";
|
|
3
|
+
import { segmentBatch } from "./batch.mjs";
|
|
4
|
+
import { segmentDeleteSource } from "./delete-source.mjs";
|
|
5
|
+
import { segmentGetDailyPerSourceApiCallsUsage } from "./get-daily-per-source-api-calls-usage.mjs";
|
|
6
|
+
import { segmentGetDestination } from "./get-destination.mjs";
|
|
7
|
+
import { segmentGroup } from "./group.mjs";
|
|
8
|
+
import { segmentIdentify } from "./identify.mjs";
|
|
9
|
+
import { segmentImportHistoricalData } from "./import-historical-data.mjs";
|
|
10
|
+
import { segmentListConnectedWarehousesFromSource } from "./list-connected-warehouses-from-source.mjs";
|
|
11
|
+
import { segmentListDeliveryMetricsSummaryFromDestination } from "./list-delivery-metrics-summary-from-destination.mjs";
|
|
12
|
+
import { segmentListSchemaSettingsInSource } from "./list-schema-settings-in-source.mjs";
|
|
13
|
+
import { segmentPage } from "./page.mjs";
|
|
14
|
+
import { segmentRemoveSourceWriteKey } from "./remove-source-write-key.mjs";
|
|
15
|
+
import { segmentScreen } from "./screen.mjs";
|
|
16
|
+
import { segmentTrack } from "./track.mjs";
|
|
17
|
+
import { segmentUpdateSource } from "./update-source.mjs";
|
|
18
|
+
export { segmentAddLabelsToSource, segmentAlias, segmentBatch, segmentDeleteSource, segmentGetDailyPerSourceApiCallsUsage, segmentGetDestination, segmentGroup, segmentIdentify, segmentImportHistoricalData, segmentListConnectedWarehousesFromSource, segmentListDeliveryMetricsSummaryFromDestination, segmentListSchemaSettingsInSource, segmentPage, segmentRemoveSourceWriteKey, segmentScreen, segmentTrack, segmentUpdateSource };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { segmentAddLabelsToSource } from "./add-labels-to-source.mjs";
|
|
2
|
+
import { segmentAlias } from "./alias.mjs";
|
|
3
|
+
import { segmentBatch } from "./batch.mjs";
|
|
4
|
+
import { segmentDeleteSource } from "./delete-source.mjs";
|
|
5
|
+
import { segmentGetDailyPerSourceApiCallsUsage } from "./get-daily-per-source-api-calls-usage.mjs";
|
|
6
|
+
import { segmentGetDestination } from "./get-destination.mjs";
|
|
7
|
+
import { segmentGroup } from "./group.mjs";
|
|
8
|
+
import { segmentIdentify } from "./identify.mjs";
|
|
9
|
+
import { segmentImportHistoricalData } from "./import-historical-data.mjs";
|
|
10
|
+
import { segmentListConnectedWarehousesFromSource } from "./list-connected-warehouses-from-source.mjs";
|
|
11
|
+
import { segmentListDeliveryMetricsSummaryFromDestination } from "./list-delivery-metrics-summary-from-destination.mjs";
|
|
12
|
+
import { segmentListSchemaSettingsInSource } from "./list-schema-settings-in-source.mjs";
|
|
13
|
+
import { segmentPage } from "./page.mjs";
|
|
14
|
+
import { segmentRemoveSourceWriteKey } from "./remove-source-write-key.mjs";
|
|
15
|
+
import { segmentScreen } from "./screen.mjs";
|
|
16
|
+
import { segmentTrack } from "./track.mjs";
|
|
17
|
+
import { segmentUpdateSource } from "./update-source.mjs";
|
|
18
|
+
export { segmentAddLabelsToSource, segmentAlias, segmentBatch, segmentDeleteSource, segmentGetDailyPerSourceApiCallsUsage, segmentGetDestination, segmentGroup, segmentIdentify, segmentImportHistoricalData, segmentListConnectedWarehousesFromSource, segmentListDeliveryMetricsSummaryFromDestination, segmentListSchemaSettingsInSource, segmentPage, segmentRemoveSourceWriteKey, segmentScreen, segmentTrack, segmentUpdateSource };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-connected-warehouses-from-source.ts
|
|
4
|
+
const SegmentListConnectedWarehousesFromSourceInput = zod.z.object({
|
|
5
|
+
sourceId: zod.z.string().describe("ID of the Source to retrieve warehouses for."),
|
|
6
|
+
pagination: zod.z.object({
|
|
7
|
+
count: zod.z.number().int().describe("Number of items per page (1–1000)."),
|
|
8
|
+
cursor: zod.z.string().describe("Cursor token for the next page.").optional()
|
|
9
|
+
}).describe("Pagination parameters for the request.")
|
|
10
|
+
}).describe("Request parameters to list warehouses connected to a Segment source.");
|
|
11
|
+
const SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = zod.z.object({
|
|
12
|
+
current: zod.z.string().describe("Cursor for the current page position (base64-encoded)."),
|
|
13
|
+
totalEntries: zod.z.number().int().describe("Total number of items available across pages.")
|
|
14
|
+
});
|
|
15
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = zod.z.object({
|
|
16
|
+
alt: zod.z.string().describe("Alternate logo URL."),
|
|
17
|
+
mark: zod.z.string().describe("Mark logo URL."),
|
|
18
|
+
"default": zod.z.string().describe("Default logo URL.")
|
|
19
|
+
});
|
|
20
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = zod.z.object({
|
|
21
|
+
name: zod.z.string().describe("Configuration option name."),
|
|
22
|
+
type: zod.z.string().describe("Option data type."),
|
|
23
|
+
required: zod.z.boolean().describe("Whether this option is required.")
|
|
24
|
+
});
|
|
25
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = zod.z.object({
|
|
26
|
+
id: zod.z.string().describe("Metadata record ID."),
|
|
27
|
+
name: zod.z.string().describe("Display name of the warehouse type."),
|
|
28
|
+
slug: zod.z.string().describe("Short identifier (e.g., postgres, redshift)."),
|
|
29
|
+
logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),
|
|
30
|
+
options: zod.z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),
|
|
31
|
+
description: zod.z.string().describe("Brief description of the warehouse type.")
|
|
32
|
+
});
|
|
33
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseSchema = zod.z.object({
|
|
34
|
+
id: zod.z.string().describe("Warehouse ID."),
|
|
35
|
+
enabled: zod.z.boolean().describe("Whether the warehouse integration is enabled."),
|
|
36
|
+
metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),
|
|
37
|
+
settings: zod.z.object({}).describe("Key-value map of warehouse-specific settings."),
|
|
38
|
+
workspaceId: zod.z.string().describe("Workspace ID this warehouse belongs to.")
|
|
39
|
+
});
|
|
40
|
+
const SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = zod.z.object({
|
|
41
|
+
pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),
|
|
42
|
+
warehouses: zod.z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe("List of warehouses connected to the source.")
|
|
43
|
+
});
|
|
44
|
+
const SegmentListConnectedWarehousesFromSourceOutput = zod.z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() });
|
|
45
|
+
const segmentListConnectedWarehousesFromSource = require_action.action("SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE", {
|
|
46
|
+
slug: "segment-list-connected-warehouses-from-source",
|
|
47
|
+
name: "List Connected Warehouses From Source",
|
|
48
|
+
description: "Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.",
|
|
49
|
+
input: SegmentListConnectedWarehousesFromSourceInput,
|
|
50
|
+
output: SegmentListConnectedWarehousesFromSourceOutput
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.segmentListConnectedWarehousesFromSource = segmentListConnectedWarehousesFromSource;
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=list-connected-warehouses-from-source.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.cjs","names":["z","action"],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput: z.ZodTypeAny = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema: z.ZodTypeAny = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\"),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema: z.ZodTypeAny = z.object({\n alt: z.string().describe(\"Alternate logo URL.\"),\n mark: z.string().describe(\"Mark logo URL.\"),\n \"default\": z.string().describe(\"Default logo URL.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Configuration option name.\"),\n type: z.string().describe(\"Option data type.\"),\n required: z.boolean().describe(\"Whether this option is required.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Metadata record ID.\"),\n name: z.string().describe(\"Display name of the warehouse type.\"),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\"),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Warehouse ID.\"),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\"),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.object({}).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema: z.ZodTypeAny = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n});\nexport const SegmentListConnectedWarehousesFromSourceOutput: z.ZodTypeAny = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n});\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;AACzF,CAAC;AACD,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;CAC3F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;AACpD,CAAC;AACD,MAAM,iEAA+EA,IAAAA,EAAE,OAAO;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;AACnE,CAAC;AACD,MAAM,mEAAiFA,IAAAA,EAAE,OAAO;CAC9F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,OAAO,8DAA8D,SAAS;CAC9E,SAASA,IAAAA,EAAE,MAAM,8DAA8D;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC7E,CAAC;AACD,MAAM,2DAAyEA,IAAAA,EAAE,OAAO;CACtF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACvC,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAU,iEAAiE,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC5E,CAAC;AACD,MAAM,+FAA6GA,IAAAA,EAAE,OAAO;CAC1H,YAAY,8DAA8D,SAAS;CACnF,YAAYA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC;AACD,MAAa,iDAA+DA,IAAAA,EAAE,OAAO,EACnF,MAAM,6FAA6F,SAAS,EAC9G,CAAC;AAED,MAAa,2CAA2CC,eAAAA,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-connected-warehouses-from-source.d.ts
|
|
4
|
+
declare const SegmentListConnectedWarehousesFromSourceInput: z.ZodTypeAny;
|
|
5
|
+
declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const segmentListConnectedWarehousesFromSource: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentListConnectedWarehousesFromSource };
|
|
9
|
+
//# sourceMappingURL=list-connected-warehouses-from-source.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.d.cts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;cAIa,6CAAA,EAA+C,CAAA,CAAE,UAMqB;AAAA,cAkCtE,8CAAA,EAAgD,CAAA,CAAE,UAE7D;AAAA,cAEW,wCAAA,gCAAwC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-connected-warehouses-from-source.d.ts
|
|
4
|
+
declare const SegmentListConnectedWarehousesFromSourceInput: z.ZodTypeAny;
|
|
5
|
+
declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const segmentListConnectedWarehousesFromSource: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentListConnectedWarehousesFromSource };
|
|
9
|
+
//# sourceMappingURL=list-connected-warehouses-from-source.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.d.mts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;cAIa,6CAAA,EAA+C,CAAA,CAAE,UAMqB;AAAA,cAkCtE,8CAAA,EAAgD,CAAA,CAAE,UAE7D;AAAA,cAEW,wCAAA,gCAAwC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-connected-warehouses-from-source.ts
|
|
4
|
+
const SegmentListConnectedWarehousesFromSourceInput = z.object({
|
|
5
|
+
sourceId: z.string().describe("ID of the Source to retrieve warehouses for."),
|
|
6
|
+
pagination: z.object({
|
|
7
|
+
count: z.number().int().describe("Number of items per page (1–1000)."),
|
|
8
|
+
cursor: z.string().describe("Cursor token for the next page.").optional()
|
|
9
|
+
}).describe("Pagination parameters for the request.")
|
|
10
|
+
}).describe("Request parameters to list warehouses connected to a Segment source.");
|
|
11
|
+
const SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({
|
|
12
|
+
current: z.string().describe("Cursor for the current page position (base64-encoded)."),
|
|
13
|
+
totalEntries: z.number().int().describe("Total number of items available across pages.")
|
|
14
|
+
});
|
|
15
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({
|
|
16
|
+
alt: z.string().describe("Alternate logo URL."),
|
|
17
|
+
mark: z.string().describe("Mark logo URL."),
|
|
18
|
+
"default": z.string().describe("Default logo URL.")
|
|
19
|
+
});
|
|
20
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({
|
|
21
|
+
name: z.string().describe("Configuration option name."),
|
|
22
|
+
type: z.string().describe("Option data type."),
|
|
23
|
+
required: z.boolean().describe("Whether this option is required.")
|
|
24
|
+
});
|
|
25
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({
|
|
26
|
+
id: z.string().describe("Metadata record ID."),
|
|
27
|
+
name: z.string().describe("Display name of the warehouse type."),
|
|
28
|
+
slug: z.string().describe("Short identifier (e.g., postgres, redshift)."),
|
|
29
|
+
logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),
|
|
30
|
+
options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),
|
|
31
|
+
description: z.string().describe("Brief description of the warehouse type.")
|
|
32
|
+
});
|
|
33
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({
|
|
34
|
+
id: z.string().describe("Warehouse ID."),
|
|
35
|
+
enabled: z.boolean().describe("Whether the warehouse integration is enabled."),
|
|
36
|
+
metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),
|
|
37
|
+
settings: z.object({}).describe("Key-value map of warehouse-specific settings."),
|
|
38
|
+
workspaceId: z.string().describe("Workspace ID this warehouse belongs to.")
|
|
39
|
+
});
|
|
40
|
+
const SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({
|
|
41
|
+
pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),
|
|
42
|
+
warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe("List of warehouses connected to the source.")
|
|
43
|
+
});
|
|
44
|
+
const segmentListConnectedWarehousesFromSource = action("SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE", {
|
|
45
|
+
slug: "segment-list-connected-warehouses-from-source",
|
|
46
|
+
name: "List Connected Warehouses From Source",
|
|
47
|
+
description: "Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.",
|
|
48
|
+
input: SegmentListConnectedWarehousesFromSourceInput,
|
|
49
|
+
output: z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() })
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { segmentListConnectedWarehousesFromSource };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=list-connected-warehouses-from-source.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.mjs","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput: z.ZodTypeAny = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema: z.ZodTypeAny = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\"),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema: z.ZodTypeAny = z.object({\n alt: z.string().describe(\"Alternate logo URL.\"),\n mark: z.string().describe(\"Mark logo URL.\"),\n \"default\": z.string().describe(\"Default logo URL.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Configuration option name.\"),\n type: z.string().describe(\"Option data type.\"),\n required: z.boolean().describe(\"Whether this option is required.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Metadata record ID.\"),\n name: z.string().describe(\"Display name of the warehouse type.\"),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\"),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Warehouse ID.\"),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\"),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.object({}).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\"),\n});\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema: z.ZodTypeAny = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n});\nexport const SegmentListConnectedWarehousesFromSourceOutput: z.ZodTypeAny = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n});\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAA8D,EAAE,OAAO;CAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAA8E,EAAE,OAAO;CAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;AACzF,CAAC;AACD,MAAM,gEAA8E,EAAE,OAAO;CAC3F,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;AACpD,CAAC;AACD,MAAM,iEAA+E,EAAE,OAAO;CAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;AACnE,CAAC;AACD,MAAM,mEAAiF,EAAE,OAAO;CAC9F,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,OAAO,8DAA8D,SAAS;CAC9E,SAAS,EAAE,MAAM,8DAA8D;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC7E,CAAC;AACD,MAAM,2DAAyE,EAAE,OAAO;CACtF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACvC,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAU,iEAAiE,SAAS;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC5E,CAAC;AACD,MAAM,+FAA6G,EAAE,OAAO;CAC1H,YAAY,8DAA8D,SAAS;CACnF,YAAY,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC;AAKD,MAAa,2CAA2C,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0E,EAAE,OAAO,EACnF,MAAM,6FAA6F,SAAS,EAC9G,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-delivery-metrics-summary-from-destination.ts
|
|
4
|
+
const SegmentListDeliveryMetricsSummaryFromDestinationInput = zod.z.object({
|
|
5
|
+
endTime: zod.z.string().describe("Filter events that happened before this time (ISO-8601). Defaults to now.").optional(),
|
|
6
|
+
sourceId: zod.z.string().describe("Source id linked to the destination"),
|
|
7
|
+
startTime: zod.z.string().describe("Filter events that happened after this time (ISO-8601). Defaults depend on granularity.").optional(),
|
|
8
|
+
granularity: zod.z.enum([
|
|
9
|
+
"DAY",
|
|
10
|
+
"HOUR",
|
|
11
|
+
"MINUTE"
|
|
12
|
+
]).describe("Granularity of the metrics aggregation").optional(),
|
|
13
|
+
destinationId: zod.z.string().describe("Destination identifier")
|
|
14
|
+
});
|
|
15
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = zod.z.object({
|
|
16
|
+
value: zod.z.number().describe("Breakdown value"),
|
|
17
|
+
metricName: zod.z.string().describe("Breakdown metric name")
|
|
18
|
+
});
|
|
19
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = zod.z.object({
|
|
20
|
+
total: zod.z.number().describe("Total value for the metric"),
|
|
21
|
+
breakdown: zod.z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe("Optional breakdown for this metric").nullable().optional(),
|
|
22
|
+
metricName: zod.z.string().describe("Metric name")
|
|
23
|
+
});
|
|
24
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = zod.z.object({
|
|
25
|
+
metrics: zod.z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe("List of delivery metrics entries").nullable().optional(),
|
|
26
|
+
sourceId: zod.z.string().describe("The requested source id"),
|
|
27
|
+
destinationMetadataId: zod.z.string().describe("Destination metadata id").nullable().optional()
|
|
28
|
+
});
|
|
29
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = zod.z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() });
|
|
30
|
+
const SegmentListDeliveryMetricsSummaryFromDestinationOutput = zod.z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() });
|
|
31
|
+
const segmentListDeliveryMetricsSummaryFromDestination = require_action.action("SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION", {
|
|
32
|
+
slug: "segment-list-delivery-metrics-summary-from-destination",
|
|
33
|
+
name: "List Delivery Metrics Summary from Destination",
|
|
34
|
+
description: "Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.",
|
|
35
|
+
input: SegmentListDeliveryMetricsSummaryFromDestinationInput,
|
|
36
|
+
output: SegmentListDeliveryMetricsSummaryFromDestinationOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.segmentListDeliveryMetricsSummaryFromDestination = segmentListDeliveryMetricsSummaryFromDestination;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=list-delivery-metrics-summary-from-destination.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-delivery-metrics-summary-from-destination.cjs","names":["z","action"],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput: z.ZodTypeAny = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema: z.ZodTypeAny = z.object({\n value: z.number().describe(\"Breakdown value\"),\n metricName: z.string().describe(\"Breakdown metric name\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema: z.ZodTypeAny = z.object({\n total: z.number().describe(\"Total value for the metric\"),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema: z.ZodTypeAny = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\"),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema: z.ZodTypeAny = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n});\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodTypeAny = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n});\n\nexport const segmentListDeliveryMetricsSummaryFromDestination = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAsEA,IAAAA,EAAE,OAAO;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAuFA,IAAAA,EAAE,OAAO;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;AACzD,CAAC;AACD,MAAM,wEAAsFA,IAAAA,EAAE,OAAO;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,WAAWA,IAAAA,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;AAC/C,CAAC;AACD,MAAM,gFAA8FA,IAAAA,EAAE,OAAO;CAC3G,SAASA,IAAAA,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACvD,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC;AACD,MAAM,+GAA6HA,IAAAA,EAAE,OAAO,EAC1I,wBAAwB,8EAA8E,SAAS,EACjH,CAAC;AACD,MAAa,yDAAuEA,IAAAA,EAAE,OAAO,EAC3F,MAAM,6GAA6G,SAAS,EAC9H,CAAC;AAED,MAAa,mDAAmDC,eAAAA,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-delivery-metrics-summary-from-destination.d.ts
|
|
4
|
+
declare const SegmentListDeliveryMetricsSummaryFromDestinationInput: z.ZodTypeAny;
|
|
5
|
+
declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const segmentListDeliveryMetricsSummaryFromDestination: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentListDeliveryMetricsSummaryFromDestination };
|
|
9
|
+
//# sourceMappingURL=list-delivery-metrics-summary-from-destination.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-delivery-metrics-summary-from-destination.d.cts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;cAIa,qDAAA,EAAuD,CAAA,CAAE,UAMpE;AAAA,cAkBW,sDAAA,EAAwD,CAAA,CAAE,UAErE;AAAA,cAEW,gDAAA,gCAAgD,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-delivery-metrics-summary-from-destination.d.ts
|
|
4
|
+
declare const SegmentListDeliveryMetricsSummaryFromDestinationInput: z.ZodTypeAny;
|
|
5
|
+
declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const segmentListDeliveryMetricsSummaryFromDestination: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentListDeliveryMetricsSummaryFromDestination };
|
|
9
|
+
//# sourceMappingURL=list-delivery-metrics-summary-from-destination.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-delivery-metrics-summary-from-destination.d.mts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;cAIa,qDAAA,EAAuD,CAAA,CAAE,UAMpE;AAAA,cAkBW,sDAAA,EAAwD,CAAA,CAAE,UAErE;AAAA,cAEW,gDAAA,gCAAgD,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-delivery-metrics-summary-from-destination.ts
|
|
4
|
+
const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({
|
|
5
|
+
endTime: z.string().describe("Filter events that happened before this time (ISO-8601). Defaults to now.").optional(),
|
|
6
|
+
sourceId: z.string().describe("Source id linked to the destination"),
|
|
7
|
+
startTime: z.string().describe("Filter events that happened after this time (ISO-8601). Defaults depend on granularity.").optional(),
|
|
8
|
+
granularity: z.enum([
|
|
9
|
+
"DAY",
|
|
10
|
+
"HOUR",
|
|
11
|
+
"MINUTE"
|
|
12
|
+
]).describe("Granularity of the metrics aggregation").optional(),
|
|
13
|
+
destinationId: z.string().describe("Destination identifier")
|
|
14
|
+
});
|
|
15
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({
|
|
16
|
+
value: z.number().describe("Breakdown value"),
|
|
17
|
+
metricName: z.string().describe("Breakdown metric name")
|
|
18
|
+
});
|
|
19
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({
|
|
20
|
+
total: z.number().describe("Total value for the metric"),
|
|
21
|
+
breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe("Optional breakdown for this metric").nullable().optional(),
|
|
22
|
+
metricName: z.string().describe("Metric name")
|
|
23
|
+
});
|
|
24
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({
|
|
25
|
+
metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe("List of delivery metrics entries").nullable().optional(),
|
|
26
|
+
sourceId: z.string().describe("The requested source id"),
|
|
27
|
+
destinationMetadataId: z.string().describe("Destination metadata id").nullable().optional()
|
|
28
|
+
});
|
|
29
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() });
|
|
30
|
+
const segmentListDeliveryMetricsSummaryFromDestination = action("SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION", {
|
|
31
|
+
slug: "segment-list-delivery-metrics-summary-from-destination",
|
|
32
|
+
name: "List Delivery Metrics Summary from Destination",
|
|
33
|
+
description: "Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.",
|
|
34
|
+
input: SegmentListDeliveryMetricsSummaryFromDestinationInput,
|
|
35
|
+
output: z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() })
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { segmentListDeliveryMetricsSummaryFromDestination };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=list-delivery-metrics-summary-from-destination.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-delivery-metrics-summary-from-destination.mjs","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput: z.ZodTypeAny = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema: z.ZodTypeAny = z.object({\n value: z.number().describe(\"Breakdown value\"),\n metricName: z.string().describe(\"Breakdown metric name\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema: z.ZodTypeAny = z.object({\n total: z.number().describe(\"Total value for the metric\"),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema: z.ZodTypeAny = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\"),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema: z.ZodTypeAny = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n});\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodTypeAny = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n});\n\nexport const segmentListDeliveryMetricsSummaryFromDestination = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAsE,EAAE,OAAO;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAa,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAuF,EAAE,OAAO;CACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;AACzD,CAAC;AACD,MAAM,wEAAsF,EAAE,OAAO;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,WAAW,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;AAC/C,CAAC;AACD,MAAM,gFAA8F,EAAE,OAAO;CAC3G,SAAS,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACvD,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC;AACD,MAAM,+GAA6H,EAAE,OAAO,EAC1I,wBAAwB,8EAA8E,SAAS,EACjH,CAAC;AAKD,MAAa,mDAAmD,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkF,EAAE,OAAO,EAC3F,MAAM,6GAA6G,SAAS,EAC9H,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-schema-settings-in-source.ts
|
|
4
|
+
const SegmentListSchemaSettingsInSourceInput = zod.z.object({ sourceId: zod.z.string().describe("ID of the Source") }).describe("Request model for listing schema settings in a Segment Source.");
|
|
5
|
+
const SegmentListSchemaSettingsInSource_GroupSettingsSchema = zod.z.object({
|
|
6
|
+
allowUnplannedTraits: zod.z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
|
|
7
|
+
allowTraitsOnViolations: zod.z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
|
|
8
|
+
commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional()
|
|
9
|
+
});
|
|
10
|
+
const SegmentListSchemaSettingsInSource_TrackSettingsSchema = zod.z.object({
|
|
11
|
+
allowUnplannedEvents: zod.z.boolean().default(false).describe("Allow events not in schema").nullable().optional(),
|
|
12
|
+
allowEventOnViolations: zod.z.boolean().default(false).describe("Allow sending events on violations").nullable().optional(),
|
|
13
|
+
commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional(),
|
|
14
|
+
allowPropertiesOnViolations: zod.z.boolean().default(false).describe("Allow properties on violations").nullable().optional(),
|
|
15
|
+
allowUnplannedEventProperties: zod.z.boolean().default(false).describe("Allow properties not in schema").nullable().optional()
|
|
16
|
+
});
|
|
17
|
+
const SegmentListSchemaSettingsInSource_IdentifySettingsSchema = zod.z.object({
|
|
18
|
+
allowUnplannedTraits: zod.z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
|
|
19
|
+
allowTraitsOnViolations: zod.z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
|
|
20
|
+
commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional()
|
|
21
|
+
});
|
|
22
|
+
const SegmentListSchemaSettingsInSource_SchemaSettingsSchema = zod.z.object({
|
|
23
|
+
group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),
|
|
24
|
+
track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),
|
|
25
|
+
identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),
|
|
26
|
+
forwardingViolationsTo: zod.z.string().describe("Destination id for violations").nullable().optional(),
|
|
27
|
+
forwardingBlockedEventsTo: zod.z.string().describe("Destination id for blocked events").nullable().optional()
|
|
28
|
+
});
|
|
29
|
+
const SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = zod.z.object({
|
|
30
|
+
settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),
|
|
31
|
+
sourceId: zod.z.string().describe("Source ID")
|
|
32
|
+
});
|
|
33
|
+
const SegmentListSchemaSettingsInSourceOutput = zod.z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() });
|
|
34
|
+
const segmentListSchemaSettingsInSource = require_action.action("SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE", {
|
|
35
|
+
slug: "segment-list-schema-settings-in-source",
|
|
36
|
+
name: "List Schema Settings in Source",
|
|
37
|
+
description: "Retrieve schema configuration settings for a Source.",
|
|
38
|
+
input: SegmentListSchemaSettingsInSourceInput,
|
|
39
|
+
output: SegmentListSchemaSettingsInSourceOutput
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.segmentListSchemaSettingsInSource = segmentListSchemaSettingsInSource;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=list-schema-settings-in-source.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schema-settings-in-source.cjs","names":["z","action"],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListSchemaSettingsInSourceInput: z.ZodTypeAny = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema: z.ZodTypeAny = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n});\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema: z.ZodTypeAny = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n});\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema: z.ZodTypeAny = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n});\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema: z.ZodTypeAny = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n});\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema: z.ZodTypeAny = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\"),\n});\nexport const SegmentListSchemaSettingsInSourceOutput: z.ZodTypeAny = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n});\n\nexport const segmentListSchemaSettingsInSource = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,+BAA+BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AACD,MAAM,2DAAyEA,IAAAA,EAAE,OAAO;CACtF,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,OAAO,sDAAsD,SAAS;CACtE,OAAO,sDAAsD,SAAS;CACtE,UAAU,yDAAyD,SAAS;CAC5E,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC;AACD,MAAM,iFAA+FA,IAAAA,EAAE,OAAO;CAC5G,UAAU,uDAAuD,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AAC3C,CAAC;AACD,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,MAAM,+EAA+E,SAAS,EAChG,CAAC;AAED,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-schema-settings-in-source.d.ts
|
|
4
|
+
declare const SegmentListSchemaSettingsInSourceInput: z.ZodTypeAny;
|
|
5
|
+
declare const SegmentListSchemaSettingsInSourceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentListSchemaSettingsInSource };
|
|
9
|
+
//# sourceMappingURL=list-schema-settings-in-source.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schema-settings-in-source.d.cts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEsB;AAAA,cA6BhE,uCAAA,EAAyC,CAAA,CAAE,UAEtD;AAAA,cAEW,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-schema-settings-in-source.d.ts
|
|
4
|
+
declare const SegmentListSchemaSettingsInSourceInput: z.ZodTypeAny;
|
|
5
|
+
declare const SegmentListSchemaSettingsInSourceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentListSchemaSettingsInSource };
|
|
9
|
+
//# sourceMappingURL=list-schema-settings-in-source.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schema-settings-in-source.d.mts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEsB;AAAA,cA6BhE,uCAAA,EAAyC,CAAA,CAAE,UAEtD;AAAA,cAEW,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-schema-settings-in-source.ts
|
|
4
|
+
const SegmentListSchemaSettingsInSourceInput = z.object({ sourceId: z.string().describe("ID of the Source") }).describe("Request model for listing schema settings in a Segment Source.");
|
|
5
|
+
const SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({
|
|
6
|
+
allowUnplannedTraits: z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
|
|
7
|
+
allowTraitsOnViolations: z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
|
|
8
|
+
commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional()
|
|
9
|
+
});
|
|
10
|
+
const SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({
|
|
11
|
+
allowUnplannedEvents: z.boolean().default(false).describe("Allow events not in schema").nullable().optional(),
|
|
12
|
+
allowEventOnViolations: z.boolean().default(false).describe("Allow sending events on violations").nullable().optional(),
|
|
13
|
+
commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional(),
|
|
14
|
+
allowPropertiesOnViolations: z.boolean().default(false).describe("Allow properties on violations").nullable().optional(),
|
|
15
|
+
allowUnplannedEventProperties: z.boolean().default(false).describe("Allow properties not in schema").nullable().optional()
|
|
16
|
+
});
|
|
17
|
+
const SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({
|
|
18
|
+
allowUnplannedTraits: z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
|
|
19
|
+
allowTraitsOnViolations: z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
|
|
20
|
+
commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional()
|
|
21
|
+
});
|
|
22
|
+
const SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({
|
|
23
|
+
group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),
|
|
24
|
+
track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),
|
|
25
|
+
identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),
|
|
26
|
+
forwardingViolationsTo: z.string().describe("Destination id for violations").nullable().optional(),
|
|
27
|
+
forwardingBlockedEventsTo: z.string().describe("Destination id for blocked events").nullable().optional()
|
|
28
|
+
});
|
|
29
|
+
const SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({
|
|
30
|
+
settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),
|
|
31
|
+
sourceId: z.string().describe("Source ID")
|
|
32
|
+
});
|
|
33
|
+
const segmentListSchemaSettingsInSource = action("SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE", {
|
|
34
|
+
slug: "segment-list-schema-settings-in-source",
|
|
35
|
+
name: "List Schema Settings in Source",
|
|
36
|
+
description: "Retrieve schema configuration settings for a Source.",
|
|
37
|
+
input: SegmentListSchemaSettingsInSourceInput,
|
|
38
|
+
output: z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() })
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { segmentListSchemaSettingsInSource };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=list-schema-settings-in-source.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schema-settings-in-source.mjs","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListSchemaSettingsInSourceInput: z.ZodTypeAny = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema: z.ZodTypeAny = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n});\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema: z.ZodTypeAny = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n});\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema: z.ZodTypeAny = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n});\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema: z.ZodTypeAny = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n});\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema: z.ZodTypeAny = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\"),\n});\nexport const SegmentListSchemaSettingsInSourceOutput: z.ZodTypeAny = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n});\n\nexport const segmentListSchemaSettingsInSource = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO,EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAsE,EAAE,OAAO;CACnF,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,MAAM,wDAAsE,EAAE,OAAO;CACnF,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,6BAA6B,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,+BAA+B,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AACD,MAAM,2DAAyE,EAAE,OAAO;CACtF,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,MAAM,yDAAuE,EAAE,OAAO;CACpF,OAAO,sDAAsD,SAAS;CACtE,OAAO,sDAAsD,SAAS;CACtE,UAAU,yDAAyD,SAAS;CAC5E,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC;AACD,MAAM,iFAA+F,EAAE,OAAO;CAC5G,UAAU,uDAAuD,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AAC3C,CAAC;AAKD,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmE,EAAE,OAAO,EAC5E,MAAM,+EAA+E,SAAS,EAChG,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/page.ts
|
|
4
|
+
const SegmentPageInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the page. Optional.").optional(),
|
|
6
|
+
userId: zod.z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
7
|
+
context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
|
|
8
|
+
writeKey: zod.z.string().describe("Write key for authentication if not using Basic or Bearer auth in headers.").optional(),
|
|
9
|
+
messageId: zod.z.string().describe("Unique id for deduplication; Segment auto-generates one if omitted.").optional(),
|
|
10
|
+
timestamp: zod.z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
|
|
11
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of page properties (e.g., path, url).").optional(),
|
|
12
|
+
anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
13
|
+
integrations: zod.z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
14
|
+
}).describe("Request model for recording a page view via Segment HTTP Tracking API.\nOne of 'userId' or 'anonymousId' must be provided.");
|
|
15
|
+
const SegmentPageOutput = zod.z.object({}).describe("Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.");
|
|
16
|
+
const segmentPage = require_action.action("SEGMENT_PAGE", {
|
|
17
|
+
slug: "segment-page",
|
|
18
|
+
name: "Segment Page View",
|
|
19
|
+
description: "Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.",
|
|
20
|
+
input: SegmentPageInput,
|
|
21
|
+
output: SegmentPageOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.segmentPage = segmentPage;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=page.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.cjs","names":["z","action"],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput: z.ZodTypeAny = z.object({}).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4HAA4H;AACxI,MAAa,oBAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAE1K,MAAa,cAAcC,eAAAA,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/page.d.ts
|
|
4
|
+
declare const SegmentPageInput: z.ZodTypeAny;
|
|
5
|
+
declare const SegmentPageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentPage };
|
|
9
|
+
//# sourceMappingURL=page.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.cts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAkB,CAAA,CAAE,UAUwG;AAAA,cAC5H,iBAAA,EAAmB,CAAA,CAAE,UAAyI;AAAA,cAE9J,WAAA,gCAAW,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/page.d.ts
|
|
4
|
+
declare const SegmentPageInput: z.ZodTypeAny;
|
|
5
|
+
declare const SegmentPageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentPage };
|
|
9
|
+
//# sourceMappingURL=page.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.mts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAkB,CAAA,CAAE,UAUwG;AAAA,cAC5H,iBAAA,EAAmB,CAAA,CAAE,UAAyI;AAAA,cAE9J,WAAA,gCAAW,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|