@keystrokehq/segment 0.1.2 → 0.1.4
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/actions/add-labels-to-source.cjs +4 -4
- package/dist/actions/add-labels-to-source.cjs.map +1 -1
- package/dist/actions/add-labels-to-source.d.cts +5 -4
- package/dist/actions/add-labels-to-source.d.mts +5 -4
- package/dist/actions/add-labels-to-source.mjs +4 -4
- 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 +3 -3
- package/dist/actions/alias.d.cts.map +1 -1
- package/dist/actions/alias.d.mts +3 -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 +1 -1
- package/dist/actions/batch.d.cts.map +1 -1
- package/dist/actions/batch.d.mts +1 -1
- 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 +2 -2
- package/dist/actions/delete-source.d.mts +2 -2
- 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 +4 -4
- 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 +4 -4
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +4 -4
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs +4 -4
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
- package/dist/actions/get-destination.cjs +9 -9
- package/dist/actions/get-destination.cjs.map +1 -1
- package/dist/actions/get-destination.d.cts +9 -9
- package/dist/actions/get-destination.d.mts +9 -9
- package/dist/actions/get-destination.mjs +9 -9
- 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 +3 -3
- package/dist/actions/group.d.cts.map +1 -1
- package/dist/actions/group.d.mts +3 -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 +3 -3
- package/dist/actions/identify.d.cts.map +1 -1
- package/dist/actions/identify.d.mts +3 -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 +1 -1
- package/dist/actions/import-historical-data.d.mts +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 +8 -8
- package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.d.cts +8 -8
- package/dist/actions/list-connected-warehouses-from-source.d.mts +8 -8
- package/dist/actions/list-connected-warehouses-from-source.mjs +8 -8
- package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +5 -5
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +5 -5
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +5 -5
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +5 -5
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.cjs +6 -6
- package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.d.cts +6 -6
- package/dist/actions/list-schema-settings-in-source.d.mts +6 -6
- package/dist/actions/list-schema-settings-in-source.mjs +6 -6
- 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 +3 -3
- package/dist/actions/page.d.cts.map +1 -1
- package/dist/actions/page.d.mts +3 -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 +2 -2
- package/dist/actions/remove-source-write-key.d.mts +2 -2
- 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 +1 -1
- package/dist/actions/screen.d.cts.map +1 -1
- package/dist/actions/screen.d.mts +1 -1
- 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 +3 -3
- package/dist/actions/track.d.cts.map +1 -1
- package/dist/actions/track.d.mts +3 -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 +5 -5
- package/dist/actions/update-source.cjs.map +1 -1
- package/dist/actions/update-source.d.cts +5 -5
- package/dist/actions/update-source.d.mts +5 -5
- package/dist/actions/update-source.mjs +5 -5
- package/dist/actions/update-source.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,34 +5,34 @@ const SegmentGetDestinationInput = zod.z.object({ destinationId: zod.z.string().
|
|
|
5
5
|
const SegmentGetDestination_LogosSchema = zod.z.object({
|
|
6
6
|
mark: zod.z.string().describe("URL for the alternate logo (mark).").nullable().optional(),
|
|
7
7
|
"default": zod.z.string().describe("URL for the default logo.").nullable().optional()
|
|
8
|
-
});
|
|
8
|
+
}).passthrough();
|
|
9
9
|
const SegmentGetDestination_ContactSchema = zod.z.object({
|
|
10
10
|
name: zod.z.string().nullable(),
|
|
11
11
|
role: zod.z.string().nullable(),
|
|
12
12
|
email: zod.z.string().nullable(),
|
|
13
13
|
isPrimary: zod.z.boolean().nullable()
|
|
14
|
-
});
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const SegmentGetDestination_SupportedMethodsSchema = zod.z.object({
|
|
16
16
|
alias: zod.z.boolean().nullable(),
|
|
17
17
|
group: zod.z.boolean().nullable(),
|
|
18
18
|
track: zod.z.boolean().nullable(),
|
|
19
19
|
identify: zod.z.boolean().nullable(),
|
|
20
20
|
pageview: zod.z.boolean().nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SegmentGetDestination_SupportedFeaturesSchema = zod.z.object({
|
|
23
23
|
replay: zod.z.boolean().nullable(),
|
|
24
24
|
browserUnbundling: zod.z.boolean().nullable(),
|
|
25
25
|
cloudModeInstances: zod.z.string().describe("Cloud mode instance count as string.").nullable().optional(),
|
|
26
26
|
deviceModeInstances: zod.z.string().describe("Device mode instance count as string.").nullable().optional(),
|
|
27
27
|
browserUnbundlingPublic: zod.z.boolean().nullable()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const SegmentGetDestination_SupportedPlatformsSchema = zod.z.object({
|
|
30
30
|
mobile: zod.z.boolean().nullable(),
|
|
31
31
|
server: zod.z.boolean().nullable(),
|
|
32
32
|
browser: zod.z.boolean().nullable(),
|
|
33
33
|
warehouse: zod.z.boolean().nullable(),
|
|
34
34
|
cloudAppObject: zod.z.boolean().nullable()
|
|
35
|
-
});
|
|
35
|
+
}).passthrough();
|
|
36
36
|
const SegmentGetDestination_MetadataSchema = zod.z.object({
|
|
37
37
|
id: zod.z.string().nullable(),
|
|
38
38
|
name: zod.z.string().nullable(),
|
|
@@ -54,7 +54,7 @@ const SegmentGetDestination_MetadataSchema = zod.z.object({
|
|
|
54
54
|
supportedRegions: zod.z.array(zod.z.string()),
|
|
55
55
|
supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),
|
|
56
56
|
supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable()
|
|
57
|
-
});
|
|
57
|
+
}).passthrough();
|
|
58
58
|
const SegmentGetDestination_DestinationSchema = zod.z.object({
|
|
59
59
|
id: zod.z.string().nullable(),
|
|
60
60
|
name: zod.z.string().nullable(),
|
|
@@ -62,9 +62,9 @@ const SegmentGetDestination_DestinationSchema = zod.z.object({
|
|
|
62
62
|
metadata: SegmentGetDestination_MetadataSchema.nullable(),
|
|
63
63
|
settings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration settings for this Destination instance"),
|
|
64
64
|
sourceId: zod.z.string().nullable()
|
|
65
|
-
});
|
|
66
|
-
const SegmentGetDestination_GetDestinationDataSchema = zod.z.object({ destination: SegmentGetDestination_DestinationSchema.nullable() });
|
|
67
|
-
const SegmentGetDestinationOutput = zod.z.object({ data: SegmentGetDestination_GetDestinationDataSchema.nullable() });
|
|
65
|
+
}).passthrough();
|
|
66
|
+
const SegmentGetDestination_GetDestinationDataSchema = zod.z.object({ destination: SegmentGetDestination_DestinationSchema.nullable() }).passthrough();
|
|
67
|
+
const SegmentGetDestinationOutput = zod.z.object({ data: SegmentGetDestination_GetDestinationDataSchema.nullable() }).passthrough();
|
|
68
68
|
const segmentGetDestination = require_action.action("SEGMENT_GET_DESTINATION", {
|
|
69
69
|
slug: "segment-get-destination",
|
|
70
70
|
name: "Get Destination",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-destination.cjs","names":["z","action"],"sources":["../../src/actions/get-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDestinationInput = z.object({\n destinationId: z.string().describe(\"The destination’s unique ID.\"),\n}).describe(\"Request model for retrieving a Destination by its ID.\");\nconst SegmentGetDestination_LogosSchema = z.object({\n mark: z.string().describe(\"URL for the alternate logo (mark).\").nullable().optional(),\n \"default\": z.string().describe(\"URL for the default logo.\").nullable().optional(),\n});\nconst SegmentGetDestination_ContactSchema = z.object({\n name: z.string().nullable(),\n role: z.string().nullable(),\n email: z.string().nullable(),\n isPrimary: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedMethodsSchema = z.object({\n alias: z.boolean().nullable(),\n group: z.boolean().nullable(),\n track: z.boolean().nullable(),\n identify: z.boolean().nullable(),\n pageview: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedFeaturesSchema = z.object({\n replay: z.boolean().nullable(),\n browserUnbundling: z.boolean().nullable(),\n cloudModeInstances: z.string().describe(\"Cloud mode instance count as string.\").nullable().optional(),\n deviceModeInstances: z.string().describe(\"Device mode instance count as string.\").nullable().optional(),\n browserUnbundlingPublic: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedPlatformsSchema = z.object({\n mobile: z.boolean().nullable(),\n server: z.boolean().nullable(),\n browser: z.boolean().nullable(),\n warehouse: z.boolean().nullable(),\n cloudAppObject: z.boolean().nullable(),\n});\nconst SegmentGetDestination_MetadataSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n slug: z.string().nullable(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string().nullable(),\n actions: z.array(z.unknown()),\n options: z.array(z.unknown()),\n presets: z.array(z.unknown()),\n website: z.string().nullable().optional(),\n contacts: z.array(SegmentGetDestination_ContactSchema),\n categories: z.array(z.string()),\n components: z.array(z.unknown()),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable(),\n previousNames: z.array(z.string()),\n regionEndpoints: z.array(z.string()),\n supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),\n supportedRegions: z.array(z.string()),\n supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),\n supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable(),\n});\nconst SegmentGetDestination_DestinationSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n enabled: z.boolean().nullable(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string().nullable(),\n});\nconst SegmentGetDestination_GetDestinationDataSchema = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n});\nexport const SegmentGetDestinationOutput = z.object({\n data: SegmentGetDestination_GetDestinationDataSchema.nullable(),\n});\n\nexport const segmentGetDestination = action(\"SEGMENT_GET_DESTINATION\", {\n slug: \"segment-get-destination\",\n name: \"Get Destination\",\n description: \"Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.\",\n input: SegmentGetDestinationInput,\n output: SegmentGetDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EACnE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-destination.cjs","names":["z","action"],"sources":["../../src/actions/get-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDestinationInput = z.object({\n destinationId: z.string().describe(\"The destination’s unique ID.\"),\n}).describe(\"Request model for retrieving a Destination by its ID.\");\nconst SegmentGetDestination_LogosSchema = z.object({\n mark: z.string().describe(\"URL for the alternate logo (mark).\").nullable().optional(),\n \"default\": z.string().describe(\"URL for the default logo.\").nullable().optional(),\n}).passthrough();\nconst SegmentGetDestination_ContactSchema = z.object({\n name: z.string().nullable(),\n role: z.string().nullable(),\n email: z.string().nullable(),\n isPrimary: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedMethodsSchema = z.object({\n alias: z.boolean().nullable(),\n group: z.boolean().nullable(),\n track: z.boolean().nullable(),\n identify: z.boolean().nullable(),\n pageview: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedFeaturesSchema = z.object({\n replay: z.boolean().nullable(),\n browserUnbundling: z.boolean().nullable(),\n cloudModeInstances: z.string().describe(\"Cloud mode instance count as string.\").nullable().optional(),\n deviceModeInstances: z.string().describe(\"Device mode instance count as string.\").nullable().optional(),\n browserUnbundlingPublic: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedPlatformsSchema = z.object({\n mobile: z.boolean().nullable(),\n server: z.boolean().nullable(),\n browser: z.boolean().nullable(),\n warehouse: z.boolean().nullable(),\n cloudAppObject: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_MetadataSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n slug: z.string().nullable(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string().nullable(),\n actions: z.array(z.unknown()),\n options: z.array(z.unknown()),\n presets: z.array(z.unknown()),\n website: z.string().nullable().optional(),\n contacts: z.array(SegmentGetDestination_ContactSchema),\n categories: z.array(z.string()),\n components: z.array(z.unknown()),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable(),\n previousNames: z.array(z.string()),\n regionEndpoints: z.array(z.string()),\n supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),\n supportedRegions: z.array(z.string()),\n supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),\n supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable(),\n}).passthrough();\nconst SegmentGetDestination_DestinationSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n enabled: z.boolean().nullable(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string().nullable(),\n}).passthrough();\nconst SegmentGetDestination_GetDestinationDataSchema = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n}).passthrough();\nexport const SegmentGetDestinationOutput = z.object({\n data: SegmentGetDestination_GetDestinationDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentGetDestination = action(\"SEGMENT_GET_DESTINATION\", {\n slug: \"segment-get-destination\",\n name: \"Get Destination\",\n description: \"Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.\",\n input: SegmentGetDestinationInput,\n output: SegmentGetDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EACnE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AAClC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC/B,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AACjC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC7B,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CACxC,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AAChD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC7B,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC7B,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC9B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAChC,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AACvC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAO,kCAAkC,SAAS;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC5B,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;CAC5B,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;CAC5B,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;CAC5B,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxC,UAAUA,IAAAA,EAAE,MAAM,mCAAmC;CACrD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CAC9B,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;CAC/B,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CACnC,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CACjC,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CACnC,kBAAkB,6CAA6C,SAAS;CACxE,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CACpC,mBAAmB,8CAA8C,SAAS;CAC1E,oBAAoB,+CAA+C,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC9B,UAAU,qCAAqC,SAAS;CACxD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,aAAa,wCAAwC,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,7 +17,7 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
17
17
|
logos: z.ZodNullable<z.ZodObject<{
|
|
18
18
|
mark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
21
|
status: z.ZodNullable<z.ZodString>;
|
|
22
22
|
actions: z.ZodArray<z.ZodUnknown>;
|
|
23
23
|
options: z.ZodArray<z.ZodUnknown>;
|
|
@@ -28,7 +28,7 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
28
28
|
role: z.ZodNullable<z.ZodString>;
|
|
29
29
|
email: z.ZodNullable<z.ZodString>;
|
|
30
30
|
isPrimary: z.ZodNullable<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
categories: z.ZodArray<z.ZodString>;
|
|
33
33
|
components: z.ZodArray<z.ZodUnknown>;
|
|
34
34
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -41,7 +41,7 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
41
41
|
track: z.ZodNullable<z.ZodBoolean>;
|
|
42
42
|
identify: z.ZodNullable<z.ZodBoolean>;
|
|
43
43
|
pageview: z.ZodNullable<z.ZodBoolean>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
45
|
supportedRegions: z.ZodArray<z.ZodString>;
|
|
46
46
|
supportedFeatures: z.ZodNullable<z.ZodObject<{
|
|
47
47
|
replay: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -49,20 +49,20 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
49
49
|
cloudModeInstances: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
deviceModeInstances: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
browserUnbundlingPublic: z.ZodNullable<z.ZodBoolean>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
53
|
supportedPlatforms: z.ZodNullable<z.ZodObject<{
|
|
54
54
|
mobile: z.ZodNullable<z.ZodBoolean>;
|
|
55
55
|
server: z.ZodNullable<z.ZodBoolean>;
|
|
56
56
|
browser: z.ZodNullable<z.ZodBoolean>;
|
|
57
57
|
warehouse: z.ZodNullable<z.ZodBoolean>;
|
|
58
58
|
cloudAppObject: z.ZodNullable<z.ZodBoolean>;
|
|
59
|
-
}, z.core.$
|
|
60
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>>;
|
|
60
|
+
}, z.core.$loose>>;
|
|
61
61
|
settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
62
62
|
sourceId: z.ZodNullable<z.ZodString>;
|
|
63
|
-
}, z.core.$
|
|
64
|
-
}, z.core.$
|
|
65
|
-
}, z.core.$
|
|
63
|
+
}, z.core.$loose>>;
|
|
64
|
+
}, z.core.$loose>>;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
66
|
declare const segmentGetDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
67
67
|
destinationId: string;
|
|
68
68
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -17,7 +17,7 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
17
17
|
logos: z.ZodNullable<z.ZodObject<{
|
|
18
18
|
mark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
21
|
status: z.ZodNullable<z.ZodString>;
|
|
22
22
|
actions: z.ZodArray<z.ZodUnknown>;
|
|
23
23
|
options: z.ZodArray<z.ZodUnknown>;
|
|
@@ -28,7 +28,7 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
28
28
|
role: z.ZodNullable<z.ZodString>;
|
|
29
29
|
email: z.ZodNullable<z.ZodString>;
|
|
30
30
|
isPrimary: z.ZodNullable<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
categories: z.ZodArray<z.ZodString>;
|
|
33
33
|
components: z.ZodArray<z.ZodUnknown>;
|
|
34
34
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -41,7 +41,7 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
41
41
|
track: z.ZodNullable<z.ZodBoolean>;
|
|
42
42
|
identify: z.ZodNullable<z.ZodBoolean>;
|
|
43
43
|
pageview: z.ZodNullable<z.ZodBoolean>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
45
|
supportedRegions: z.ZodArray<z.ZodString>;
|
|
46
46
|
supportedFeatures: z.ZodNullable<z.ZodObject<{
|
|
47
47
|
replay: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -49,20 +49,20 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
49
49
|
cloudModeInstances: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
deviceModeInstances: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
browserUnbundlingPublic: z.ZodNullable<z.ZodBoolean>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
53
|
supportedPlatforms: z.ZodNullable<z.ZodObject<{
|
|
54
54
|
mobile: z.ZodNullable<z.ZodBoolean>;
|
|
55
55
|
server: z.ZodNullable<z.ZodBoolean>;
|
|
56
56
|
browser: z.ZodNullable<z.ZodBoolean>;
|
|
57
57
|
warehouse: z.ZodNullable<z.ZodBoolean>;
|
|
58
58
|
cloudAppObject: z.ZodNullable<z.ZodBoolean>;
|
|
59
|
-
}, z.core.$
|
|
60
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>>;
|
|
60
|
+
}, z.core.$loose>>;
|
|
61
61
|
settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
62
62
|
sourceId: z.ZodNullable<z.ZodString>;
|
|
63
|
-
}, z.core.$
|
|
64
|
-
}, z.core.$
|
|
65
|
-
}, z.core.$
|
|
63
|
+
}, z.core.$loose>>;
|
|
64
|
+
}, z.core.$loose>>;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
66
|
declare const segmentGetDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
67
67
|
destinationId: string;
|
|
68
68
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,34 +5,34 @@ const SegmentGetDestinationInput = z.object({ destinationId: z.string().describe
|
|
|
5
5
|
const SegmentGetDestination_LogosSchema = z.object({
|
|
6
6
|
mark: z.string().describe("URL for the alternate logo (mark).").nullable().optional(),
|
|
7
7
|
"default": z.string().describe("URL for the default logo.").nullable().optional()
|
|
8
|
-
});
|
|
8
|
+
}).passthrough();
|
|
9
9
|
const SegmentGetDestination_ContactSchema = z.object({
|
|
10
10
|
name: z.string().nullable(),
|
|
11
11
|
role: z.string().nullable(),
|
|
12
12
|
email: z.string().nullable(),
|
|
13
13
|
isPrimary: z.boolean().nullable()
|
|
14
|
-
});
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const SegmentGetDestination_SupportedMethodsSchema = z.object({
|
|
16
16
|
alias: z.boolean().nullable(),
|
|
17
17
|
group: z.boolean().nullable(),
|
|
18
18
|
track: z.boolean().nullable(),
|
|
19
19
|
identify: z.boolean().nullable(),
|
|
20
20
|
pageview: z.boolean().nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SegmentGetDestination_SupportedFeaturesSchema = z.object({
|
|
23
23
|
replay: z.boolean().nullable(),
|
|
24
24
|
browserUnbundling: z.boolean().nullable(),
|
|
25
25
|
cloudModeInstances: z.string().describe("Cloud mode instance count as string.").nullable().optional(),
|
|
26
26
|
deviceModeInstances: z.string().describe("Device mode instance count as string.").nullable().optional(),
|
|
27
27
|
browserUnbundlingPublic: z.boolean().nullable()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const SegmentGetDestination_SupportedPlatformsSchema = z.object({
|
|
30
30
|
mobile: z.boolean().nullable(),
|
|
31
31
|
server: z.boolean().nullable(),
|
|
32
32
|
browser: z.boolean().nullable(),
|
|
33
33
|
warehouse: z.boolean().nullable(),
|
|
34
34
|
cloudAppObject: z.boolean().nullable()
|
|
35
|
-
});
|
|
35
|
+
}).passthrough();
|
|
36
36
|
const SegmentGetDestination_MetadataSchema = z.object({
|
|
37
37
|
id: z.string().nullable(),
|
|
38
38
|
name: z.string().nullable(),
|
|
@@ -54,7 +54,7 @@ const SegmentGetDestination_MetadataSchema = z.object({
|
|
|
54
54
|
supportedRegions: z.array(z.string()),
|
|
55
55
|
supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),
|
|
56
56
|
supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable()
|
|
57
|
-
});
|
|
57
|
+
}).passthrough();
|
|
58
58
|
const SegmentGetDestination_DestinationSchema = z.object({
|
|
59
59
|
id: z.string().nullable(),
|
|
60
60
|
name: z.string().nullable(),
|
|
@@ -62,14 +62,14 @@ const SegmentGetDestination_DestinationSchema = z.object({
|
|
|
62
62
|
metadata: SegmentGetDestination_MetadataSchema.nullable(),
|
|
63
63
|
settings: z.record(z.string(), z.unknown()).describe("Configuration settings for this Destination instance"),
|
|
64
64
|
sourceId: z.string().nullable()
|
|
65
|
-
});
|
|
66
|
-
const SegmentGetDestination_GetDestinationDataSchema = z.object({ destination: SegmentGetDestination_DestinationSchema.nullable() });
|
|
65
|
+
}).passthrough();
|
|
66
|
+
const SegmentGetDestination_GetDestinationDataSchema = z.object({ destination: SegmentGetDestination_DestinationSchema.nullable() }).passthrough();
|
|
67
67
|
const segmentGetDestination = action("SEGMENT_GET_DESTINATION", {
|
|
68
68
|
slug: "segment-get-destination",
|
|
69
69
|
name: "Get Destination",
|
|
70
70
|
description: "Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.",
|
|
71
71
|
input: SegmentGetDestinationInput,
|
|
72
|
-
output: z.object({ data: SegmentGetDestination_GetDestinationDataSchema.nullable() })
|
|
72
|
+
output: z.object({ data: SegmentGetDestination_GetDestinationDataSchema.nullable() }).passthrough()
|
|
73
73
|
});
|
|
74
74
|
//#endregion
|
|
75
75
|
export { segmentGetDestination };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-destination.mjs","names":[],"sources":["../../src/actions/get-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDestinationInput = z.object({\n destinationId: z.string().describe(\"The destination’s unique ID.\"),\n}).describe(\"Request model for retrieving a Destination by its ID.\");\nconst SegmentGetDestination_LogosSchema = z.object({\n mark: z.string().describe(\"URL for the alternate logo (mark).\").nullable().optional(),\n \"default\": z.string().describe(\"URL for the default logo.\").nullable().optional(),\n});\nconst SegmentGetDestination_ContactSchema = z.object({\n name: z.string().nullable(),\n role: z.string().nullable(),\n email: z.string().nullable(),\n isPrimary: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedMethodsSchema = z.object({\n alias: z.boolean().nullable(),\n group: z.boolean().nullable(),\n track: z.boolean().nullable(),\n identify: z.boolean().nullable(),\n pageview: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedFeaturesSchema = z.object({\n replay: z.boolean().nullable(),\n browserUnbundling: z.boolean().nullable(),\n cloudModeInstances: z.string().describe(\"Cloud mode instance count as string.\").nullable().optional(),\n deviceModeInstances: z.string().describe(\"Device mode instance count as string.\").nullable().optional(),\n browserUnbundlingPublic: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedPlatformsSchema = z.object({\n mobile: z.boolean().nullable(),\n server: z.boolean().nullable(),\n browser: z.boolean().nullable(),\n warehouse: z.boolean().nullable(),\n cloudAppObject: z.boolean().nullable(),\n});\nconst SegmentGetDestination_MetadataSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n slug: z.string().nullable(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string().nullable(),\n actions: z.array(z.unknown()),\n options: z.array(z.unknown()),\n presets: z.array(z.unknown()),\n website: z.string().nullable().optional(),\n contacts: z.array(SegmentGetDestination_ContactSchema),\n categories: z.array(z.string()),\n components: z.array(z.unknown()),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable(),\n previousNames: z.array(z.string()),\n regionEndpoints: z.array(z.string()),\n supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),\n supportedRegions: z.array(z.string()),\n supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),\n supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable(),\n});\nconst SegmentGetDestination_DestinationSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n enabled: z.boolean().nullable(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string().nullable(),\n});\nconst SegmentGetDestination_GetDestinationDataSchema = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n});\nexport const SegmentGetDestinationOutput = z.object({\n data: SegmentGetDestination_GetDestinationDataSchema.nullable(),\n});\n\nexport const segmentGetDestination = action(\"SEGMENT_GET_DESTINATION\", {\n slug: \"segment-get-destination\",\n name: \"Get Destination\",\n description: \"Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.\",\n input: SegmentGetDestinationInput,\n output: SegmentGetDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EACnE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-destination.mjs","names":[],"sources":["../../src/actions/get-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDestinationInput = z.object({\n destinationId: z.string().describe(\"The destination’s unique ID.\"),\n}).describe(\"Request model for retrieving a Destination by its ID.\");\nconst SegmentGetDestination_LogosSchema = z.object({\n mark: z.string().describe(\"URL for the alternate logo (mark).\").nullable().optional(),\n \"default\": z.string().describe(\"URL for the default logo.\").nullable().optional(),\n}).passthrough();\nconst SegmentGetDestination_ContactSchema = z.object({\n name: z.string().nullable(),\n role: z.string().nullable(),\n email: z.string().nullable(),\n isPrimary: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedMethodsSchema = z.object({\n alias: z.boolean().nullable(),\n group: z.boolean().nullable(),\n track: z.boolean().nullable(),\n identify: z.boolean().nullable(),\n pageview: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedFeaturesSchema = z.object({\n replay: z.boolean().nullable(),\n browserUnbundling: z.boolean().nullable(),\n cloudModeInstances: z.string().describe(\"Cloud mode instance count as string.\").nullable().optional(),\n deviceModeInstances: z.string().describe(\"Device mode instance count as string.\").nullable().optional(),\n browserUnbundlingPublic: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedPlatformsSchema = z.object({\n mobile: z.boolean().nullable(),\n server: z.boolean().nullable(),\n browser: z.boolean().nullable(),\n warehouse: z.boolean().nullable(),\n cloudAppObject: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_MetadataSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n slug: z.string().nullable(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string().nullable(),\n actions: z.array(z.unknown()),\n options: z.array(z.unknown()),\n presets: z.array(z.unknown()),\n website: z.string().nullable().optional(),\n contacts: z.array(SegmentGetDestination_ContactSchema),\n categories: z.array(z.string()),\n components: z.array(z.unknown()),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable(),\n previousNames: z.array(z.string()),\n regionEndpoints: z.array(z.string()),\n supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),\n supportedRegions: z.array(z.string()),\n supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),\n supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable(),\n}).passthrough();\nconst SegmentGetDestination_DestinationSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n enabled: z.boolean().nullable(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string().nullable(),\n}).passthrough();\nconst SegmentGetDestination_GetDestinationDataSchema = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n}).passthrough();\nexport const SegmentGetDestinationOutput = z.object({\n data: SegmentGetDestination_GetDestinationDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentGetDestination = action(\"SEGMENT_GET_DESTINATION\", {\n slug: \"segment-get-destination\",\n name: \"Get Destination\",\n description: \"Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.\",\n input: SegmentGetDestinationInput,\n output: SegmentGetDestinationOutput,\n});\n"],"mappings":"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"}
|
package/dist/actions/group.cjs
CHANGED
|
@@ -9,9 +9,9 @@ const SegmentGroupInput = zod.z.object({
|
|
|
9
9
|
writeKey: zod.z.string().describe("Write key for authentication if not using OAuth Bearer token.").optional(),
|
|
10
10
|
timestamp: zod.z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
|
|
11
11
|
anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
12
|
-
integrations: zod.z.
|
|
12
|
+
integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
13
13
|
}).describe("Request model for associating a user with a group via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
|
|
14
|
-
const SegmentGroupOutput = zod.z.
|
|
14
|
+
const SegmentGroupOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.");
|
|
15
15
|
const segmentGroup = require_action.action("SEGMENT_GROUP", {
|
|
16
16
|
slug: "segment-group",
|
|
17
17
|
name: "Segment Group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.cjs","names":["z","action"],"sources":["../../src/actions/group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGroupInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of group traits (e.g., name, industry, employees).\").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 groupId: z.string().describe(\"Unique identifier for the group.\"),\n writeKey: z.string().describe(\"Write key for authentication if not using OAuth Bearer token.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").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.
|
|
1
|
+
{"version":3,"file":"group.cjs","names":["z","action"],"sources":["../../src/actions/group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGroupInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of group traits (e.g., name, industry, employees).\").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 groupId: z.string().describe(\"Unique identifier for the group.\"),\n writeKey: z.string().describe(\"Write key for authentication if not using OAuth Bearer token.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").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.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for associating a user with a group via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentGroupOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentGroup = action(\"SEGMENT_GROUP\", {\n slug: \"segment-group\",\n name: \"Segment Group\",\n description: \"Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.\",\n input: SegmentGroupInput,\n output: SegmentGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvI,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,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAa,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAEtL,MAAa,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
package/dist/actions/group.d.cts
CHANGED
|
@@ -9,9 +9,9 @@ declare const SegmentGroupInput: z.ZodObject<{
|
|
|
9
9
|
writeKey: z.ZodOptional<z.ZodString>;
|
|
10
10
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
11
11
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
integrations: z.ZodOptional<z.
|
|
12
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
declare const SegmentGroupOutput: z.
|
|
14
|
+
declare const SegmentGroupOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
15
|
declare const segmentGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
groupId: string;
|
|
17
17
|
traits?: Record<string, unknown> | undefined;
|
|
@@ -20,7 +20,7 @@ declare const segmentGroup: import("@keystrokehq/action").WorkflowActionDefiniti
|
|
|
20
20
|
writeKey?: string | undefined;
|
|
21
21
|
timestamp?: string | undefined;
|
|
22
22
|
anonymousId?: string | undefined;
|
|
23
|
-
integrations?: Record<string,
|
|
23
|
+
integrations?: Record<string, unknown> | undefined;
|
|
24
24
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { segmentGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.cts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"group.d.cts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
|
package/dist/actions/group.d.mts
CHANGED
|
@@ -9,9 +9,9 @@ declare const SegmentGroupInput: z.ZodObject<{
|
|
|
9
9
|
writeKey: z.ZodOptional<z.ZodString>;
|
|
10
10
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
11
11
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
integrations: z.ZodOptional<z.
|
|
12
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
declare const SegmentGroupOutput: z.
|
|
14
|
+
declare const SegmentGroupOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
15
|
declare const segmentGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
groupId: string;
|
|
17
17
|
traits?: Record<string, unknown> | undefined;
|
|
@@ -20,7 +20,7 @@ declare const segmentGroup: import("@keystrokehq/action").WorkflowActionDefiniti
|
|
|
20
20
|
writeKey?: string | undefined;
|
|
21
21
|
timestamp?: string | undefined;
|
|
22
22
|
anonymousId?: string | undefined;
|
|
23
|
-
integrations?: Record<string,
|
|
23
|
+
integrations?: Record<string, unknown> | undefined;
|
|
24
24
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { segmentGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.mts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"group.d.mts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
|
package/dist/actions/group.mjs
CHANGED
|
@@ -12,9 +12,9 @@ const segmentGroup = action("SEGMENT_GROUP", {
|
|
|
12
12
|
writeKey: z.string().describe("Write key for authentication if not using OAuth Bearer token.").optional(),
|
|
13
13
|
timestamp: z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
|
|
14
14
|
anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
15
|
-
integrations: z.
|
|
15
|
+
integrations: z.record(z.string(), z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
16
16
|
}).describe("Request model for associating a user with a group via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
|
|
17
|
-
output: z.
|
|
17
|
+
output: z.record(z.string(), z.unknown()).describe("Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.")
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { segmentGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.mjs","names":[],"sources":["../../src/actions/group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGroupInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of group traits (e.g., name, industry, employees).\").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 groupId: z.string().describe(\"Unique identifier for the group.\"),\n writeKey: z.string().describe(\"Write key for authentication if not using OAuth Bearer token.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").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.
|
|
1
|
+
{"version":3,"file":"group.mjs","names":[],"sources":["../../src/actions/group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGroupInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of group traits (e.g., name, industry, employees).\").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 groupId: z.string().describe(\"Unique identifier for the group.\"),\n writeKey: z.string().describe(\"Write key for authentication if not using OAuth Bearer token.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").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.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for associating a user with a group via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentGroupOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentGroup = action(\"SEGMENT_GROUP\", {\n slug: \"segment-group\",\n name: \"Segment Group\",\n description: \"Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.\",\n input: SegmentGroupInput,\n output: SegmentGroupOutput,\n});\n"],"mappings":";;AAgBA,MAAa,eAAe,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB+B,EAAE,OAAO;EACxC,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,8IAOH;CACP,QAPgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAOnE;AACV,CAAC"}
|
|
@@ -9,9 +9,9 @@ const SegmentIdentifyInput = zod.z.object({
|
|
|
9
9
|
messageId: zod.z.string().describe("Unique id for deduplication; Segment auto-generates one if omitted.").optional(),
|
|
10
10
|
timestamp: zod.z.string().describe("ISO-8601 timestamp when the identification occurred; if omitted, server time is used.").optional(),
|
|
11
11
|
anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
12
|
-
integrations: zod.z.
|
|
12
|
+
integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
13
13
|
}).describe("Request model for identifying a user and setting/updating user traits via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
|
|
14
|
-
const SegmentIdentifyOutput = zod.z.
|
|
14
|
+
const SegmentIdentifyOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.");
|
|
15
15
|
const segmentIdentify = require_action.action("SEGMENT_IDENTIFY", {
|
|
16
16
|
slug: "segment-identify",
|
|
17
17
|
name: "Segment Identify",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify.cjs","names":["z","action"],"sources":["../../src/actions/identify.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentIdentifyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of user traits (e.g., email, name, plan).\").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 OAuth 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 identification occurred; if omitted, server time is used.\").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.
|
|
1
|
+
{"version":3,"file":"identify.cjs","names":["z","action"],"sources":["../../src/actions/identify.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentIdentifyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of user traits (e.g., email, name, plan).\").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 OAuth 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 identification occurred; if omitted, server time is used.\").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.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for identifying a user and setting/updating user traits via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentIdentifyOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentIdentify = action(\"SEGMENT_IDENTIFY\", {\n slug: \"segment-identify\",\n name: \"Segment Identify\",\n description: \"Tool to identify a user and set/update traits via Segment HTTP Tracking API.\",\n input: SegmentIdentifyInput,\n output: SegmentIdentifyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC9H,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,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAa,wBAAwBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAEzL,MAAa,kBAAkBC,eAAAA,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,9 +9,9 @@ declare const SegmentIdentifyInput: z.ZodObject<{
|
|
|
9
9
|
messageId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
11
11
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
integrations: z.ZodOptional<z.
|
|
12
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
declare const SegmentIdentifyOutput: z.
|
|
14
|
+
declare const SegmentIdentifyOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
15
|
declare const segmentIdentify: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
traits?: Record<string, unknown> | undefined;
|
|
17
17
|
userId?: string | undefined;
|
|
@@ -20,7 +20,7 @@ declare const segmentIdentify: import("@keystrokehq/action").WorkflowActionDefin
|
|
|
20
20
|
messageId?: string | undefined;
|
|
21
21
|
timestamp?: string | undefined;
|
|
22
22
|
anonymousId?: string | undefined;
|
|
23
|
-
integrations?: Record<string,
|
|
23
|
+
integrations?: Record<string, unknown> | undefined;
|
|
24
24
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { segmentIdentify };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify.d.cts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"identify.d.cts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAErB,eAAA,gCAAe,wBAAA"}
|
|
@@ -9,9 +9,9 @@ declare const SegmentIdentifyInput: z.ZodObject<{
|
|
|
9
9
|
messageId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
11
11
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
integrations: z.ZodOptional<z.
|
|
12
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
declare const SegmentIdentifyOutput: z.
|
|
14
|
+
declare const SegmentIdentifyOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
15
|
declare const segmentIdentify: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
traits?: Record<string, unknown> | undefined;
|
|
17
17
|
userId?: string | undefined;
|
|
@@ -20,7 +20,7 @@ declare const segmentIdentify: import("@keystrokehq/action").WorkflowActionDefin
|
|
|
20
20
|
messageId?: string | undefined;
|
|
21
21
|
timestamp?: string | undefined;
|
|
22
22
|
anonymousId?: string | undefined;
|
|
23
|
-
integrations?: Record<string,
|
|
23
|
+
integrations?: Record<string, unknown> | undefined;
|
|
24
24
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { segmentIdentify };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify.d.mts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"identify.d.mts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAErB,eAAA,gCAAe,wBAAA"}
|
|
@@ -12,9 +12,9 @@ const segmentIdentify = action("SEGMENT_IDENTIFY", {
|
|
|
12
12
|
messageId: z.string().describe("Unique id for deduplication; Segment auto-generates one if omitted.").optional(),
|
|
13
13
|
timestamp: z.string().describe("ISO-8601 timestamp when the identification occurred; if omitted, server time is used.").optional(),
|
|
14
14
|
anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
15
|
-
integrations: z.
|
|
15
|
+
integrations: z.record(z.string(), z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
16
16
|
}).describe("Request model for identifying a user and setting/updating user traits via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
|
|
17
|
-
output: z.
|
|
17
|
+
output: z.record(z.string(), z.unknown()).describe("Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.")
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { segmentIdentify };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify.mjs","names":[],"sources":["../../src/actions/identify.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentIdentifyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of user traits (e.g., email, name, plan).\").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 OAuth 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 identification occurred; if omitted, server time is used.\").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.
|
|
1
|
+
{"version":3,"file":"identify.mjs","names":[],"sources":["../../src/actions/identify.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentIdentifyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of user traits (e.g., email, name, plan).\").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 OAuth 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 identification occurred; if omitted, server time is used.\").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.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for identifying a user and setting/updating user traits via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentIdentifyOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentIdentify = action(\"SEGMENT_IDENTIFY\", {\n slug: \"segment-identify\",\n name: \"Segment Identify\",\n description: \"Tool to identify a user and set/update traits via Segment HTTP Tracking API.\",\n input: SegmentIdentifyInput,\n output: SegmentIdentifyOutput,\n});\n"],"mappings":";;AAgBA,MAAa,kBAAkB,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkC,EAAE,OAAO;EAC3C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC9H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,kKAOH;CACP,QAPmC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAOtE;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ const SegmentImportHistoricalDataInput = zod.z.object({
|
|
|
6
6
|
context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional top-level context merged into each call's context.").optional(),
|
|
7
7
|
integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional top-level integrations merged into each call's integrations.").optional()
|
|
8
8
|
}).describe("Request schema for importing historical data in bulk with historical timestamps.");
|
|
9
|
-
const SegmentImportHistoricalDataOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the import was successful.").nullable() }).describe("Response schema for the import call.");
|
|
9
|
+
const SegmentImportHistoricalDataOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the import was successful.").nullable() }).passthrough().describe("Response schema for the import call.");
|
|
10
10
|
const segmentImportHistoricalData = require_action.action("SEGMENT_IMPORT_HISTORICAL_DATA", {
|
|
11
11
|
slug: "segment-import-historical-data",
|
|
12
12
|
name: "Import Historical Data",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-historical-data.cjs","names":["z","action"],"sources":["../../src/actions/import-historical-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentImportHistoricalDataInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of event objects to import. Each event should contain: type (track/identify/page/screen/group), userId or anonymousId, timestamp (ISO 8601 format for historical data), and event-specific properties.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Optional top-level integrations merged into each call's integrations.\").optional(),\n}).describe(\"Request schema for importing historical data in bulk with historical timestamps.\");\nexport const SegmentImportHistoricalDataOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the import was successful.\").nullable(),\n}).describe(\"Response schema for the import call.\");\n\nexport const segmentImportHistoricalData = action(\"SEGMENT_IMPORT_HISTORICAL_DATA\", {\n slug: \"segment-import-historical-data\",\n name: \"Import Historical Data\",\n description: \"Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.\",\n input: SegmentImportHistoricalDataInput,\n output: SegmentImportHistoricalDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8MAA8M;CACzQ,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC5H,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,SAAS,sCAAsC;
|
|
1
|
+
{"version":3,"file":"import-historical-data.cjs","names":["z","action"],"sources":["../../src/actions/import-historical-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentImportHistoricalDataInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of event objects to import. Each event should contain: type (track/identify/page/screen/group), userId or anonymousId, timestamp (ISO 8601 format for historical data), and event-specific properties.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Optional top-level integrations merged into each call's integrations.\").optional(),\n}).describe(\"Request schema for importing historical data in bulk with historical timestamps.\");\nexport const SegmentImportHistoricalDataOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the import was successful.\").nullable(),\n}).passthrough().describe(\"Response schema for the import call.\");\n\nexport const segmentImportHistoricalData = action(\"SEGMENT_IMPORT_HISTORICAL_DATA\", {\n slug: \"segment-import-historical-data\",\n name: \"Import Historical Data\",\n description: \"Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.\",\n input: SegmentImportHistoricalDataInput,\n output: SegmentImportHistoricalDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8MAA8M;CACzQ,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC5H,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const SegmentImportHistoricalDataInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const SegmentImportHistoricalDataOutput: z.ZodObject<{
|
|
10
10
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const segmentImportHistoricalData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
batch: Record<string, unknown>[];
|
|
14
14
|
context?: Record<string, unknown> | undefined;
|
|
@@ -8,7 +8,7 @@ declare const SegmentImportHistoricalDataInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const SegmentImportHistoricalDataOutput: z.ZodObject<{
|
|
10
10
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const segmentImportHistoricalData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
batch: Record<string, unknown>[];
|
|
14
14
|
context?: Record<string, unknown> | undefined;
|
|
@@ -9,7 +9,7 @@ const segmentImportHistoricalData = action("SEGMENT_IMPORT_HISTORICAL_DATA", {
|
|
|
9
9
|
context: z.record(z.string(), z.unknown()).describe("Optional top-level context merged into each call's context.").optional(),
|
|
10
10
|
integrations: z.record(z.string(), z.unknown()).describe("Optional top-level integrations merged into each call's integrations.").optional()
|
|
11
11
|
}).describe("Request schema for importing historical data in bulk with historical timestamps."),
|
|
12
|
-
output: z.object({ success: z.boolean().describe("Indicates whether the import was successful.").nullable() }).describe("Response schema for the import call.")
|
|
12
|
+
output: z.object({ success: z.boolean().describe("Indicates whether the import was successful.").nullable() }).passthrough().describe("Response schema for the import call.")
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { segmentImportHistoricalData };
|