@keystrokehq/segment 0.0.16 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +10 -104
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-labels-to-source.cjs +27 -0
  7. package/dist/actions/add-labels-to-source.cjs.map +1 -0
  8. package/dist/actions/add-labels-to-source.d.cts +9 -0
  9. package/dist/actions/add-labels-to-source.d.cts.map +1 -0
  10. package/dist/actions/add-labels-to-source.d.mts +9 -0
  11. package/dist/actions/add-labels-to-source.d.mts.map +1 -0
  12. package/dist/actions/add-labels-to-source.mjs +26 -0
  13. package/dist/actions/add-labels-to-source.mjs.map +1 -0
  14. package/dist/actions/alias.cjs +23 -0
  15. package/dist/actions/alias.cjs.map +1 -0
  16. package/dist/actions/alias.d.cts +9 -0
  17. package/dist/actions/alias.d.cts.map +1 -0
  18. package/dist/actions/alias.d.mts +9 -0
  19. package/dist/actions/alias.d.mts.map +1 -0
  20. package/dist/actions/alias.mjs +20 -0
  21. package/dist/actions/alias.mjs.map +1 -0
  22. package/dist/actions/batch.cjs +21 -0
  23. package/dist/actions/batch.cjs.map +1 -0
  24. package/dist/actions/batch.d.cts +9 -0
  25. package/dist/actions/batch.d.cts.map +1 -0
  26. package/dist/actions/batch.d.mts +9 -0
  27. package/dist/actions/batch.d.mts.map +1 -0
  28. package/dist/actions/batch.mjs +18 -0
  29. package/dist/actions/batch.mjs.map +1 -0
  30. package/dist/actions/delete-source.cjs +17 -0
  31. package/dist/actions/delete-source.cjs.map +1 -0
  32. package/dist/actions/delete-source.d.cts +9 -0
  33. package/dist/actions/delete-source.d.cts.map +1 -0
  34. package/dist/actions/delete-source.d.mts +9 -0
  35. package/dist/actions/delete-source.d.mts.map +1 -0
  36. package/dist/actions/delete-source.mjs +16 -0
  37. package/dist/actions/delete-source.mjs.map +1 -0
  38. package/dist/actions/get-daily-per-source-api-calls-usage.cjs +37 -0
  39. package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -0
  40. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +9 -0
  41. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -0
  42. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +9 -0
  43. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -0
  44. package/dist/actions/get-daily-per-source-api-calls-usage.mjs +36 -0
  45. package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -0
  46. package/dist/actions/get-destination.cjs +78 -0
  47. package/dist/actions/get-destination.cjs.map +1 -0
  48. package/dist/actions/get-destination.d.cts +9 -0
  49. package/dist/actions/get-destination.d.cts.map +1 -0
  50. package/dist/actions/get-destination.d.mts +9 -0
  51. package/dist/actions/get-destination.d.mts.map +1 -0
  52. package/dist/actions/get-destination.mjs +77 -0
  53. package/dist/actions/get-destination.mjs.map +1 -0
  54. package/dist/actions/group.cjs +25 -0
  55. package/dist/actions/group.cjs.map +1 -0
  56. package/dist/actions/group.d.cts +9 -0
  57. package/dist/actions/group.d.cts.map +1 -0
  58. package/dist/actions/group.d.mts +9 -0
  59. package/dist/actions/group.d.mts.map +1 -0
  60. package/dist/actions/group.mjs +22 -0
  61. package/dist/actions/group.mjs.map +1 -0
  62. package/dist/actions/identify.cjs +25 -0
  63. package/dist/actions/identify.cjs.map +1 -0
  64. package/dist/actions/identify.d.cts +9 -0
  65. package/dist/actions/identify.d.cts.map +1 -0
  66. package/dist/actions/identify.d.mts +9 -0
  67. package/dist/actions/identify.d.mts.map +1 -0
  68. package/dist/actions/identify.mjs +22 -0
  69. package/dist/actions/identify.mjs.map +1 -0
  70. package/dist/actions/import-historical-data.cjs +20 -0
  71. package/dist/actions/import-historical-data.cjs.map +1 -0
  72. package/dist/actions/import-historical-data.d.cts +9 -0
  73. package/dist/actions/import-historical-data.d.cts.map +1 -0
  74. package/dist/actions/import-historical-data.d.mts +9 -0
  75. package/dist/actions/import-historical-data.d.mts.map +1 -0
  76. package/dist/actions/import-historical-data.mjs +17 -0
  77. package/dist/actions/import-historical-data.mjs.map +1 -0
  78. package/dist/actions/index.cjs +35 -0
  79. package/dist/actions/index.d.cts +18 -0
  80. package/dist/actions/index.d.mts +18 -0
  81. package/dist/actions/index.mjs +18 -0
  82. package/dist/actions/list-connected-warehouses-from-source.cjs +55 -0
  83. package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -0
  84. package/dist/actions/list-connected-warehouses-from-source.d.cts +9 -0
  85. package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -0
  86. package/dist/actions/list-connected-warehouses-from-source.d.mts +9 -0
  87. package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -0
  88. package/dist/actions/list-connected-warehouses-from-source.mjs +54 -0
  89. package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -0
  90. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +41 -0
  91. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -0
  92. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +9 -0
  93. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -0
  94. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +9 -0
  95. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -0
  96. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +40 -0
  97. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -0
  98. package/dist/actions/list-schema-settings-in-source.cjs +44 -0
  99. package/dist/actions/list-schema-settings-in-source.cjs.map +1 -0
  100. package/dist/actions/list-schema-settings-in-source.d.cts +9 -0
  101. package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -0
  102. package/dist/actions/list-schema-settings-in-source.d.mts +9 -0
  103. package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -0
  104. package/dist/actions/list-schema-settings-in-source.mjs +43 -0
  105. package/dist/actions/list-schema-settings-in-source.mjs.map +1 -0
  106. package/dist/actions/page.cjs +26 -0
  107. package/dist/actions/page.cjs.map +1 -0
  108. package/dist/actions/page.d.cts +9 -0
  109. package/dist/actions/page.d.cts.map +1 -0
  110. package/dist/actions/page.d.mts +9 -0
  111. package/dist/actions/page.d.mts.map +1 -0
  112. package/dist/actions/page.mjs +23 -0
  113. package/dist/actions/page.mjs.map +1 -0
  114. package/dist/actions/remove-source-write-key.cjs +20 -0
  115. package/dist/actions/remove-source-write-key.cjs.map +1 -0
  116. package/dist/actions/remove-source-write-key.d.cts +9 -0
  117. package/dist/actions/remove-source-write-key.d.cts.map +1 -0
  118. package/dist/actions/remove-source-write-key.d.mts +9 -0
  119. package/dist/actions/remove-source-write-key.d.mts.map +1 -0
  120. package/dist/actions/remove-source-write-key.mjs +19 -0
  121. package/dist/actions/remove-source-write-key.mjs.map +1 -0
  122. package/dist/actions/screen.cjs +25 -0
  123. package/dist/actions/screen.cjs.map +1 -0
  124. package/dist/actions/screen.d.cts +9 -0
  125. package/dist/actions/screen.d.cts.map +1 -0
  126. package/dist/actions/screen.d.mts +9 -0
  127. package/dist/actions/screen.d.mts.map +1 -0
  128. package/dist/actions/screen.mjs +22 -0
  129. package/dist/actions/screen.mjs.map +1 -0
  130. package/dist/actions/track.cjs +25 -0
  131. package/dist/actions/track.cjs.map +1 -0
  132. package/dist/actions/track.d.cts +9 -0
  133. package/dist/actions/track.d.cts.map +1 -0
  134. package/dist/actions/track.d.mts +9 -0
  135. package/dist/actions/track.d.mts.map +1 -0
  136. package/dist/actions/track.mjs +22 -0
  137. package/dist/actions/track.mjs.map +1 -0
  138. package/dist/actions/update-source.cjs +51 -0
  139. package/dist/actions/update-source.cjs.map +1 -0
  140. package/dist/actions/update-source.d.cts +9 -0
  141. package/dist/actions/update-source.d.cts.map +1 -0
  142. package/dist/actions/update-source.d.mts +9 -0
  143. package/dist/actions/update-source.d.mts.map +1 -0
  144. package/dist/actions/update-source.mjs +50 -0
  145. package/dist/actions/update-source.mjs.map +1 -0
  146. package/dist/app.cjs +9 -0
  147. package/dist/app.cjs.map +1 -0
  148. package/dist/app.d.cts +5 -0
  149. package/dist/app.d.cts.map +1 -0
  150. package/dist/app.d.mts +5 -0
  151. package/dist/app.d.mts.map +1 -0
  152. package/dist/app.mjs +10 -0
  153. package/dist/app.mjs.map +1 -0
  154. package/dist/catalog.cjs +15 -0
  155. package/dist/catalog.cjs.map +1 -0
  156. package/dist/catalog.d.cts +14 -0
  157. package/dist/catalog.d.cts.map +1 -0
  158. package/dist/catalog.d.mts +14 -0
  159. package/dist/catalog.d.mts.map +1 -0
  160. package/dist/catalog.mjs +15 -0
  161. package/dist/catalog.mjs.map +1 -0
  162. package/dist/execute.cjs +18 -0
  163. package/dist/execute.cjs.map +1 -0
  164. package/dist/execute.mjs +18 -0
  165. package/dist/execute.mjs.map +1 -0
  166. package/dist/index.cjs +40 -0
  167. package/dist/index.d.cts +20 -0
  168. package/dist/index.d.mts +20 -4
  169. package/dist/index.mjs +21 -5
  170. package/package.json +31 -60
  171. package/LICENSE +0 -21
  172. package/dist/client-DQfeZzLR.mjs +0 -362
  173. package/dist/common-DUU0airJ.mjs +0 -56
  174. package/dist/credential-sets/index.d.mts +0 -2
  175. package/dist/credential-sets/index.mjs +0 -3
  176. package/dist/operations/index.d.mts +0 -2
  177. package/dist/operations/index.mjs +0 -3
  178. package/dist/schemas/index.d.mts +0 -57
  179. package/dist/schemas/index.mjs +0 -3
  180. package/dist/segment.credential-set-BTTrkHO7.mjs +0 -33
  181. package/dist/segment.credential-set-BgROtI_9.d.mts +0 -57
  182. package/dist/triggers/index.d.mts +0 -110
  183. package/dist/triggers/index.mjs +0 -367
  184. package/dist/workspace-list-spaces.operation-DKWX3vl5.mjs +0 -5200
  185. package/dist/workspace-list-spaces.operation-DNIUfIuv.d.mts +0 -6548
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-daily-per-source-api-calls-usage.d.ts
4
+ declare const SegmentGetDailyPerSourceApiCallsUsageInput: z.ZodTypeAny;
5
+ declare const SegmentGetDailyPerSourceApiCallsUsageOutput: z.ZodTypeAny;
6
+ declare const segmentGetDailyPerSourceApiCallsUsage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentGetDailyPerSourceApiCallsUsage };
9
+ //# sourceMappingURL=get-daily-per-source-api-calls-usage.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-daily-per-source-api-calls-usage.d.mts","names":[],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAMiB;AAAA,cAgB/D,2CAAA,EAA6C,CAAA,CAAE,UAE1D;AAAA,cAEW,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,36 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-daily-per-source-api-calls-usage.ts
4
+ const SegmentGetDailyPerSourceApiCallsUsageInput = z.object({
5
+ period: z.string().describe("Start of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'."),
6
+ pagination: z.object({
7
+ count: z.number().int().describe("Page size (number of records to return). Defaults to 200 if omitted.").optional(),
8
+ cursor: z.string().describe("Cursor token for the next page of results.").optional()
9
+ }).describe("Pagination parameters for querying source daily API calls usage.").optional()
10
+ }).describe("Request parameters to fetch daily API call counts per source.");
11
+ const SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = z.object({
12
+ next: z.string().describe("Cursor for the next page, if any.").nullable().optional(),
13
+ current: z.string().describe("Cursor for the current page."),
14
+ previous: z.string().describe("Cursor for the previous page, if any.").nullable().optional(),
15
+ totalEntries: z.number().int().describe("Total number of records available.")
16
+ });
17
+ const SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({
18
+ apiCalls: z.string().describe("API call count for the source and day."),
19
+ sourceId: z.string().describe("Source identifier."),
20
+ timestamp: z.string().describe("Date this usage applies to in ISO-8601 format.")
21
+ });
22
+ const SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({
23
+ pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),
24
+ dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe("List of daily API call usage records per source.")
25
+ });
26
+ const segmentGetDailyPerSourceApiCallsUsage = action("SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE", {
27
+ slug: "segment-get-daily-per-source-api-calls-usage",
28
+ name: "Get Daily Per Source API Calls Usage",
29
+ description: "Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.",
30
+ input: SegmentGetDailyPerSourceApiCallsUsageInput,
31
+ output: z.object({ data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable() })
32
+ });
33
+ //#endregion
34
+ export { segmentGetDailyPerSourceApiCallsUsage };
35
+
36
+ //# sourceMappingURL=get-daily-per-source-api-calls-usage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-daily-per-source-api-calls-usage.mjs","names":[],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDailyPerSourceApiCallsUsageInput: z.ZodTypeAny = z.object({\n period: z.string().describe(\"Start of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Page size (number of records to return). Defaults to 200 if omitted.\").optional(),\n cursor: z.string().describe(\"Cursor token for the next page of results.\").optional(),\n}).describe(\"Pagination parameters for querying source daily API calls usage.\").optional(),\n}).describe(\"Request parameters to fetch daily API call counts per source.\");\nconst SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n current: z.string().describe(\"Cursor for the current page.\"),\n previous: z.string().describe(\"Cursor for the previous page, if any.\").nullable().optional(),\n totalEntries: z.number().int().describe(\"Total number of records available.\"),\n});\nconst SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema: z.ZodTypeAny = z.object({\n apiCalls: z.string().describe(\"API call count for the source and day.\"),\n sourceId: z.string().describe(\"Source identifier.\"),\n timestamp: z.string().describe(\"Date this usage applies to in ISO-8601 format.\"),\n});\nconst SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema: z.ZodTypeAny = z.object({\n pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),\n dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe(\"List of daily API call usage records per source.\"),\n});\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput: z.ZodTypeAny = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n});\n\nexport const segmentGetDailyPerSourceApiCallsUsage = action(\"SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE\", {\n slug: \"segment-get-daily-per-source-api-calls-usage\",\n name: \"Get Daily Per Source API Calls Usage\",\n description: \"Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.\",\n input: SegmentGetDailyPerSourceApiCallsUsageInput,\n output: SegmentGetDailyPerSourceApiCallsUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2D,EAAE,OAAO;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC3G,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAClH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6DAA2E,EAAE,OAAO;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC9E,CAAC;AACD,MAAM,wEAAsF,EAAE,OAAO;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AACjF,CAAC;AACD,MAAM,yFAAuG,EAAE,OAAO;CACpH,YAAY,2DAA2D,SAAS;CAChF,6BAA6B,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kDAAkD;AACzK,CAAC;AAKD,MAAa,wCAAwC,OAAO,gDAAgD;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuE,EAAE,OAAO,EAChF,MAAM,uFAAuF,SAAS,EACxG,CAOU;AACV,CAAC"}
@@ -0,0 +1,78 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-destination.ts
4
+ const SegmentGetDestinationInput = zod.z.object({ destinationId: zod.z.string().describe("The destination’s unique ID.") }).describe("Request model for retrieving a Destination by its ID.");
5
+ const SegmentGetDestination_LogosSchema = zod.z.object({
6
+ mark: zod.z.string().describe("URL for the alternate logo (mark).").nullable().optional(),
7
+ "default": zod.z.string().describe("URL for the default logo.").nullable().optional()
8
+ });
9
+ const SegmentGetDestination_ContactSchema = zod.z.object({
10
+ name: zod.z.string(),
11
+ role: zod.z.string(),
12
+ email: zod.z.string(),
13
+ isPrimary: zod.z.boolean()
14
+ });
15
+ const SegmentGetDestination_SupportedMethodsSchema = zod.z.object({
16
+ alias: zod.z.boolean(),
17
+ group: zod.z.boolean(),
18
+ track: zod.z.boolean(),
19
+ identify: zod.z.boolean(),
20
+ pageview: zod.z.boolean()
21
+ });
22
+ const SegmentGetDestination_SupportedFeaturesSchema = zod.z.object({
23
+ replay: zod.z.boolean(),
24
+ browserUnbundling: zod.z.boolean(),
25
+ cloudModeInstances: zod.z.string().describe("Cloud mode instance count as string.").nullable().optional(),
26
+ deviceModeInstances: zod.z.string().describe("Device mode instance count as string.").nullable().optional(),
27
+ browserUnbundlingPublic: zod.z.boolean()
28
+ });
29
+ const SegmentGetDestination_SupportedPlatformsSchema = zod.z.object({
30
+ mobile: zod.z.boolean(),
31
+ server: zod.z.boolean(),
32
+ browser: zod.z.boolean(),
33
+ warehouse: zod.z.boolean(),
34
+ cloudAppObject: zod.z.boolean()
35
+ });
36
+ const SegmentGetDestination_MetadataSchema = zod.z.object({
37
+ id: zod.z.string(),
38
+ name: zod.z.string(),
39
+ slug: zod.z.string(),
40
+ logos: SegmentGetDestination_LogosSchema.nullable(),
41
+ status: zod.z.string(),
42
+ actions: zod.z.array(zod.z.unknown()),
43
+ options: zod.z.array(zod.z.unknown()),
44
+ presets: zod.z.array(zod.z.unknown()),
45
+ website: zod.z.string().nullable().optional(),
46
+ contacts: zod.z.array(SegmentGetDestination_ContactSchema),
47
+ categories: zod.z.array(zod.z.string()),
48
+ components: zod.z.array(zod.z.unknown()),
49
+ description: zod.z.string().nullable().optional(),
50
+ partnerOwned: zod.z.boolean(),
51
+ previousNames: zod.z.array(zod.z.string()),
52
+ regionEndpoints: zod.z.array(zod.z.string()),
53
+ supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),
54
+ supportedRegions: zod.z.array(zod.z.string()),
55
+ supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),
56
+ supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable()
57
+ });
58
+ const SegmentGetDestination_DestinationSchema = zod.z.object({
59
+ id: zod.z.string(),
60
+ name: zod.z.string(),
61
+ enabled: zod.z.boolean(),
62
+ metadata: SegmentGetDestination_MetadataSchema.nullable(),
63
+ settings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration settings for this Destination instance"),
64
+ sourceId: zod.z.string()
65
+ });
66
+ const SegmentGetDestination_GetDestinationDataSchema = zod.z.object({ destination: SegmentGetDestination_DestinationSchema.nullable() });
67
+ const SegmentGetDestinationOutput = zod.z.object({ data: SegmentGetDestination_GetDestinationDataSchema.nullable() });
68
+ const segmentGetDestination = require_action.action("SEGMENT_GET_DESTINATION", {
69
+ slug: "segment-get-destination",
70
+ name: "Get Destination",
71
+ 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.",
72
+ input: SegmentGetDestinationInput,
73
+ output: SegmentGetDestinationOutput
74
+ });
75
+ //#endregion
76
+ exports.segmentGetDestination = segmentGetDestination;
77
+
78
+ //# sourceMappingURL=get-destination.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string(),\n role: z.string(),\n email: z.string(),\n isPrimary: z.boolean(),\n});\nconst SegmentGetDestination_SupportedMethodsSchema: z.ZodTypeAny = z.object({\n alias: z.boolean(),\n group: z.boolean(),\n track: z.boolean(),\n identify: z.boolean(),\n pageview: z.boolean(),\n});\nconst SegmentGetDestination_SupportedFeaturesSchema: z.ZodTypeAny = z.object({\n replay: z.boolean(),\n browserUnbundling: z.boolean(),\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(),\n});\nconst SegmentGetDestination_SupportedPlatformsSchema: z.ZodTypeAny = z.object({\n mobile: z.boolean(),\n server: z.boolean(),\n browser: z.boolean(),\n warehouse: z.boolean(),\n cloudAppObject: z.boolean(),\n});\nconst SegmentGetDestination_MetadataSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n name: z.string(),\n slug: z.string(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string(),\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(),\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.ZodTypeAny = z.object({\n id: z.string(),\n name: z.string(),\n enabled: z.boolean(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string(),\n});\nconst SegmentGetDestination_GetDestinationDataSchema: z.ZodTypeAny = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n});\nexport const SegmentGetDestinationOutput: z.ZodTypeAny = 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":"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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-destination.d.ts
4
+ declare const SegmentGetDestinationInput: z.ZodTypeAny;
5
+ declare const SegmentGetDestinationOutput: z.ZodTypeAny;
6
+ declare const segmentGetDestination: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentGetDestination };
9
+ //# sourceMappingURL=get-destination.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-destination.d.cts","names":[],"sources":["../../src/actions/get-destination.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEyB;AAAA,cAiEvD,2BAAA,EAA6B,CAAA,CAAE,UAE1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-destination.d.ts
4
+ declare const SegmentGetDestinationInput: z.ZodTypeAny;
5
+ declare const SegmentGetDestinationOutput: z.ZodTypeAny;
6
+ declare const segmentGetDestination: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentGetDestination };
9
+ //# sourceMappingURL=get-destination.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-destination.d.mts","names":[],"sources":["../../src/actions/get-destination.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEyB;AAAA,cAiEvD,2BAAA,EAA6B,CAAA,CAAE,UAE1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,77 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-destination.ts
4
+ const SegmentGetDestinationInput = z.object({ destinationId: z.string().describe("The destination’s unique ID.") }).describe("Request model for retrieving a Destination by its ID.");
5
+ const SegmentGetDestination_LogosSchema = z.object({
6
+ mark: z.string().describe("URL for the alternate logo (mark).").nullable().optional(),
7
+ "default": z.string().describe("URL for the default logo.").nullable().optional()
8
+ });
9
+ const SegmentGetDestination_ContactSchema = z.object({
10
+ name: z.string(),
11
+ role: z.string(),
12
+ email: z.string(),
13
+ isPrimary: z.boolean()
14
+ });
15
+ const SegmentGetDestination_SupportedMethodsSchema = z.object({
16
+ alias: z.boolean(),
17
+ group: z.boolean(),
18
+ track: z.boolean(),
19
+ identify: z.boolean(),
20
+ pageview: z.boolean()
21
+ });
22
+ const SegmentGetDestination_SupportedFeaturesSchema = z.object({
23
+ replay: z.boolean(),
24
+ browserUnbundling: z.boolean(),
25
+ cloudModeInstances: z.string().describe("Cloud mode instance count as string.").nullable().optional(),
26
+ deviceModeInstances: z.string().describe("Device mode instance count as string.").nullable().optional(),
27
+ browserUnbundlingPublic: z.boolean()
28
+ });
29
+ const SegmentGetDestination_SupportedPlatformsSchema = z.object({
30
+ mobile: z.boolean(),
31
+ server: z.boolean(),
32
+ browser: z.boolean(),
33
+ warehouse: z.boolean(),
34
+ cloudAppObject: z.boolean()
35
+ });
36
+ const SegmentGetDestination_MetadataSchema = z.object({
37
+ id: z.string(),
38
+ name: z.string(),
39
+ slug: z.string(),
40
+ logos: SegmentGetDestination_LogosSchema.nullable(),
41
+ status: z.string(),
42
+ actions: z.array(z.unknown()),
43
+ options: z.array(z.unknown()),
44
+ presets: z.array(z.unknown()),
45
+ website: z.string().nullable().optional(),
46
+ contacts: z.array(SegmentGetDestination_ContactSchema),
47
+ categories: z.array(z.string()),
48
+ components: z.array(z.unknown()),
49
+ description: z.string().nullable().optional(),
50
+ partnerOwned: z.boolean(),
51
+ previousNames: z.array(z.string()),
52
+ regionEndpoints: z.array(z.string()),
53
+ supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),
54
+ supportedRegions: z.array(z.string()),
55
+ supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),
56
+ supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable()
57
+ });
58
+ const SegmentGetDestination_DestinationSchema = z.object({
59
+ id: z.string(),
60
+ name: z.string(),
61
+ enabled: z.boolean(),
62
+ metadata: SegmentGetDestination_MetadataSchema.nullable(),
63
+ settings: z.record(z.string(), z.unknown()).describe("Configuration settings for this Destination instance"),
64
+ sourceId: z.string()
65
+ });
66
+ const SegmentGetDestination_GetDestinationDataSchema = z.object({ destination: SegmentGetDestination_DestinationSchema.nullable() });
67
+ const segmentGetDestination = action("SEGMENT_GET_DESTINATION", {
68
+ slug: "segment-get-destination",
69
+ name: "Get Destination",
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
+ input: SegmentGetDestinationInput,
72
+ output: z.object({ data: SegmentGetDestination_GetDestinationDataSchema.nullable() })
73
+ });
74
+ //#endregion
75
+ export { segmentGetDestination };
76
+
77
+ //# sourceMappingURL=get-destination.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string(),\n role: z.string(),\n email: z.string(),\n isPrimary: z.boolean(),\n});\nconst SegmentGetDestination_SupportedMethodsSchema: z.ZodTypeAny = z.object({\n alias: z.boolean(),\n group: z.boolean(),\n track: z.boolean(),\n identify: z.boolean(),\n pageview: z.boolean(),\n});\nconst SegmentGetDestination_SupportedFeaturesSchema: z.ZodTypeAny = z.object({\n replay: z.boolean(),\n browserUnbundling: z.boolean(),\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(),\n});\nconst SegmentGetDestination_SupportedPlatformsSchema: z.ZodTypeAny = z.object({\n mobile: z.boolean(),\n server: z.boolean(),\n browser: z.boolean(),\n warehouse: z.boolean(),\n cloudAppObject: z.boolean(),\n});\nconst SegmentGetDestination_MetadataSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n name: z.string(),\n slug: z.string(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string(),\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(),\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.ZodTypeAny = z.object({\n id: z.string(),\n name: z.string(),\n enabled: z.boolean(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string(),\n});\nconst SegmentGetDestination_GetDestinationDataSchema: z.ZodTypeAny = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n});\nexport const SegmentGetDestinationOutput: z.ZodTypeAny = 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":"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"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/group.ts
4
+ const SegmentGroupInput = zod.z.object({
5
+ traits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of group traits (e.g., name, industry, employees).").optional(),
6
+ userId: zod.z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
7
+ context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
8
+ groupId: zod.z.string().describe("Unique identifier for the group."),
9
+ writeKey: zod.z.string().describe("Write key for authentication if not using OAuth Bearer token.").optional(),
10
+ timestamp: zod.z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
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.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
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.object({}).describe("Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.");
15
+ const segmentGroup = require_action.action("SEGMENT_GROUP", {
16
+ slug: "segment-group",
17
+ name: "Segment Group",
18
+ description: "Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.",
19
+ input: SegmentGroupInput,
20
+ output: SegmentGroupOutput
21
+ });
22
+ //#endregion
23
+ exports.segmentGroup = segmentGroup;
24
+
25
+ //# sourceMappingURL=group.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({}).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,oBAAkCA,IAAAA,EAAE,OAAO;CACtD,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAa,qBAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAE/K,MAAa,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/group.d.ts
4
+ declare const SegmentGroupInput: z.ZodTypeAny;
5
+ declare const SegmentGroupOutput: z.ZodTypeAny;
6
+ declare const segmentGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentGroup };
9
+ //# sourceMappingURL=group.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.cts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UASyH;AAAA,cAC9I,kBAAA,EAAoB,CAAA,CAAE,UAA6I;AAAA,cAEnK,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/group.d.ts
4
+ declare const SegmentGroupInput: z.ZodTypeAny;
5
+ declare const SegmentGroupOutput: z.ZodTypeAny;
6
+ declare const segmentGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentGroup };
9
+ //# sourceMappingURL=group.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.mts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UASyH;AAAA,cAC9I,kBAAA,EAAoB,CAAA,CAAE,UAA6I;AAAA,cAEnK,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,22 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const segmentGroup = action("SEGMENT_GROUP", {
4
+ slug: "segment-group",
5
+ name: "Segment Group",
6
+ description: "Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.",
7
+ input: z.object({
8
+ traits: z.record(z.string(), z.unknown()).describe("Free-form dictionary of group traits (e.g., name, industry, employees).").optional(),
9
+ userId: z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
10
+ context: z.record(z.string(), z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
11
+ groupId: z.string().describe("Unique identifier for the group."),
12
+ writeKey: z.string().describe("Write key for authentication if not using OAuth Bearer token.").optional(),
13
+ timestamp: z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
14
+ anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
15
+ integrations: z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
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.object({}).describe("Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.")
18
+ });
19
+ //#endregion
20
+ export { segmentGroup };
21
+
22
+ //# sourceMappingURL=group.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({}).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,OAhB6C,EAAE,OAAO;EACtD,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,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,8IAOH;CACP,QAP8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAO5D;AACV,CAAC"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/identify.ts
4
+ const SegmentIdentifyInput = zod.z.object({
5
+ traits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of user traits (e.g., email, name, plan).").optional(),
6
+ userId: zod.z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
7
+ context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
8
+ writeKey: zod.z.string().describe("Write key for authentication if not using Basic or OAuth headers.").optional(),
9
+ messageId: zod.z.string().describe("Unique id for deduplication; Segment auto-generates one if omitted.").optional(),
10
+ timestamp: zod.z.string().describe("ISO-8601 timestamp when the identification occurred; if omitted, server time is used.").optional(),
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.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
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.object({}).describe("Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.");
15
+ const segmentIdentify = require_action.action("SEGMENT_IDENTIFY", {
16
+ slug: "segment-identify",
17
+ name: "Segment Identify",
18
+ description: "Tool to identify a user and set/update traits via Segment HTTP Tracking API.",
19
+ input: SegmentIdentifyInput,
20
+ output: SegmentIdentifyOutput
21
+ });
22
+ //#endregion
23
+ exports.segmentIdentify = segmentIdentify;
24
+
25
+ //# sourceMappingURL=identify.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({}).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,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAElL,MAAa,kBAAkBC,eAAAA,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/identify.d.ts
4
+ declare const SegmentIdentifyInput: z.ZodTypeAny;
5
+ declare const SegmentIdentifyOutput: z.ZodTypeAny;
6
+ declare const segmentIdentify: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentIdentify };
9
+ //# sourceMappingURL=identify.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identify.d.cts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAS0I;AAAA,cAClK,qBAAA,EAAuB,CAAA,CAAE,UAA6I;AAAA,cAEtK,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/identify.d.ts
4
+ declare const SegmentIdentifyInput: z.ZodTypeAny;
5
+ declare const SegmentIdentifyOutput: z.ZodTypeAny;
6
+ declare const segmentIdentify: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentIdentify };
9
+ //# sourceMappingURL=identify.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identify.d.mts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAS0I;AAAA,cAClK,qBAAA,EAAuB,CAAA,CAAE,UAA6I;AAAA,cAEtK,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,22 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const segmentIdentify = action("SEGMENT_IDENTIFY", {
4
+ slug: "segment-identify",
5
+ name: "Segment Identify",
6
+ description: "Tool to identify a user and set/update traits via Segment HTTP Tracking API.",
7
+ input: z.object({
8
+ traits: z.record(z.string(), z.unknown()).describe("Free-form dictionary of user traits (e.g., email, name, plan).").optional(),
9
+ userId: z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
10
+ context: z.record(z.string(), z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
11
+ writeKey: z.string().describe("Write key for authentication if not using Basic or OAuth headers.").optional(),
12
+ messageId: z.string().describe("Unique id for deduplication; Segment auto-generates one if omitted.").optional(),
13
+ timestamp: z.string().describe("ISO-8601 timestamp when the identification occurred; if omitted, server time is used.").optional(),
14
+ anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
15
+ integrations: z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
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.object({}).describe("Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.")
18
+ });
19
+ //#endregion
20
+ export { segmentIdentify };
21
+
22
+ //# sourceMappingURL=identify.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({}).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,OAhBgD,EAAE,OAAO;EACzD,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,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,kKAOH;CACP,QAPiD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAO/D;AACV,CAAC"}
@@ -0,0 +1,20 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/import-historical-data.ts
4
+ const SegmentImportHistoricalDataInput = zod.z.object({
5
+ batch: zod.z.array(zod.z.record(zod.z.string(), zod.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."),
6
+ context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional top-level context merged into each call's context.").optional(),
7
+ integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional top-level integrations merged into each call's integrations.").optional()
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.") }).describe("Response schema for the import call.");
10
+ const segmentImportHistoricalData = require_action.action("SEGMENT_IMPORT_HISTORICAL_DATA", {
11
+ slug: "segment-import-historical-data",
12
+ name: "Import Historical Data",
13
+ 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.",
14
+ input: SegmentImportHistoricalDataInput,
15
+ output: SegmentImportHistoricalDataOutput
16
+ });
17
+ //#endregion
18
+ exports.segmentImportHistoricalData = segmentImportHistoricalData;
19
+
20
+ //# sourceMappingURL=import-historical-data.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Indicates whether the import was successful.\"),\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,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,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,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,EAC9E,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/import-historical-data.d.ts
4
+ declare const SegmentImportHistoricalDataInput: z.ZodTypeAny;
5
+ declare const SegmentImportHistoricalDataOutput: z.ZodTypeAny;
6
+ declare const segmentImportHistoricalData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentImportHistoricalData };
9
+ //# sourceMappingURL=import-historical-data.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-historical-data.d.cts","names":[],"sources":["../../src/actions/import-historical-data.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAI8C;AAAA,cAClF,iCAAA,EAAmC,CAAA,CAAE,UAEC;AAAA,cAEtC,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/import-historical-data.d.ts
4
+ declare const SegmentImportHistoricalDataInput: z.ZodTypeAny;
5
+ declare const SegmentImportHistoricalDataOutput: z.ZodTypeAny;
6
+ declare const segmentImportHistoricalData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { segmentImportHistoricalData };
9
+ //# sourceMappingURL=import-historical-data.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-historical-data.d.mts","names":[],"sources":["../../src/actions/import-historical-data.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAI8C;AAAA,cAClF,iCAAA,EAAmC,CAAA,CAAE,UAEC;AAAA,cAEtC,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,17 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const segmentImportHistoricalData = action("SEGMENT_IMPORT_HISTORICAL_DATA", {
4
+ slug: "segment-import-historical-data",
5
+ name: "Import Historical Data",
6
+ 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.",
7
+ input: z.object({
8
+ 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."),
9
+ context: z.record(z.string(), z.unknown()).describe("Optional top-level context merged into each call's context.").optional(),
10
+ integrations: z.record(z.string(), z.unknown()).describe("Optional top-level integrations merged into each call's integrations.").optional()
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.") }).describe("Response schema for the import call.")
13
+ });
14
+ //#endregion
15
+ export { segmentImportHistoricalData };
16
+
17
+ //# sourceMappingURL=import-historical-data.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Indicates whether the import was successful.\"),\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":";;AAaA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4D,EAAE,OAAO;EACrE,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,kFASH;CACP,QAT6D,EAAE,OAAO,EACtE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,EAC9E,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_add_labels_to_source = require("./add-labels-to-source.cjs");
3
+ const require_alias = require("./alias.cjs");
4
+ const require_batch = require("./batch.cjs");
5
+ const require_delete_source = require("./delete-source.cjs");
6
+ const require_get_daily_per_source_api_calls_usage = require("./get-daily-per-source-api-calls-usage.cjs");
7
+ const require_get_destination = require("./get-destination.cjs");
8
+ const require_group = require("./group.cjs");
9
+ const require_identify = require("./identify.cjs");
10
+ const require_import_historical_data = require("./import-historical-data.cjs");
11
+ const require_list_connected_warehouses_from_source = require("./list-connected-warehouses-from-source.cjs");
12
+ const require_list_delivery_metrics_summary_from_destination = require("./list-delivery-metrics-summary-from-destination.cjs");
13
+ const require_list_schema_settings_in_source = require("./list-schema-settings-in-source.cjs");
14
+ const require_page = require("./page.cjs");
15
+ const require_remove_source_write_key = require("./remove-source-write-key.cjs");
16
+ const require_screen = require("./screen.cjs");
17
+ const require_track = require("./track.cjs");
18
+ const require_update_source = require("./update-source.cjs");
19
+ exports.segmentAddLabelsToSource = require_add_labels_to_source.segmentAddLabelsToSource;
20
+ exports.segmentAlias = require_alias.segmentAlias;
21
+ exports.segmentBatch = require_batch.segmentBatch;
22
+ exports.segmentDeleteSource = require_delete_source.segmentDeleteSource;
23
+ exports.segmentGetDailyPerSourceApiCallsUsage = require_get_daily_per_source_api_calls_usage.segmentGetDailyPerSourceApiCallsUsage;
24
+ exports.segmentGetDestination = require_get_destination.segmentGetDestination;
25
+ exports.segmentGroup = require_group.segmentGroup;
26
+ exports.segmentIdentify = require_identify.segmentIdentify;
27
+ exports.segmentImportHistoricalData = require_import_historical_data.segmentImportHistoricalData;
28
+ exports.segmentListConnectedWarehousesFromSource = require_list_connected_warehouses_from_source.segmentListConnectedWarehousesFromSource;
29
+ exports.segmentListDeliveryMetricsSummaryFromDestination = require_list_delivery_metrics_summary_from_destination.segmentListDeliveryMetricsSummaryFromDestination;
30
+ exports.segmentListSchemaSettingsInSource = require_list_schema_settings_in_source.segmentListSchemaSettingsInSource;
31
+ exports.segmentPage = require_page.segmentPage;
32
+ exports.segmentRemoveSourceWriteKey = require_remove_source_write_key.segmentRemoveSourceWriteKey;
33
+ exports.segmentScreen = require_screen.segmentScreen;
34
+ exports.segmentTrack = require_track.segmentTrack;
35
+ exports.segmentUpdateSource = require_update_source.segmentUpdateSource;