@keystrokehq/segment 0.1.5 → 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.
Files changed (149) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-labels-to-source.cjs +1 -0
  4. package/dist/actions/add-labels-to-source.cjs.map +1 -1
  5. package/dist/actions/add-labels-to-source.d.cts +3 -22
  6. package/dist/actions/add-labels-to-source.d.cts.map +1 -1
  7. package/dist/actions/add-labels-to-source.d.mts +3 -22
  8. package/dist/actions/add-labels-to-source.d.mts.map +1 -1
  9. package/dist/actions/add-labels-to-source.mjs +1 -0
  10. package/dist/actions/add-labels-to-source.mjs.map +1 -1
  11. package/dist/actions/alias.cjs +1 -0
  12. package/dist/actions/alias.cjs.map +1 -1
  13. package/dist/actions/alias.d.cts +3 -22
  14. package/dist/actions/alias.d.cts.map +1 -1
  15. package/dist/actions/alias.d.mts +3 -22
  16. package/dist/actions/alias.d.mts.map +1 -1
  17. package/dist/actions/alias.mjs +1 -0
  18. package/dist/actions/alias.mjs.map +1 -1
  19. package/dist/actions/batch.cjs +1 -0
  20. package/dist/actions/batch.cjs.map +1 -1
  21. package/dist/actions/batch.d.cts +3 -20
  22. package/dist/actions/batch.d.cts.map +1 -1
  23. package/dist/actions/batch.d.mts +3 -20
  24. package/dist/actions/batch.d.mts.map +1 -1
  25. package/dist/actions/batch.mjs +1 -0
  26. package/dist/actions/batch.mjs.map +1 -1
  27. package/dist/actions/delete-source.cjs +1 -0
  28. package/dist/actions/delete-source.cjs.map +1 -1
  29. package/dist/actions/delete-source.d.cts +3 -17
  30. package/dist/actions/delete-source.d.cts.map +1 -1
  31. package/dist/actions/delete-source.d.mts +3 -17
  32. package/dist/actions/delete-source.d.mts.map +1 -1
  33. package/dist/actions/delete-source.mjs +1 -0
  34. package/dist/actions/delete-source.mjs.map +1 -1
  35. package/dist/actions/get-daily-per-source-api-calls-usage.cjs +1 -0
  36. package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -1
  37. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +3 -21
  38. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -1
  39. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +3 -21
  40. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -1
  41. package/dist/actions/get-daily-per-source-api-calls-usage.mjs +1 -0
  42. package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
  43. package/dist/actions/get-destination.cjs +1 -0
  44. package/dist/actions/get-destination.cjs.map +1 -1
  45. package/dist/actions/get-destination.d.cts +3 -17
  46. package/dist/actions/get-destination.d.cts.map +1 -1
  47. package/dist/actions/get-destination.d.mts +3 -17
  48. package/dist/actions/get-destination.d.mts.map +1 -1
  49. package/dist/actions/get-destination.mjs +1 -0
  50. package/dist/actions/get-destination.mjs.map +1 -1
  51. package/dist/actions/group.cjs +1 -0
  52. package/dist/actions/group.cjs.map +1 -1
  53. package/dist/actions/group.d.cts +3 -24
  54. package/dist/actions/group.d.cts.map +1 -1
  55. package/dist/actions/group.d.mts +3 -24
  56. package/dist/actions/group.d.mts.map +1 -1
  57. package/dist/actions/group.mjs +1 -0
  58. package/dist/actions/group.mjs.map +1 -1
  59. package/dist/actions/identify.cjs +1 -0
  60. package/dist/actions/identify.cjs.map +1 -1
  61. package/dist/actions/identify.d.cts +3 -24
  62. package/dist/actions/identify.d.cts.map +1 -1
  63. package/dist/actions/identify.d.mts +3 -24
  64. package/dist/actions/identify.d.mts.map +1 -1
  65. package/dist/actions/identify.mjs +1 -0
  66. package/dist/actions/identify.mjs.map +1 -1
  67. package/dist/actions/import-historical-data.cjs +1 -0
  68. package/dist/actions/import-historical-data.cjs.map +1 -1
  69. package/dist/actions/import-historical-data.d.cts +3 -19
  70. package/dist/actions/import-historical-data.d.cts.map +1 -1
  71. package/dist/actions/import-historical-data.d.mts +3 -19
  72. package/dist/actions/import-historical-data.d.mts.map +1 -1
  73. package/dist/actions/import-historical-data.mjs +1 -0
  74. package/dist/actions/import-historical-data.mjs.map +1 -1
  75. package/dist/actions/list-connected-warehouses-from-source.cjs +1 -0
  76. package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
  77. package/dist/actions/list-connected-warehouses-from-source.d.cts +3 -21
  78. package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -1
  79. package/dist/actions/list-connected-warehouses-from-source.d.mts +3 -21
  80. package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -1
  81. package/dist/actions/list-connected-warehouses-from-source.mjs +1 -0
  82. package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
  83. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +1 -0
  84. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
  85. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +3 -21
  86. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -1
  87. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +3 -21
  88. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -1
  89. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +1 -0
  90. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
  91. package/dist/actions/list-schema-settings-in-source.cjs +1 -0
  92. package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
  93. package/dist/actions/list-schema-settings-in-source.d.cts +3 -17
  94. package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -1
  95. package/dist/actions/list-schema-settings-in-source.d.mts +3 -17
  96. package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -1
  97. package/dist/actions/list-schema-settings-in-source.mjs +1 -0
  98. package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
  99. package/dist/actions/page.cjs +1 -0
  100. package/dist/actions/page.cjs.map +1 -1
  101. package/dist/actions/page.d.cts +3 -25
  102. package/dist/actions/page.d.cts.map +1 -1
  103. package/dist/actions/page.d.mts +3 -25
  104. package/dist/actions/page.d.mts.map +1 -1
  105. package/dist/actions/page.mjs +1 -0
  106. package/dist/actions/page.mjs.map +1 -1
  107. package/dist/actions/remove-source-write-key.cjs +1 -0
  108. package/dist/actions/remove-source-write-key.cjs.map +1 -1
  109. package/dist/actions/remove-source-write-key.d.cts +3 -18
  110. package/dist/actions/remove-source-write-key.d.cts.map +1 -1
  111. package/dist/actions/remove-source-write-key.d.mts +3 -18
  112. package/dist/actions/remove-source-write-key.d.mts.map +1 -1
  113. package/dist/actions/remove-source-write-key.mjs +1 -0
  114. package/dist/actions/remove-source-write-key.mjs.map +1 -1
  115. package/dist/actions/screen.cjs +1 -0
  116. package/dist/actions/screen.cjs.map +1 -1
  117. package/dist/actions/screen.d.cts +3 -24
  118. package/dist/actions/screen.d.cts.map +1 -1
  119. package/dist/actions/screen.d.mts +3 -24
  120. package/dist/actions/screen.d.mts.map +1 -1
  121. package/dist/actions/screen.mjs +1 -0
  122. package/dist/actions/screen.mjs.map +1 -1
  123. package/dist/actions/track.cjs +1 -0
  124. package/dist/actions/track.cjs.map +1 -1
  125. package/dist/actions/track.d.cts +3 -24
  126. package/dist/actions/track.d.cts.map +1 -1
  127. package/dist/actions/track.d.mts +3 -24
  128. package/dist/actions/track.d.mts.map +1 -1
  129. package/dist/actions/track.mjs +1 -0
  130. package/dist/actions/track.mjs.map +1 -1
  131. package/dist/actions/update-source.cjs +1 -0
  132. package/dist/actions/update-source.cjs.map +1 -1
  133. package/dist/actions/update-source.d.cts +3 -21
  134. package/dist/actions/update-source.d.cts.map +1 -1
  135. package/dist/actions/update-source.d.mts +3 -21
  136. package/dist/actions/update-source.d.mts.map +1 -1
  137. package/dist/actions/update-source.mjs +1 -0
  138. package/dist/actions/update-source.mjs.map +1 -1
  139. package/dist/app.cjs +5 -4
  140. package/dist/app.cjs.map +1 -1
  141. package/dist/app.d.cts +4 -6
  142. package/dist/app.d.cts.map +1 -1
  143. package/dist/app.d.mts +4 -6
  144. package/dist/app.d.mts.map +1 -1
  145. package/dist/app.mjs +0 -1
  146. package/dist/app.mjs.map +1 -1
  147. package/dist/index.d.cts +1 -1
  148. package/dist/index.d.mts +1 -1
  149. package/package.json +2 -2
