@keystrokehq/segment 0.1.4 → 0.1.6
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 +1 -0
- package/dist/actions/add-labels-to-source.cjs.map +1 -1
- package/dist/actions/add-labels-to-source.d.cts +3 -8
- package/dist/actions/add-labels-to-source.d.cts.map +1 -1
- package/dist/actions/add-labels-to-source.d.mts +3 -8
- package/dist/actions/add-labels-to-source.d.mts.map +1 -1
- package/dist/actions/add-labels-to-source.mjs +1 -0
- package/dist/actions/add-labels-to-source.mjs.map +1 -1
- package/dist/actions/alias.cjs +1 -0
- package/dist/actions/alias.cjs.map +1 -1
- package/dist/actions/alias.d.cts +3 -8
- package/dist/actions/alias.d.cts.map +1 -1
- package/dist/actions/alias.d.mts +3 -8
- package/dist/actions/alias.d.mts.map +1 -1
- package/dist/actions/alias.mjs +1 -0
- package/dist/actions/alias.mjs.map +1 -1
- package/dist/actions/batch.cjs +1 -0
- package/dist/actions/batch.cjs.map +1 -1
- package/dist/actions/batch.d.cts +3 -6
- package/dist/actions/batch.d.cts.map +1 -1
- package/dist/actions/batch.d.mts +3 -6
- package/dist/actions/batch.d.mts.map +1 -1
- package/dist/actions/batch.mjs +1 -0
- package/dist/actions/batch.mjs.map +1 -1
- package/dist/actions/delete-source.cjs +1 -0
- package/dist/actions/delete-source.cjs.map +1 -1
- package/dist/actions/delete-source.d.cts +3 -3
- package/dist/actions/delete-source.d.cts.map +1 -1
- package/dist/actions/delete-source.d.mts +3 -3
- package/dist/actions/delete-source.d.mts.map +1 -1
- package/dist/actions/delete-source.mjs +1 -0
- package/dist/actions/delete-source.mjs.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs +1 -0
- 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 +3 -7
- 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 +3 -7
- 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 +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
- package/dist/actions/get-destination.cjs +1 -0
- package/dist/actions/get-destination.cjs.map +1 -1
- package/dist/actions/get-destination.d.cts +3 -3
- package/dist/actions/get-destination.d.cts.map +1 -1
- package/dist/actions/get-destination.d.mts +3 -3
- package/dist/actions/get-destination.d.mts.map +1 -1
- package/dist/actions/get-destination.mjs +1 -0
- package/dist/actions/get-destination.mjs.map +1 -1
- package/dist/actions/group.cjs +1 -0
- package/dist/actions/group.cjs.map +1 -1
- package/dist/actions/group.d.cts +3 -10
- package/dist/actions/group.d.cts.map +1 -1
- package/dist/actions/group.d.mts +3 -10
- package/dist/actions/group.d.mts.map +1 -1
- package/dist/actions/group.mjs +1 -0
- package/dist/actions/group.mjs.map +1 -1
- package/dist/actions/identify.cjs +1 -0
- package/dist/actions/identify.cjs.map +1 -1
- package/dist/actions/identify.d.cts +3 -10
- package/dist/actions/identify.d.cts.map +1 -1
- package/dist/actions/identify.d.mts +3 -10
- package/dist/actions/identify.d.mts.map +1 -1
- package/dist/actions/identify.mjs +1 -0
- package/dist/actions/identify.mjs.map +1 -1
- package/dist/actions/import-historical-data.cjs +1 -0
- package/dist/actions/import-historical-data.cjs.map +1 -1
- package/dist/actions/import-historical-data.d.cts +3 -5
- package/dist/actions/import-historical-data.d.cts.map +1 -1
- package/dist/actions/import-historical-data.d.mts +3 -5
- package/dist/actions/import-historical-data.d.mts.map +1 -1
- package/dist/actions/import-historical-data.mjs +1 -0
- package/dist/actions/import-historical-data.mjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.cjs +1 -0
- package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.d.cts +3 -7
- package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.d.mts +3 -7
- package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.mjs +1 -0
- package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +3 -7
- 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 +3 -7
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.cjs +1 -0
- package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.d.cts +3 -3
- package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -1
- package/dist/actions/list-schema-settings-in-source.d.mts +3 -3
- package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -1
- package/dist/actions/list-schema-settings-in-source.mjs +1 -0
- package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
- package/dist/actions/page.cjs +1 -0
- package/dist/actions/page.cjs.map +1 -1
- package/dist/actions/page.d.cts +3 -11
- package/dist/actions/page.d.cts.map +1 -1
- package/dist/actions/page.d.mts +3 -11
- package/dist/actions/page.d.mts.map +1 -1
- package/dist/actions/page.mjs +1 -0
- package/dist/actions/page.mjs.map +1 -1
- package/dist/actions/remove-source-write-key.cjs +1 -0
- package/dist/actions/remove-source-write-key.cjs.map +1 -1
- package/dist/actions/remove-source-write-key.d.cts +3 -4
- package/dist/actions/remove-source-write-key.d.cts.map +1 -1
- package/dist/actions/remove-source-write-key.d.mts +3 -4
- package/dist/actions/remove-source-write-key.d.mts.map +1 -1
- package/dist/actions/remove-source-write-key.mjs +1 -0
- package/dist/actions/remove-source-write-key.mjs.map +1 -1
- package/dist/actions/screen.cjs +1 -0
- package/dist/actions/screen.cjs.map +1 -1
- package/dist/actions/screen.d.cts +3 -10
- package/dist/actions/screen.d.cts.map +1 -1
- package/dist/actions/screen.d.mts +3 -10
- package/dist/actions/screen.d.mts.map +1 -1
- package/dist/actions/screen.mjs +1 -0
- package/dist/actions/screen.mjs.map +1 -1
- package/dist/actions/track.cjs +1 -0
- package/dist/actions/track.cjs.map +1 -1
- package/dist/actions/track.d.cts +3 -10
- package/dist/actions/track.d.cts.map +1 -1
- package/dist/actions/track.d.mts +3 -10
- package/dist/actions/track.d.mts.map +1 -1
- package/dist/actions/track.mjs +1 -0
- package/dist/actions/track.mjs.map +1 -1
- package/dist/actions/update-source.cjs +1 -0
- package/dist/actions/update-source.cjs.map +1 -1
- package/dist/actions/update-source.d.cts +3 -7
- package/dist/actions/update-source.d.cts.map +1 -1
- package/dist/actions/update-source.d.mts +3 -7
- package/dist/actions/update-source.d.mts.map +1 -1
- package/dist/actions/update-source.mjs +1 -0
- package/dist/actions/update-source.mjs.map +1 -1
- package/dist/app.cjs +9 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +8 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +8 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +6 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-destination.d.ts
|
|
@@ -63,9 +65,7 @@ declare const SegmentGetDestinationOutput: z.ZodObject<{
|
|
|
63
65
|
}, z.core.$loose>>;
|
|
64
66
|
}, z.core.$loose>>;
|
|
65
67
|
}, z.core.$loose>;
|
|
66
|
-
declare const segmentGetDestination:
|
|
67
|
-
destinationId: string;
|
|
68
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
68
|
+
declare const segmentGetDestination: AppAction<typeof SegmentGetDestinationInput, typeof SegmentGetDestinationOutput, typeof segment.credential>;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { segmentGetDestination };
|
|
71
71
|
//# sourceMappingURL=get-destination.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-destination.d.mts","names":[],"sources":["../../src/actions/get-destination.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-destination.d.mts","names":[],"sources":["../../src/actions/get-destination.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAmE1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-destination.mjs","names":[],"sources":["../../src/actions/get-destination.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentGetDestinationInput,\n typeof SegmentGetDestinationOutput,\n typeof segment.credential\n> = 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":";;;;AAMA,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,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS;AAClC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+C,EAAE,OAAO;CAC5D,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS;AACjC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgD,EAAE,OAAO;CAC7D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC7B,mBAAmB,EAAE,QAAQ,CAAC,CAAC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O,CAAC;CACjC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC;CACnC,kBAAkB,6CAA6C,SAAS;CACxE,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC;CACpC,mBAAmB,8CAA8C,SAAS;CAC1E,oBAAoB,+CAA+C,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC9B,UAAU,qCAAqC,SAAS;CACxD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD;CAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiD,EAAE,OAAO,EAC9D,aAAa,wCAAwC,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyC,EAAE,OAAO,EAClD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
package/dist/actions/group.cjs
CHANGED
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"group.cjs","names":["z","action"],"sources":["../../src/actions/group.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentGroupInput,\n typeof SegmentGroupOutput,\n typeof segment.credential\n> = 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":";;;;AAMA,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,eAITC,eAAAA,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
package/dist/actions/group.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/group.d.ts
|
|
@@ -12,16 +14,7 @@ declare const SegmentGroupInput: z.ZodObject<{
|
|
|
12
14
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const SegmentGroupOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
-
declare const segmentGroup:
|
|
16
|
-
groupId: string;
|
|
17
|
-
traits?: Record<string, unknown> | undefined;
|
|
18
|
-
userId?: string | undefined;
|
|
19
|
-
context?: Record<string, unknown> | undefined;
|
|
20
|
-
writeKey?: string | undefined;
|
|
21
|
-
timestamp?: string | undefined;
|
|
22
|
-
anonymousId?: string | undefined;
|
|
23
|
-
integrations?: Record<string, unknown> | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const segmentGroup: AppAction<typeof SegmentGroupInput, typeof SegmentGroupOutput, typeof segment.credential>;
|
|
25
18
|
//#endregion
|
|
26
19
|
export { segmentGroup };
|
|
27
20
|
//# sourceMappingURL=group.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.cts","names":[],"sources":["../../src/actions/group.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"group.d.cts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;;;cAMa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,EAAc,SAAA,QAClB,iBAAA,SACA,kBAAA,SACA,OAAA,CAAQ,UAAA"}
|
package/dist/actions/group.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/group.d.ts
|
|
@@ -12,16 +14,7 @@ declare const SegmentGroupInput: z.ZodObject<{
|
|
|
12
14
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const SegmentGroupOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
-
declare const segmentGroup:
|
|
16
|
-
groupId: string;
|
|
17
|
-
traits?: Record<string, unknown> | undefined;
|
|
18
|
-
userId?: string | undefined;
|
|
19
|
-
context?: Record<string, unknown> | undefined;
|
|
20
|
-
writeKey?: string | undefined;
|
|
21
|
-
timestamp?: string | undefined;
|
|
22
|
-
anonymousId?: string | undefined;
|
|
23
|
-
integrations?: Record<string, unknown> | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const segmentGroup: AppAction<typeof SegmentGroupInput, typeof SegmentGroupOutput, typeof segment.credential>;
|
|
25
18
|
//#endregion
|
|
26
19
|
export { segmentGroup };
|
|
27
20
|
//# sourceMappingURL=group.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.mts","names":[],"sources":["../../src/actions/group.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"group.d.mts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;;;cAMa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,EAAc,SAAA,QAClB,iBAAA,SACA,kBAAA,SACA,OAAA,CAAQ,UAAA"}
|
package/dist/actions/group.mjs
CHANGED
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"group.mjs","names":[],"sources":["../../src/actions/group.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentGroupInput,\n typeof SegmentGroupOutput,\n typeof segment.credential\n> = 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":";;;AAkBA,MAAa,eAIT,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB+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,8IAWH;CACP,QAXgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAWnE;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"identify.cjs","names":["z","action"],"sources":["../../src/actions/identify.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentIdentifyInput,\n typeof SegmentIdentifyOutput,\n typeof segment.credential\n> = 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":";;;;AAMA,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,kBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/identify.d.ts
|
|
@@ -12,16 +14,7 @@ declare const SegmentIdentifyInput: z.ZodObject<{
|
|
|
12
14
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const SegmentIdentifyOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
-
declare const segmentIdentify:
|
|
16
|
-
traits?: Record<string, unknown> | undefined;
|
|
17
|
-
userId?: string | undefined;
|
|
18
|
-
context?: Record<string, unknown> | undefined;
|
|
19
|
-
writeKey?: string | undefined;
|
|
20
|
-
messageId?: string | undefined;
|
|
21
|
-
timestamp?: string | undefined;
|
|
22
|
-
anonymousId?: string | undefined;
|
|
23
|
-
integrations?: Record<string, unknown> | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const segmentIdentify: AppAction<typeof SegmentIdentifyInput, typeof SegmentIdentifyOutput, typeof segment.credential>;
|
|
25
18
|
//#endregion
|
|
26
19
|
export { segmentIdentify };
|
|
27
20
|
//# sourceMappingURL=identify.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify.d.cts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"identify.d.cts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAErB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/identify.d.ts
|
|
@@ -12,16 +14,7 @@ declare const SegmentIdentifyInput: z.ZodObject<{
|
|
|
12
14
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const SegmentIdentifyOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
-
declare const segmentIdentify:
|
|
16
|
-
traits?: Record<string, unknown> | undefined;
|
|
17
|
-
userId?: string | undefined;
|
|
18
|
-
context?: Record<string, unknown> | undefined;
|
|
19
|
-
writeKey?: string | undefined;
|
|
20
|
-
messageId?: string | undefined;
|
|
21
|
-
timestamp?: string | undefined;
|
|
22
|
-
anonymousId?: string | undefined;
|
|
23
|
-
integrations?: Record<string, unknown> | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const segmentIdentify: AppAction<typeof SegmentIdentifyInput, typeof SegmentIdentifyOutput, typeof segment.credential>;
|
|
25
18
|
//#endregion
|
|
26
19
|
export { segmentIdentify };
|
|
27
20
|
//# sourceMappingURL=identify.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify.d.mts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"identify.d.mts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAErB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"identify.mjs","names":[],"sources":["../../src/actions/identify.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentIdentifyInput,\n typeof SegmentIdentifyOutput,\n typeof segment.credential\n> = 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":";;;AAkBA,MAAa,kBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBkC,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,kKAWH;CACP,QAXmC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAWtE;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"import-historical-data.cjs","names":["z","action"],"sources":["../../src/actions/import-historical-data.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentImportHistoricalDataInput,\n typeof SegmentImportHistoricalDataOutput,\n typeof segment.credential\n> = 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":";;;;AAMA,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,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/import-historical-data.d.ts
|
|
@@ -9,11 +11,7 @@ declare const SegmentImportHistoricalDataInput: z.ZodObject<{
|
|
|
9
11
|
declare const SegmentImportHistoricalDataOutput: z.ZodObject<{
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const segmentImportHistoricalData:
|
|
13
|
-
batch: Record<string, unknown>[];
|
|
14
|
-
context?: Record<string, unknown> | undefined;
|
|
15
|
-
integrations?: Record<string, unknown> | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const segmentImportHistoricalData: AppAction<typeof SegmentImportHistoricalDataInput, typeof SegmentImportHistoricalDataOutput, typeof segment.credential>;
|
|
17
15
|
//#endregion
|
|
18
16
|
export { segmentImportHistoricalData };
|
|
19
17
|
//# sourceMappingURL=import-historical-data.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-historical-data.d.cts","names":[],"sources":["../../src/actions/import-historical-data.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"import-historical-data.d.cts","names":[],"sources":["../../src/actions/import-historical-data.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAKhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/import-historical-data.d.ts
|
|
@@ -9,11 +11,7 @@ declare const SegmentImportHistoricalDataInput: z.ZodObject<{
|
|
|
9
11
|
declare const SegmentImportHistoricalDataOutput: z.ZodObject<{
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const segmentImportHistoricalData:
|
|
13
|
-
batch: Record<string, unknown>[];
|
|
14
|
-
context?: Record<string, unknown> | undefined;
|
|
15
|
-
integrations?: Record<string, unknown> | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const segmentImportHistoricalData: AppAction<typeof SegmentImportHistoricalDataInput, typeof SegmentImportHistoricalDataOutput, typeof segment.credential>;
|
|
17
15
|
//#endregion
|
|
18
16
|
export { segmentImportHistoricalData };
|
|
19
17
|
//# sourceMappingURL=import-historical-data.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-historical-data.d.mts","names":[],"sources":["../../src/actions/import-historical-data.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"import-historical-data.d.mts","names":[],"sources":["../../src/actions/import-historical-data.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAKhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-historical-data.mjs","names":[],"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":"
|
|
1
|
+
{"version":3,"file":"import-historical-data.mjs","names":[],"sources":["../../src/actions/import-historical-data.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentImportHistoricalDataInput,\n typeof SegmentImportHistoricalDataOutput,\n typeof segment.credential\n> = 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":";;;AAeA,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB8C,EAAE,OAAO;EACvD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8MAA8M;EACzQ,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5H,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,kFAaH;CACP,QAb+C,EAAE,OAAO,EACxD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connected-warehouses-from-source.cjs","names":["z","action"],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.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":"
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.cjs","names":["z","action"],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentListConnectedWarehousesFromSourceInput,\n typeof SegmentListConnectedWarehousesFromSourceOutput,\n typeof segment.credential\n> = 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":";;;;AAMA,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C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q/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-connected-warehouses-from-source.d.ts
|
|
@@ -38,13 +40,7 @@ declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
|
|
|
38
40
|
}, z.core.$loose>>;
|
|
39
41
|
}, z.core.$loose>>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const segmentListConnectedWarehousesFromSource:
|
|
42
|
-
sourceId: string;
|
|
43
|
-
pagination: {
|
|
44
|
-
count: number;
|
|
45
|
-
cursor?: string | undefined;
|
|
46
|
-
};
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
|
+
declare const segmentListConnectedWarehousesFromSource: AppAction<typeof SegmentListConnectedWarehousesFromSourceInput, typeof SegmentListConnectedWarehousesFromSourceOutput, typeof segment.credential>;
|
|
48
44
|
//#endregion
|
|
49
45
|
export { segmentListConnectedWarehousesFromSource };
|
|
50
46
|
//# sourceMappingURL=list-connected-warehouses-from-source.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connected-warehouses-from-source.d.cts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.d.cts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;;;cAMa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAwC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9C,wCAAA,EAA0C,SAAA,QAC9C,6CAAA,SACA,8CAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-connected-warehouses-from-source.d.ts
|
|
@@ -38,13 +40,7 @@ declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
|
|
|
38
40
|
}, z.core.$loose>>;
|
|
39
41
|
}, z.core.$loose>>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const segmentListConnectedWarehousesFromSource:
|
|
42
|
-
sourceId: string;
|
|
43
|
-
pagination: {
|
|
44
|
-
count: number;
|
|
45
|
-
cursor?: string | undefined;
|
|
46
|
-
};
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
|
+
declare const segmentListConnectedWarehousesFromSource: AppAction<typeof SegmentListConnectedWarehousesFromSourceInput, typeof SegmentListConnectedWarehousesFromSourceOutput, typeof segment.credential>;
|
|
48
44
|
//#endregion
|
|
49
45
|
export { segmentListConnectedWarehousesFromSource };
|
|
50
46
|
//# sourceMappingURL=list-connected-warehouses-from-source.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connected-warehouses-from-source.d.mts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.d.mts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;;;cAMa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAwC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9C,wCAAA,EAA0C,SAAA,QAC9C,6CAAA,SACA,8CAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.mjs","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentListConnectedWarehousesFromSourceInput,\n typeof SegmentListConnectedWarehousesFromSourceOutput,\n typeof segment.credential\n> = 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":";;;;AAMA,MAAa,gDAAgD,EAAE,OAAO;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAAgE,EAAE,OAAO;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gEAAgE,EAAE,OAAO;CAC7E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;AAC/D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iEAAiE,EAAE,OAAO;CAC9E,MAAM,EAAE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QAb4D,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\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: AppAction<\n typeof SegmentListDeliveryMetricsSummaryFromDestinationInput,\n typeof SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n typeof segment.credential\n> = 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":";;;;AAMA,MAAa,wDAAwDA,IAAAA,EAAE,OAAO;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,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AACf,MAAM,+GAA+GA,IAAAA,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mDAITC,eAAAA,OAAO,0DAA0D;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-delivery-metrics-summary-from-destination.d.ts
|
|
@@ -28,13 +30,7 @@ declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodObjec
|
|
|
28
30
|
}, z.core.$loose>>;
|
|
29
31
|
}, z.core.$loose>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const segmentListDeliveryMetricsSummaryFromDestination:
|
|
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]>;
|
|
33
|
+
declare const segmentListDeliveryMetricsSummaryFromDestination: AppAction<typeof SegmentListDeliveryMetricsSummaryFromDestinationInput, typeof SegmentListDeliveryMetricsSummaryFromDestinationOutput, typeof segment.credential>;
|
|
38
34
|
//#endregion
|
|
39
35
|
export { segmentListDeliveryMetricsSummaryFromDestination };
|
|
40
36
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"list-delivery-metrics-summary-from-destination.d.cts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;;;cAMa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,EAAkD,SAAA,QACtD,qDAAA,SACA,sDAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-delivery-metrics-summary-from-destination.d.ts
|
|
@@ -28,13 +30,7 @@ declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodObjec
|
|
|
28
30
|
}, z.core.$loose>>;
|
|
29
31
|
}, z.core.$loose>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const segmentListDeliveryMetricsSummaryFromDestination:
|
|
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]>;
|
|
33
|
+
declare const segmentListDeliveryMetricsSummaryFromDestination: AppAction<typeof SegmentListDeliveryMetricsSummaryFromDestinationInput, typeof SegmentListDeliveryMetricsSummaryFromDestinationOutput, typeof segment.credential>;
|
|
38
34
|
//#endregion
|
|
39
35
|
export { segmentListDeliveryMetricsSummaryFromDestination };
|
|
40
36
|
//# sourceMappingURL=list-delivery-metrics-summary-from-destination.d.mts.map
|