@keystrokehq/segment 0.1.0 → 0.1.3
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-labels-to-source.cjs +6 -6
- package/dist/actions/add-labels-to-source.cjs.map +1 -1
- package/dist/actions/add-labels-to-source.d.cts +23 -3
- package/dist/actions/add-labels-to-source.d.cts.map +1 -1
- package/dist/actions/add-labels-to-source.d.mts +23 -3
- package/dist/actions/add-labels-to-source.d.mts.map +1 -1
- package/dist/actions/add-labels-to-source.mjs +6 -6
- package/dist/actions/add-labels-to-source.mjs.map +1 -1
- package/dist/actions/alias.cjs +2 -2
- package/dist/actions/alias.cjs.map +1 -1
- package/dist/actions/alias.d.cts +17 -3
- package/dist/actions/alias.d.cts.map +1 -1
- package/dist/actions/alias.d.mts +17 -3
- package/dist/actions/alias.d.mts.map +1 -1
- package/dist/actions/alias.mjs +2 -2
- package/dist/actions/alias.mjs.map +1 -1
- package/dist/actions/batch.cjs +1 -1
- package/dist/actions/batch.cjs.map +1 -1
- package/dist/actions/batch.d.cts +13 -3
- package/dist/actions/batch.d.cts.map +1 -1
- package/dist/actions/batch.d.mts +13 -3
- package/dist/actions/batch.d.mts.map +1 -1
- package/dist/actions/batch.mjs +1 -1
- package/dist/actions/batch.mjs.map +1 -1
- package/dist/actions/delete-source.cjs +2 -2
- package/dist/actions/delete-source.cjs.map +1 -1
- package/dist/actions/delete-source.d.cts +11 -3
- package/dist/actions/delete-source.d.cts.map +1 -1
- package/dist/actions/delete-source.d.mts +11 -3
- package/dist/actions/delete-source.d.mts.map +1 -1
- package/dist/actions/delete-source.mjs +2 -2
- package/dist/actions/delete-source.mjs.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs +9 -9
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +29 -3
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +29 -3
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs +9 -9
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
- package/dist/actions/get-destination.cjs +35 -35
- package/dist/actions/get-destination.cjs.map +1 -1
- package/dist/actions/get-destination.d.cts +65 -3
- package/dist/actions/get-destination.d.cts.map +1 -1
- package/dist/actions/get-destination.d.mts +65 -3
- package/dist/actions/get-destination.d.mts.map +1 -1
- package/dist/actions/get-destination.mjs +35 -35
- package/dist/actions/get-destination.mjs.map +1 -1
- package/dist/actions/group.cjs +2 -2
- package/dist/actions/group.cjs.map +1 -1
- package/dist/actions/group.d.cts +21 -3
- package/dist/actions/group.d.cts.map +1 -1
- package/dist/actions/group.d.mts +21 -3
- package/dist/actions/group.d.mts.map +1 -1
- package/dist/actions/group.mjs +2 -2
- package/dist/actions/group.mjs.map +1 -1
- package/dist/actions/identify.cjs +2 -2
- package/dist/actions/identify.cjs.map +1 -1
- package/dist/actions/identify.d.cts +21 -3
- package/dist/actions/identify.d.cts.map +1 -1
- package/dist/actions/identify.d.mts +21 -3
- package/dist/actions/identify.d.mts.map +1 -1
- package/dist/actions/identify.mjs +2 -2
- package/dist/actions/identify.mjs.map +1 -1
- package/dist/actions/import-historical-data.cjs +1 -1
- package/dist/actions/import-historical-data.cjs.map +1 -1
- package/dist/actions/import-historical-data.d.cts +13 -3
- package/dist/actions/import-historical-data.d.cts.map +1 -1
- package/dist/actions/import-historical-data.d.mts +13 -3
- package/dist/actions/import-historical-data.d.mts.map +1 -1
- package/dist/actions/import-historical-data.mjs +1 -1
- package/dist/actions/import-historical-data.mjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.cjs +23 -23
- package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.d.cts +44 -3
- package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.d.mts +44 -3
- package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.mjs +23 -23
- package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +10 -10
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +34 -3
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +34 -3
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +10 -10
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.cjs +7 -7
- package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.d.cts +32 -3
- package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -1
- package/dist/actions/list-schema-settings-in-source.d.mts +32 -3
- package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -1
- package/dist/actions/list-schema-settings-in-source.mjs +7 -7
- package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
- package/dist/actions/page.cjs +2 -2
- package/dist/actions/page.cjs.map +1 -1
- package/dist/actions/page.d.cts +23 -3
- package/dist/actions/page.d.cts.map +1 -1
- package/dist/actions/page.d.mts +23 -3
- package/dist/actions/page.d.mts.map +1 -1
- package/dist/actions/page.mjs +2 -2
- package/dist/actions/page.mjs.map +1 -1
- package/dist/actions/remove-source-write-key.cjs +2 -2
- package/dist/actions/remove-source-write-key.cjs.map +1 -1
- package/dist/actions/remove-source-write-key.d.cts +13 -3
- package/dist/actions/remove-source-write-key.d.cts.map +1 -1
- package/dist/actions/remove-source-write-key.d.mts +13 -3
- package/dist/actions/remove-source-write-key.d.mts.map +1 -1
- package/dist/actions/remove-source-write-key.mjs +2 -2
- package/dist/actions/remove-source-write-key.mjs.map +1 -1
- package/dist/actions/screen.cjs +1 -1
- package/dist/actions/screen.cjs.map +1 -1
- package/dist/actions/screen.d.cts +21 -3
- package/dist/actions/screen.d.cts.map +1 -1
- package/dist/actions/screen.d.mts +21 -3
- package/dist/actions/screen.d.mts.map +1 -1
- package/dist/actions/screen.mjs +1 -1
- package/dist/actions/screen.mjs.map +1 -1
- package/dist/actions/track.cjs +2 -2
- package/dist/actions/track.cjs.map +1 -1
- package/dist/actions/track.d.cts +21 -3
- package/dist/actions/track.d.cts.map +1 -1
- package/dist/actions/track.d.mts +21 -3
- package/dist/actions/track.d.mts.map +1 -1
- package/dist/actions/track.mjs +2 -2
- package/dist/actions/track.mjs.map +1 -1
- package/dist/actions/update-source.cjs +6 -6
- package/dist/actions/update-source.cjs.map +1 -1
- package/dist/actions/update-source.d.cts +44 -3
- package/dist/actions/update-source.d.cts.map +1 -1
- package/dist/actions/update-source.d.mts +44 -3
- package/dist/actions/update-source.d.mts.map +1 -1
- package/dist/actions/update-source.mjs +6 -6
- package/dist/actions/update-source.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -9,44 +9,44 @@ const SegmentListConnectedWarehousesFromSourceInput = z.object({
|
|
|
9
9
|
}).describe("Pagination parameters for the request.")
|
|
10
10
|
}).describe("Request parameters to list warehouses connected to a Segment source.");
|
|
11
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
|
-
});
|
|
12
|
+
current: z.string().describe("Cursor for the current page position (base64-encoded).").nullable(),
|
|
13
|
+
totalEntries: z.number().int().describe("Total number of items available across pages.").nullable()
|
|
14
|
+
}).passthrough();
|
|
15
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
|
-
});
|
|
16
|
+
alt: z.string().describe("Alternate logo URL.").nullable(),
|
|
17
|
+
mark: z.string().describe("Mark logo URL.").nullable(),
|
|
18
|
+
"default": z.string().describe("Default logo URL.").nullable()
|
|
19
|
+
}).passthrough();
|
|
20
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
|
-
});
|
|
21
|
+
name: z.string().describe("Configuration option name.").nullable(),
|
|
22
|
+
type: z.string().describe("Option data type.").nullable(),
|
|
23
|
+
required: z.boolean().describe("Whether this option is required.").nullable()
|
|
24
|
+
}).passthrough();
|
|
25
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)."),
|
|
26
|
+
id: z.string().describe("Metadata record ID.").nullable(),
|
|
27
|
+
name: z.string().describe("Display name of the warehouse type.").nullable(),
|
|
28
|
+
slug: z.string().describe("Short identifier (e.g., postgres, redshift).").nullable(),
|
|
29
29
|
logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),
|
|
30
30
|
options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),
|
|
31
|
-
description: z.string().describe("Brief description of the warehouse type.")
|
|
32
|
-
});
|
|
31
|
+
description: z.string().describe("Brief description of the warehouse type.").nullable()
|
|
32
|
+
}).passthrough();
|
|
33
33
|
const SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({
|
|
34
|
-
id: z.string().describe("Warehouse ID."),
|
|
35
|
-
enabled: z.boolean().describe("Whether the warehouse integration is enabled."),
|
|
34
|
+
id: z.string().describe("Warehouse ID.").nullable(),
|
|
35
|
+
enabled: z.boolean().describe("Whether the warehouse integration is enabled.").nullable(),
|
|
36
36
|
metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),
|
|
37
|
-
settings: z.
|
|
38
|
-
workspaceId: z.string().describe("Workspace ID this warehouse belongs to.")
|
|
39
|
-
});
|
|
37
|
+
settings: z.record(z.string(), z.unknown()).describe("Key-value map of warehouse-specific settings."),
|
|
38
|
+
workspaceId: z.string().describe("Workspace ID this warehouse belongs to.").nullable()
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({
|
|
41
41
|
pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),
|
|
42
42
|
warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe("List of warehouses connected to the source.")
|
|
43
|
-
});
|
|
43
|
+
}).passthrough();
|
|
44
44
|
const segmentListConnectedWarehousesFromSource = action("SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE", {
|
|
45
45
|
slug: "segment-list-connected-warehouses-from-source",
|
|
46
46
|
name: "List Connected Warehouses From Source",
|
|
47
47
|
description: "Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.",
|
|
48
48
|
input: SegmentListConnectedWarehousesFromSourceInput,
|
|
49
|
-
output: z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() })
|
|
49
|
+
output: z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() }).passthrough()
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { segmentListConnectedWarehousesFromSource };
|
|
@@ -1 +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
|
|
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.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.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n}).passthrough();\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n}).passthrough();\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,gDAAgD,EAAE,OAAO;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC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AAM,8DAA8D;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2DAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,iEAAiE,SAAS;CACpF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+FAA+F,EAAE,OAAO;CAC5G,YAAY,8DAA8D,SAAS;CACnF,YAAY,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,2CAA2C,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,21 +13,21 @@ const SegmentListDeliveryMetricsSummaryFromDestinationInput = zod.z.object({
|
|
|
13
13
|
destinationId: zod.z.string().describe("Destination identifier")
|
|
14
14
|
});
|
|
15
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
|
-
});
|
|
16
|
+
value: zod.z.number().describe("Breakdown value").nullable(),
|
|
17
|
+
metricName: zod.z.string().describe("Breakdown metric name").nullable()
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = zod.z.object({
|
|
20
|
-
total: zod.z.number().describe("Total value for the metric"),
|
|
20
|
+
total: zod.z.number().describe("Total value for the metric").nullable(),
|
|
21
21
|
breakdown: zod.z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe("Optional breakdown for this metric").nullable().optional(),
|
|
22
|
-
metricName: zod.z.string().describe("Metric name")
|
|
23
|
-
});
|
|
22
|
+
metricName: zod.z.string().describe("Metric name").nullable()
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = zod.z.object({
|
|
25
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"),
|
|
26
|
+
sourceId: zod.z.string().describe("The requested source id").nullable(),
|
|
27
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() });
|
|
28
|
+
}).passthrough();
|
|
29
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = zod.z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() }).passthrough();
|
|
30
|
+
const SegmentListDeliveryMetricsSummaryFromDestinationOutput = zod.z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() }).passthrough();
|
|
31
31
|
const segmentListDeliveryMetricsSummaryFromDestination = require_action.action("SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION", {
|
|
32
32
|
slug: "segment-list-delivery-metrics-summary-from-destination",
|
|
33
33
|
name: "List Delivery Metrics Summary from Destination",
|
|
@@ -1 +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
|
|
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.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.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = 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\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\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,wDAAwDA,IAAAA,EAAE,OAAO;CAC5E,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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aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-delivery-metrics-summary-from-destination.d.ts
|
|
4
|
-
declare const SegmentListDeliveryMetricsSummaryFromDestinationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SegmentListDeliveryMetricsSummaryFromDestinationInput: z.ZodObject<{
|
|
5
|
+
endTime: z.ZodOptional<z.ZodString>;
|
|
6
|
+
sourceId: z.ZodString;
|
|
7
|
+
startTime: z.ZodOptional<z.ZodString>;
|
|
8
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
DAY: "DAY";
|
|
10
|
+
HOUR: "HOUR";
|
|
11
|
+
MINUTE: "MINUTE";
|
|
12
|
+
}>>;
|
|
13
|
+
destinationId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodObject<{
|
|
16
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
deliveryMetricsSummary: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
breakdown: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
metricName: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
|
+
metricName: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>>>>;
|
|
26
|
+
sourceId: z.ZodNullable<z.ZodString>;
|
|
27
|
+
destinationMetadataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const segmentListDeliveryMetricsSummaryFromDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
sourceId: string;
|
|
33
|
+
destinationId: string;
|
|
34
|
+
endTime?: string | undefined;
|
|
35
|
+
startTime?: string | undefined;
|
|
36
|
+
granularity?: "DAY" | "HOUR" | "MINUTE" | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { segmentListDeliveryMetricsSummaryFromDestination };
|
|
9
40
|
//# sourceMappingURL=list-delivery-metrics-summary-from-destination.d.cts.map
|
|
@@ -1 +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,
|
|
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,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,gCAAgD,wBAAA"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-delivery-metrics-summary-from-destination.d.ts
|
|
4
|
-
declare const SegmentListDeliveryMetricsSummaryFromDestinationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SegmentListDeliveryMetricsSummaryFromDestinationInput: z.ZodObject<{
|
|
5
|
+
endTime: z.ZodOptional<z.ZodString>;
|
|
6
|
+
sourceId: z.ZodString;
|
|
7
|
+
startTime: z.ZodOptional<z.ZodString>;
|
|
8
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
DAY: "DAY";
|
|
10
|
+
HOUR: "HOUR";
|
|
11
|
+
MINUTE: "MINUTE";
|
|
12
|
+
}>>;
|
|
13
|
+
destinationId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodObject<{
|
|
16
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
deliveryMetricsSummary: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
breakdown: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
metricName: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
|
+
metricName: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>>>>;
|
|
26
|
+
sourceId: z.ZodNullable<z.ZodString>;
|
|
27
|
+
destinationMetadataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const segmentListDeliveryMetricsSummaryFromDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
sourceId: string;
|
|
33
|
+
destinationId: string;
|
|
34
|
+
endTime?: string | undefined;
|
|
35
|
+
startTime?: string | undefined;
|
|
36
|
+
granularity?: "DAY" | "HOUR" | "MINUTE" | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { segmentListDeliveryMetricsSummaryFromDestination };
|
|
9
40
|
//# sourceMappingURL=list-delivery-metrics-summary-from-destination.d.mts.map
|
|
@@ -1 +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,
|
|
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,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,gCAAgD,wBAAA"}
|
|
@@ -13,26 +13,26 @@ const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({
|
|
|
13
13
|
destinationId: z.string().describe("Destination identifier")
|
|
14
14
|
});
|
|
15
15
|
const SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({
|
|
16
|
-
value: z.number().describe("Breakdown value"),
|
|
17
|
-
metricName: z.string().describe("Breakdown metric name")
|
|
18
|
-
});
|
|
16
|
+
value: z.number().describe("Breakdown value").nullable(),
|
|
17
|
+
metricName: z.string().describe("Breakdown metric name").nullable()
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({
|
|
20
|
-
total: z.number().describe("Total value for the metric"),
|
|
20
|
+
total: z.number().describe("Total value for the metric").nullable(),
|
|
21
21
|
breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe("Optional breakdown for this metric").nullable().optional(),
|
|
22
|
-
metricName: z.string().describe("Metric name")
|
|
23
|
-
});
|
|
22
|
+
metricName: z.string().describe("Metric name").nullable()
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({
|
|
25
25
|
metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe("List of delivery metrics entries").nullable().optional(),
|
|
26
|
-
sourceId: z.string().describe("The requested source id"),
|
|
26
|
+
sourceId: z.string().describe("The requested source id").nullable(),
|
|
27
27
|
destinationMetadataId: z.string().describe("Destination metadata id").nullable().optional()
|
|
28
|
-
});
|
|
29
|
-
const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() });
|
|
28
|
+
}).passthrough();
|
|
29
|
+
const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() }).passthrough();
|
|
30
30
|
const segmentListDeliveryMetricsSummaryFromDestination = action("SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION", {
|
|
31
31
|
slug: "segment-list-delivery-metrics-summary-from-destination",
|
|
32
32
|
name: "List Delivery Metrics Summary from Destination",
|
|
33
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
34
|
input: SegmentListDeliveryMetricsSummaryFromDestinationInput,
|
|
35
|
-
output: z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() })
|
|
35
|
+
output: z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() }).passthrough()
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { segmentListDeliveryMetricsSummaryFromDestination };
|
|
@@ -1 +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
|
|
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.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.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = 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\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\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,wDAAwD,EAAE,OAAO;CAC5E,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,yEAAyE,EAAE,OAAO;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwE,EAAE,OAAO;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gFAAgF,EAAE,OAAO;CAC7F,SAAS,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+GAA+G,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mDAAmD,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToE,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -6,31 +6,31 @@ const SegmentListSchemaSettingsInSource_GroupSettingsSchema = zod.z.object({
|
|
|
6
6
|
allowUnplannedTraits: zod.z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
|
|
7
7
|
allowTraitsOnViolations: zod.z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
|
|
8
8
|
commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional()
|
|
9
|
-
});
|
|
9
|
+
}).passthrough();
|
|
10
10
|
const SegmentListSchemaSettingsInSource_TrackSettingsSchema = zod.z.object({
|
|
11
11
|
allowUnplannedEvents: zod.z.boolean().default(false).describe("Allow events not in schema").nullable().optional(),
|
|
12
12
|
allowEventOnViolations: zod.z.boolean().default(false).describe("Allow sending events on violations").nullable().optional(),
|
|
13
13
|
commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional(),
|
|
14
14
|
allowPropertiesOnViolations: zod.z.boolean().default(false).describe("Allow properties on violations").nullable().optional(),
|
|
15
15
|
allowUnplannedEventProperties: zod.z.boolean().default(false).describe("Allow properties not in schema").nullable().optional()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const SegmentListSchemaSettingsInSource_IdentifySettingsSchema = zod.z.object({
|
|
18
18
|
allowUnplannedTraits: zod.z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
|
|
19
19
|
allowTraitsOnViolations: zod.z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
|
|
20
20
|
commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SegmentListSchemaSettingsInSource_SchemaSettingsSchema = zod.z.object({
|
|
23
23
|
group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),
|
|
24
24
|
track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),
|
|
25
25
|
identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),
|
|
26
26
|
forwardingViolationsTo: zod.z.string().describe("Destination id for violations").nullable().optional(),
|
|
27
27
|
forwardingBlockedEventsTo: zod.z.string().describe("Destination id for blocked events").nullable().optional()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = zod.z.object({
|
|
30
30
|
settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),
|
|
31
|
-
sourceId: zod.z.string().describe("Source ID")
|
|
32
|
-
});
|
|
33
|
-
const SegmentListSchemaSettingsInSourceOutput = zod.z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() });
|
|
31
|
+
sourceId: zod.z.string().describe("Source ID").nullable()
|
|
32
|
+
}).passthrough();
|
|
33
|
+
const SegmentListSchemaSettingsInSourceOutput = zod.z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() }).passthrough();
|
|
34
34
|
const segmentListSchemaSettingsInSource = require_action.action("SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE", {
|
|
35
35
|
slug: "segment-list-schema-settings-in-source",
|
|
36
36
|
name: "List Schema Settings in Source",
|
|
@@ -1 +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
|
|
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.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.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}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = 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}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = 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}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = 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}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\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,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,sBA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AAC,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,CAAC,CAAC,YAAY;AACf,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,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,CAAC,CAAC,YAAY;AACf,MAAM,iFAAiFA,IAAAA,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-schema-settings-in-source.d.ts
|
|
4
|
-
declare const SegmentListSchemaSettingsInSourceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SegmentListSchemaSettingsInSourceInput: z.ZodObject<{
|
|
5
|
+
sourceId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
settings: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
group: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
12
|
+
allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
13
|
+
commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
track: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
allowUnplannedEvents: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
17
|
+
allowEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
18
|
+
commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
19
|
+
allowPropertiesOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
20
|
+
allowUnplannedEventProperties: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
identify: z.ZodNullable<z.ZodObject<{
|
|
23
|
+
allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
24
|
+
allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
25
|
+
commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
forwardingViolationsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
forwardingBlockedEventsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
sourceId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
sourceId: string;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { segmentListSchemaSettingsInSource };
|
|
9
38
|
//# sourceMappingURL=list-schema-settings-in-source.d.cts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"list-schema-settings-in-source.d.cts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-schema-settings-in-source.d.ts
|
|
4
|
-
declare const SegmentListSchemaSettingsInSourceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SegmentListSchemaSettingsInSourceInput: z.ZodObject<{
|
|
5
|
+
sourceId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
settings: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
group: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
12
|
+
allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
13
|
+
commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
track: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
allowUnplannedEvents: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
17
|
+
allowEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
18
|
+
commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
19
|
+
allowPropertiesOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
20
|
+
allowUnplannedEventProperties: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
identify: z.ZodNullable<z.ZodObject<{
|
|
23
|
+
allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
24
|
+
allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
25
|
+
commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
forwardingViolationsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
forwardingBlockedEventsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
sourceId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
sourceId: string;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { segmentListSchemaSettingsInSource };
|
|
9
38
|
//# sourceMappingURL=list-schema-settings-in-source.d.mts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"list-schema-settings-in-source.d.mts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -6,36 +6,36 @@ const SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({
|
|
|
6
6
|
allowUnplannedTraits: z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
|
|
7
7
|
allowTraitsOnViolations: z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
|
|
8
8
|
commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional()
|
|
9
|
-
});
|
|
9
|
+
}).passthrough();
|
|
10
10
|
const SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({
|
|
11
11
|
allowUnplannedEvents: z.boolean().default(false).describe("Allow events not in schema").nullable().optional(),
|
|
12
12
|
allowEventOnViolations: z.boolean().default(false).describe("Allow sending events on violations").nullable().optional(),
|
|
13
13
|
commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional(),
|
|
14
14
|
allowPropertiesOnViolations: z.boolean().default(false).describe("Allow properties on violations").nullable().optional(),
|
|
15
15
|
allowUnplannedEventProperties: z.boolean().default(false).describe("Allow properties not in schema").nullable().optional()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({
|
|
18
18
|
allowUnplannedTraits: z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
|
|
19
19
|
allowTraitsOnViolations: z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
|
|
20
20
|
commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({
|
|
23
23
|
group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),
|
|
24
24
|
track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),
|
|
25
25
|
identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),
|
|
26
26
|
forwardingViolationsTo: z.string().describe("Destination id for violations").nullable().optional(),
|
|
27
27
|
forwardingBlockedEventsTo: z.string().describe("Destination id for blocked events").nullable().optional()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({
|
|
30
30
|
settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),
|
|
31
|
-
sourceId: z.string().describe("Source ID")
|
|
32
|
-
});
|
|
31
|
+
sourceId: z.string().describe("Source ID").nullable()
|
|
32
|
+
}).passthrough();
|
|
33
33
|
const segmentListSchemaSettingsInSource = action("SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE", {
|
|
34
34
|
slug: "segment-list-schema-settings-in-source",
|
|
35
35
|
name: "List Schema Settings in Source",
|
|
36
36
|
description: "Retrieve schema configuration settings for a Source.",
|
|
37
37
|
input: SegmentListSchemaSettingsInSourceInput,
|
|
38
|
-
output: z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() })
|
|
38
|
+
output: z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() }).passthrough()
|
|
39
39
|
});
|
|
40
40
|
//#endregion
|
|
41
41
|
export { segmentListSchemaSettingsInSource };
|
|
@@ -1 +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
|
|
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.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.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}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = 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}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = 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}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = 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}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\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,yCAAyC,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwD,EAAE,OAAO;CACrE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,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,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yDAAyD,EAAE,OAAO;CACtE,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,CAAC,CAAC,YAAY;AACf,MAAM,iFAAiF,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
package/dist/actions/page.cjs
CHANGED
|
@@ -10,9 +10,9 @@ const SegmentPageInput = zod.z.object({
|
|
|
10
10
|
timestamp: zod.z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
|
|
11
11
|
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of page properties (e.g., path, url).").optional(),
|
|
12
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.
|
|
13
|
+
integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
14
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.
|
|
15
|
+
const SegmentPageOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.");
|
|
16
16
|
const segmentPage = require_action.action("SEGMENT_PAGE", {
|
|
17
17
|
slug: "segment-page",
|
|
18
18
|
name: "Segment Page View",
|