@@ -1 +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,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAsB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
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":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAsB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-daily-per-source-api-calls-usage.ts
@@ -1 +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.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.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.\").nullable(),\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.\").nullable(),\n}).passthrough();\nconst SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({\n apiCalls: z.string().describe(\"API call count for the source and day.\").nullable(),\n sourceId: z.string().describe(\"Source identifier.\").nullable(),\n timestamp: z.string().describe(\"Date this usage applies to in ISO-8601 format.\").nullable(),\n}).passthrough();\nconst SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({\n pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),\n dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe(\"List of daily API call usage records per source.\"),\n}).passthrough();\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n}).passthrough();\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,6CAA6C,EAAE,OAAO;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC3G,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC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per-source-api-calls-usage.mjs","names":[],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.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 SegmentGetDailyPerSourceApiCallsUsageInput = 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.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.\").nullable(),\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.\").nullable(),\n}).passthrough();\nconst SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({\n apiCalls: z.string().describe(\"API call count for the source and day.\").nullable(),\n sourceId: z.string().describe(\"Source identifier.\").nullable(),\n timestamp: z.string().describe(\"Date this usage applies to in ISO-8601 format.\").nullable(),\n}).passthrough();\nconst SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({\n pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),\n dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe(\"List of daily API call usage records per source.\"),\n}).passthrough();\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentGetDailyPerSourceApiCallsUsage: AppAction<\n typeof SegmentGetDailyPerSourceApiCallsUsageInput,\n typeof SegmentGetDailyPerSourceApiCallsUsageOutput,\n typeof segment.credential\n> = 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":";;;;AAMA,MAAa,6CAA6C,EAAE,OAAO;CACjE,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,6DAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwE,EAAE,OAAO;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yFAAyF,EAAE,OAAO;CACtG,YAAY,2DAA2D,SAAS;CAChF,6BAA6B,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kDAAkD;AACzK,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,wCAIT,OAAO,gDAAgD;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyD,EAAE,OAAO,EAClE,MAAM,uFAAuF,SAAS,EACxG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-destination.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-destination.cjs","names":["z","action"],"sources":["../../src/actions/get-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDestinationInput = z.object({\n destinationId: z.string().describe(\"The destination’s unique ID.\"),\n}).describe(\"Request model for retrieving a Destination by its ID.\");\nconst SegmentGetDestination_LogosSchema = z.object({\n mark: z.string().describe(\"URL for the alternate logo (mark).\").nullable().optional(),\n \"default\": z.string().describe(\"URL for the default logo.\").nullable().optional(),\n}).passthrough();\nconst SegmentGetDestination_ContactSchema = z.object({\n name: z.string().nullable(),\n role: z.string().nullable(),\n email: z.string().nullable(),\n isPrimary: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedMethodsSchema = z.object({\n alias: z.boolean().nullable(),\n group: z.boolean().nullable(),\n track: z.boolean().nullable(),\n identify: z.boolean().nullable(),\n pageview: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedFeaturesSchema = z.object({\n replay: z.boolean().nullable(),\n browserUnbundling: z.boolean().nullable(),\n cloudModeInstances: z.string().describe(\"Cloud mode instance count as string.\").nullable().optional(),\n deviceModeInstances: z.string().describe(\"Device mode instance count as string.\").nullable().optional(),\n browserUnbundlingPublic: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_SupportedPlatformsSchema = z.object({\n mobile: z.boolean().nullable(),\n server: z.boolean().nullable(),\n browser: z.boolean().nullable(),\n warehouse: z.boolean().nullable(),\n cloudAppObject: z.boolean().nullable(),\n}).passthrough();\nconst SegmentGetDestination_MetadataSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n slug: z.string().nullable(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string().nullable(),\n actions: z.array(z.unknown()),\n options: z.array(z.unknown()),\n presets: z.array(z.unknown()),\n website: z.string().nullable().optional(),\n contacts: z.array(SegmentGetDestination_ContactSchema),\n categories: z.array(z.string()),\n components: z.array(z.unknown()),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable(),\n previousNames: z.array(z.string()),\n regionEndpoints: z.array(z.string()),\n supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),\n supportedRegions: z.array(z.string()),\n supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),\n supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable(),\n}).passthrough();\nconst SegmentGetDestination_DestinationSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n enabled: z.boolean().nullable(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string().nullable(),\n}).passthrough();\nconst SegmentGetDestination_GetDestinationDataSchema = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n}).passthrough();\nexport const SegmentGetDestinationOutput = z.object({\n data: SegmentGetDestination_GetDestinationDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentGetDestination = action(\"SEGMENT_GET_DESTINATION\", {\n slug: \"segment-get-destination\",\n name: \"Get Destination\",\n description: \"Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.\",\n input: SegmentGetDestinationInput,\n output: SegmentGetDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EACnE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AAClC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC/B,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC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AM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-destination.cjs","names":["z","action"],"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,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,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,QAAQ,CAAC,CAAC,SAAS;CACnC,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CACjC,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CACnC,kBAAkB,6CAA6C,SAAS;CACxE,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CACpC,mBAAmB,8CAA8C,SAAS;CAC1E,oBAAoB,+CAA+C,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC9B,UAAU,qCAAqC,SAAS;CACxD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,aAAa,wCAAwC,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/get-destination.d.ts
@@ -63,23 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
67
- destinationId: string;
68
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
69
- connectionId: z.ZodString;
70
- entityId: z.ZodString;
71
- instanceId: z.ZodString;
72
- }, z.core.$strip>, z.ZodObject<{
73
- region: z.ZodString;
74
- generic_api_key: z.ZodString;
75
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
76
- connectionId: z.ZodString;
77
- entityId: z.ZodString;
78
- instanceId: z.ZodString;
79
- }, z.core.$strip>, z.ZodObject<{
80
- region: z.ZodString;
81
- generic_api_key: z.ZodString;
82
- }, z.core.$strip>>]>;
68
+ declare const segmentGetDestination: AppAction<typeof SegmentGetDestinationInput, typeof SegmentGetDestinationOutput, typeof segment.credential>;
83
69
  //#endregion
84
70
  export { segmentGetDestination };
85
71
  //# sourceMappingURL=get-destination.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-destination.d.cts","names":[],"sources":["../../src/actions/get-destination.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAmE1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-destination.d.cts","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,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,23 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
67
- destinationId: string;
68
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
69
- connectionId: z.ZodString;
70
- entityId: z.ZodString;
71
- instanceId: z.ZodString;
72
- }, z.core.$strip>, z.ZodObject<{
73
- region: z.ZodString;
74
- generic_api_key: z.ZodString;
75
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
76
- connectionId: z.ZodString;
77
- entityId: z.ZodString;
78
- instanceId: z.ZodString;
79
- }, z.core.$strip>, z.ZodObject<{
80
- region: z.ZodString;
81
- generic_api_key: z.ZodString;
82
- }, z.core.$strip>>]>;
68
+ declare const segmentGetDestination: AppAction<typeof SegmentGetDestinationInput, typeof SegmentGetDestinationOutput, typeof segment.credential>;
83
69
  //#endregion
84
70
  export { segmentGetDestination };
85
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":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAmE1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
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,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-destination.ts
@@ -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":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,eAA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C,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,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
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,CAA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,CAAC,CAAC,SAAS;CACnC,eAAe,EAAE,MAAM,EAAE,OAAO,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"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/group.ts
@@ -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":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAa,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAEtL,MAAa,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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"}
@@ -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,30 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
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<"segment", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- region: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- region: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
17
+ declare const segmentGroup: AppAction<typeof SegmentGroupInput, typeof SegmentGroupOutput, typeof segment.credential>;
39
18
  //#endregion
40
19
  export { segmentGroup };
41
20
  //# sourceMappingURL=group.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"group.d.cts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
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"}
@@ -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,30 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
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<"segment", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- region: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- region: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
17
+ declare const segmentGroup: AppAction<typeof SegmentGroupInput, typeof SegmentGroupOutput, typeof segment.credential>;
39
18
  //#endregion
40
19
  export { segmentGroup };
41
20
  //# sourceMappingURL=group.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"group.d.mts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
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"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const segmentGroup = action("SEGMENT_GROUP", {
@@ -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":";;AAgBA,MAAa,eAAe,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB+B,EAAE,OAAO;EACxC,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,8IAOH;CACP,QAPgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAOnE;AACV,CAAC"}
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,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/identify.ts
@@ -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":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC9H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAa,wBAAwBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAEzL,MAAa,kBAAkBC,eAAAA,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,30 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
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<"segment", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- region: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- region: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
17
+ declare const segmentIdentify: AppAction<typeof SegmentIdentifyInput, typeof SegmentIdentifyOutput, typeof segment.credential>;
39
18
  //#endregion
40
19
  export { segmentIdentify };
41
20
  //# sourceMappingURL=identify.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identify.d.cts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAErB,eAAA,gCAAe,wBAAA"}
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,30 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
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<"segment", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- region: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- region: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
17
+ declare const segmentIdentify: AppAction<typeof SegmentIdentifyInput, typeof SegmentIdentifyOutput, typeof segment.credential>;
39
18
  //#endregion
40
19
  export { segmentIdentify };
41
20
  //# sourceMappingURL=identify.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identify.d.mts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAErB,eAAA,gCAAe,wBAAA"}
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,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const segmentIdentify = action("SEGMENT_IDENTIFY", {
@@ -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":";;AAgBA,MAAa,kBAAkB,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkC,EAAE,OAAO;EAC3C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC9H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,kKAOH;CACP,QAPmC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAOtE;AACV,CAAC"}
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,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/import-historical-data.ts
@@ -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":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8MAA8M;CACzQ,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC5H,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,25 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
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<"segment", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- region: z.ZodString;
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- region: z.ZodString;
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
14
+ declare const segmentImportHistoricalData: AppAction<typeof SegmentImportHistoricalDataInput, typeof SegmentImportHistoricalDataOutput, typeof segment.credential>;
31
15
  //#endregion
32
16
  export { segmentImportHistoricalData };
33
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":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAKhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
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,25 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
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<"segment", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- region: z.ZodString;
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- region: z.ZodString;
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
14
+ declare const segmentImportHistoricalData: AppAction<typeof SegmentImportHistoricalDataInput, typeof SegmentImportHistoricalDataOutput, typeof segment.credential>;
31
15
  //#endregion
32
16
  export { segmentImportHistoricalData };
33
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":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAKhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
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,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const segmentImportHistoricalData = action("SEGMENT_IMPORT_HISTORICAL_DATA", {
@@ -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":";;AAaA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb8C,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,kFASH;CACP,QAT+C,EAAE,OAAO,EACxD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
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,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-connected-warehouses-from-source.ts