@keystrokehq/segment 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 -8
  6. package/dist/actions/add-labels-to-source.d.cts.map +1 -1
  7. package/dist/actions/add-labels-to-source.d.mts +3 -8
  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 -8
  14. package/dist/actions/alias.d.cts.map +1 -1
  15. package/dist/actions/alias.d.mts +3 -8
  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 -6
  22. package/dist/actions/batch.d.cts.map +1 -1
  23. package/dist/actions/batch.d.mts +3 -6
  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 -3
  30. package/dist/actions/delete-source.d.cts.map +1 -1
  31. package/dist/actions/delete-source.d.mts +3 -3
  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 -7
  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 -7
  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 -3
  46. package/dist/actions/get-destination.d.cts.map +1 -1
  47. package/dist/actions/get-destination.d.mts +3 -3
  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 -10
  54. package/dist/actions/group.d.cts.map +1 -1
  55. package/dist/actions/group.d.mts +3 -10
  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 -10
  62. package/dist/actions/identify.d.cts.map +1 -1
  63. package/dist/actions/identify.d.mts +3 -10
  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 -5
  70. package/dist/actions/import-historical-data.d.cts.map +1 -1
  71. package/dist/actions/import-historical-data.d.mts +3 -5
  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 -7
  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 -7
  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 -7
  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 -7
  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 -3
  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 -3
  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 -11
  102. package/dist/actions/page.d.cts.map +1 -1
  103. package/dist/actions/page.d.mts +3 -11
  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 -4
  110. package/dist/actions/remove-source-write-key.d.cts.map +1 -1
  111. package/dist/actions/remove-source-write-key.d.mts +3 -4
  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 -10
  118. package/dist/actions/screen.d.cts.map +1 -1
  119. package/dist/actions/screen.d.mts +3 -10
  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 -10
  126. package/dist/actions/track.d.cts.map +1 -1
  127. package/dist/actions/track.d.mts +3 -10
  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 -7
  134. package/dist/actions/update-source.d.cts.map +1 -1
  135. package/dist/actions/update-source.d.mts +3 -7
  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 +9 -2
  140. package/dist/app.cjs.map +1 -1
  141. package/dist/app.d.cts +8 -1
  142. package/dist/app.d.cts.map +1 -1
  143. package/dist/app.d.mts +8 -1
  144. package/dist/app.d.mts.map +1 -1
  145. package/dist/app.mjs +6 -2
  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":"list-delivery-metrics-summary-from-destination.d.mts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,gCAAgD,wBAAA"}
1
+ {"version":3,"file":"list-delivery-metrics-summary-from-destination.d.mts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;;;cAMa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,EAAkD,SAAA,QACtD,qDAAA,SACA,sDAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-delivery-metrics-summary-from-destination.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-delivery-metrics-summary-from-destination.mjs","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListDeliveryMetricsSummaryFromDestination = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDest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,+GAA+G,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mDAAmD,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToE,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-delivery-metrics-summary-from-destination.mjs","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListDeliveryMetricsSummaryFromDestination: AppAction<\n typeof SegmentListDeliveryMetricsSummaryFromDestinationInput,\n typeof SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wDAAwD,EAAE,OAAO;CAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAa,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAyE,EAAE,OAAO;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwE,EAAE,OAAO;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gFAAgF,EAAE,OAAO;CAC7F,SAAS,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+GAA+G,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mDAIT,OAAO,0DAA0D;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboE,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,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/list-schema-settings-in-source.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-schema-settings-in-source.cjs","names":["z","action"],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAA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OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iFAAiFA,IAAAA,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-schema-settings-in-source.cjs","names":["z","action"],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource: AppAction<\n typeof SegmentListSchemaSettingsInSourceInput,\n typeof SegmentListSchemaSettingsInSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAA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  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-schema-settings-in-source.d.ts
@@ -30,9 +32,7 @@ declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
30
32
  sourceId: z.ZodNullable<z.ZodString>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- sourceId: string;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const segmentListSchemaSettingsInSource: AppAction<typeof SegmentListSchemaSettingsInSourceInput, typeof SegmentListSchemaSettingsInSourceOutput, typeof segment.credential>;
36
36
  //#endregion
37
37
  export { segmentListSchemaSettingsInSource };
38
38
  //# sourceMappingURL=list-schema-settings-in-source.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-schema-settings-in-source.d.cts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"list-schema-settings-in-source.d.cts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-schema-settings-in-source.d.ts
@@ -30,9 +32,7 @@ declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
30
32
  sourceId: z.ZodNullable<z.ZodString>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- sourceId: string;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const segmentListSchemaSettingsInSource: AppAction<typeof SegmentListSchemaSettingsInSourceInput, typeof SegmentListSchemaSettingsInSourceOutput, typeof segment.credential>;
36
36
  //#endregion
37
37
  export { segmentListSchemaSettingsInSource };
38
38
  //# sourceMappingURL=list-schema-settings-in-source.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-schema-settings-in-source.d.mts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"list-schema-settings-in-source.d.mts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,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/list-schema-settings-in-source.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-schema-settings-in-source.mjs","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwD,EAAE,OAAO;CACrE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wDAAwD,EAAE,OAAO;CACrE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,yBAAyB,EA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AC,CAAC,YAAY;AAKf,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-schema-settings-in-source.mjs","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource: AppAction<\n typeof SegmentListSchemaSettingsInSourceInput,\n typeof SegmentListSchemaSettingsInSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyC,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwD,EAAE,OAAO;CACrE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,S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DAAyD,EAAE,OAAO;CACtE,OAAO,sDAAsD,SAAS;CACtE,OAAO,sDAAsD,SAAS;CACtE,UAAU,yDAAyD,SAAS;CAC5E,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iFAAiF,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqD,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,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/page.ts
@@ -1 +1 @@
1
- {"version":3,"file":"page.cjs","names":["z","action"],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").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 Bearer auth in 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 event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").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 recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAmBA,IAAAA,EAAE,OAAO;CACvC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,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,4EAA4E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9H,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,4HAA4H;AACxI,MAAa,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAEjL,MAAa,cAAcC,eAAAA,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"page.cjs","names":["z","action"],"sources":["../../src/actions/page.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 SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").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 Bearer auth in 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 event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").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 recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage: AppAction<\n typeof SegmentPageInput,\n typeof SegmentPageOutput,\n typeof segment.credential\n> = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mBAAmBA,IAAAA,EAAE,OAAO;CACvC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,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,4EAA4E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9H,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,4HAA4H;AACxI,MAAa,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAEjL,MAAa,cAITC,eAAAA,OAAO,gBAAgB;CACzB,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/page.d.ts
@@ -13,17 +15,7 @@ declare const SegmentPageInput: z.ZodObject<{
13
15
  integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
16
  }, z.core.$strip>;
15
17
  declare const SegmentPageOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
- declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- name?: string | undefined;
18
- userId?: string | undefined;
19
- context?: Record<string, unknown> | undefined;
20
- writeKey?: string | undefined;
21
- messageId?: string | undefined;
22
- timestamp?: string | undefined;
23
- properties?: Record<string, unknown> | undefined;
24
- anonymousId?: string | undefined;
25
- integrations?: Record<string, unknown> | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ declare const segmentPage: AppAction<typeof SegmentPageInput, typeof SegmentPageOutput, typeof segment.credential>;
27
19
  //#endregion
28
20
  export { segmentPage };
29
21
  //# sourceMappingURL=page.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.cts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEjB,WAAA,gCAAW,wBAAA"}
1
+ {"version":3,"file":"page.d.cts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;;;cAMa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEjB,WAAA,EAAa,SAAA,QACjB,gBAAA,SACA,iBAAA,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/page.d.ts
@@ -13,17 +15,7 @@ declare const SegmentPageInput: z.ZodObject<{
13
15
  integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
16
  }, z.core.$strip>;
15
17
  declare const SegmentPageOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
- declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- name?: string | undefined;
18
- userId?: string | undefined;
19
- context?: Record<string, unknown> | undefined;
20
- writeKey?: string | undefined;
21
- messageId?: string | undefined;
22
- timestamp?: string | undefined;
23
- properties?: Record<string, unknown> | undefined;
24
- anonymousId?: string | undefined;
25
- integrations?: Record<string, unknown> | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ declare const segmentPage: AppAction<typeof SegmentPageInput, typeof SegmentPageOutput, typeof segment.credential>;
27
19
  //#endregion
28
20
  export { segmentPage };
29
21
  //# sourceMappingURL=page.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.mts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEjB,WAAA,gCAAW,wBAAA"}
1
+ {"version":3,"file":"page.d.mts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;;;cAMa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEjB,WAAA,EAAa,SAAA,QACjB,gBAAA,SACA,iBAAA,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 segmentPage = action("SEGMENT_PAGE", {
@@ -1 +1 @@
1
- {"version":3,"file":"page.mjs","names":[],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").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 Bearer auth in 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 event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").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 recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;AAiBA,MAAa,cAAc,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB8B,EAAE,OAAO;EACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAClE,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,4EAA4E,CAAC,CAAC,SAAS;EACrH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC9H,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,4HAOH;CACP,QAP+B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAOlE;AACV,CAAC"}
1
+ {"version":3,"file":"page.mjs","names":[],"sources":["../../src/actions/page.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 SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").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 Bearer auth in 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 event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").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 recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage: AppAction<\n typeof SegmentPageInput,\n typeof SegmentPageOutput,\n typeof segment.credential\n> = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,cAIT,OAAO,gBAAgB;CACzB,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB8B,EAAE,OAAO;EACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAClE,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,4EAA4E,CAAC,CAAC,SAAS;EACrH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC9H,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,4HAWH;CACP,QAX+B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAWlE;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/remove-source-write-key.ts
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.cjs","names":["z","action"],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n}).passthrough();\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).passthrough().describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"remove-source-write-key.cjs","names":["z","action"],"sources":["../../src/actions/remove-source-write-key.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 SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n}).passthrough();\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).passthrough().describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey: AppAction<\n typeof SegmentRemoveSourceWriteKeyInput,\n typeof SegmentRemoveSourceWriteKeyOutput,\n typeof segment.credential\n> = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,8BAITC,eAAAA,OAAO,mCAAmC;CAC5C,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/remove-source-write-key.d.ts
@@ -10,10 +12,7 @@ declare const SegmentRemoveSourceWriteKeyOutput: z.ZodObject<{
10
12
  status: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>>;
12
14
  }, z.core.$loose>;
13
- declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- sourceId: string;
15
- writeKey: string;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const segmentRemoveSourceWriteKey: AppAction<typeof SegmentRemoveSourceWriteKeyInput, typeof SegmentRemoveSourceWriteKeyOutput, typeof segment.credential>;
17
16
  //#endregion
18
17
  export { segmentRemoveSourceWriteKey };
19
18
  //# sourceMappingURL=remove-source-write-key.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.d.cts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAOhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"remove-source-write-key.d.cts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAOhC,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/remove-source-write-key.d.ts
@@ -10,10 +12,7 @@ declare const SegmentRemoveSourceWriteKeyOutput: z.ZodObject<{
10
12
  status: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>>;
12
14
  }, z.core.$loose>;
13
- declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- sourceId: string;
15
- writeKey: string;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const segmentRemoveSourceWriteKey: AppAction<typeof SegmentRemoveSourceWriteKeyInput, typeof SegmentRemoveSourceWriteKeyOutput, typeof segment.credential>;
17
16
  //#endregion
18
17
  export { segmentRemoveSourceWriteKey };
19
18
  //# sourceMappingURL=remove-source-write-key.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.d.mts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAOhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"remove-source-write-key.d.mts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAOhC,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
  //#region src/actions/remove-source-write-key.ts
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.mjs","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n}).passthrough();\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).passthrough().describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiD,EAAE,OAAO,EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"remove-source-write-key.mjs","names":[],"sources":["../../src/actions/remove-source-write-key.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 SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n}).passthrough();\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).passthrough().describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey: AppAction<\n typeof SegmentRemoveSourceWriteKeyInput,\n typeof SegmentRemoveSourceWriteKeyOutput,\n typeof segment.credential\n> = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiD,EAAE,OAAO,EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,8BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb+C,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;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/screen.ts
@@ -1 +1 @@
1
- {"version":3,"file":"screen.cjs","names":["z","action"],"sources":["../../src/actions/screen.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentScreenInput = z.object({\n name: z.string().describe(\"Name of the screen.\").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 timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").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 recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,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,qFAAqF,CAAC,CAAC,SAAS;CAC/H,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC9G,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,sIAAsI;AAClJ,MAAa,sBAAsBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAEtL,MAAa,gBAAgBC,eAAAA,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"screen.cjs","names":["z","action"],"sources":["../../src/actions/screen.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 SegmentScreenInput = z.object({\n name: z.string().describe(\"Name of the screen.\").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 timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").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 recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen: AppAction<\n typeof SegmentScreenInput,\n typeof SegmentScreenOutput,\n typeof segment.credential\n> = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,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,qFAAqF,CAAC,CAAC,SAAS;CAC/H,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC9G,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,sIAAsI;AAClJ,MAAa,sBAAsBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAEtL,MAAa,gBAITC,eAAAA,OAAO,kBAAkB;CAC3B,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/screen.d.ts
@@ -12,16 +14,7 @@ declare const SegmentScreenInput: z.ZodObject<{
12
14
  integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
15
  }, z.core.$strip>;
14
16
  declare const SegmentScreenOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
- declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- name?: string | undefined;
17
- userId?: string | undefined;
18
- context?: Record<string, unknown> | undefined;
19
- writeKey?: string | undefined;
20
- timestamp?: string | undefined;
21
- properties?: Record<string, unknown> | undefined;
22
- anonymousId?: string | undefined;
23
- integrations?: Record<string, unknown> | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const segmentScreen: AppAction<typeof SegmentScreenInput, typeof SegmentScreenOutput, typeof segment.credential>;
25
18
  //#endregion
26
19
  export { segmentScreen };
27
20
  //# sourceMappingURL=screen.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.d.cts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAUlB,mBAAA,EAAmB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEnB,aAAA,gCAAa,wBAAA"}
1
+ {"version":3,"file":"screen.d.cts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAUlB,mBAAA,EAAmB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,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/screen.d.ts
@@ -12,16 +14,7 @@ declare const SegmentScreenInput: z.ZodObject<{
12
14
  integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
15
  }, z.core.$strip>;
14
16
  declare const SegmentScreenOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
- declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- name?: string | undefined;
17
- userId?: string | undefined;
18
- context?: Record<string, unknown> | undefined;
19
- writeKey?: string | undefined;
20
- timestamp?: string | undefined;
21
- properties?: Record<string, unknown> | undefined;
22
- anonymousId?: string | undefined;
23
- integrations?: Record<string, unknown> | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const segmentScreen: AppAction<typeof SegmentScreenInput, typeof SegmentScreenOutput, typeof segment.credential>;
25
18
  //#endregion
26
19
  export { segmentScreen };
27
20
  //# sourceMappingURL=screen.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.d.mts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAUlB,mBAAA,EAAmB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEnB,aAAA,gCAAa,wBAAA"}
1
+ {"version":3,"file":"screen.d.mts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAUlB,mBAAA,EAAmB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,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 segmentScreen = action("SEGMENT_SCREEN", {
@@ -1 +1 @@
1
- {"version":3,"file":"screen.mjs","names":[],"sources":["../../src/actions/screen.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentScreenInput = z.object({\n name: z.string().describe(\"Name of the screen.\").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 timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").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 recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;AAgBA,MAAa,gBAAgB,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBgC,EAAE,OAAO;EACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,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,qFAAqF,CAAC,CAAC,SAAS;EAC/H,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC9G,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,sIAOH;CACP,QAPiC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAOpE;AACV,CAAC"}
1
+ {"version":3,"file":"screen.mjs","names":[],"sources":["../../src/actions/screen.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 SegmentScreenInput = z.object({\n name: z.string().describe(\"Name of the screen.\").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 timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").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 recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen: AppAction<\n typeof SegmentScreenInput,\n typeof SegmentScreenOutput,\n typeof segment.credential\n> = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,gBAIT,OAAO,kBAAkB;CAC3B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBgC,EAAE,OAAO;EACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,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,qFAAqF,CAAC,CAAC,SAAS;EAC/H,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC9G,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,sIAWH;CACP,QAXiC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAWpE;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/track.ts
@@ -1 +1 @@
1
- {"version":3,"file":"track.cjs","names":["z","action"],"sources":["../../src/actions/track.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentTrackInput = z.object({\n event: z.string().describe(\"Name of the action performed (e.g., 'Item Purchased').\"),\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 timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of event-specific properties (e.g., revenue).\").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 recording a user event via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentTrackOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentTrack = action(\"SEGMENT_TRACK\", {\n slug: \"segment-track\",\n name: \"Segment Track Event\",\n description: \"Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.\",\n input: SegmentTrackInput,\n output: SegmentTrackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACnF,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,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtI,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,qIAAqI;AACjJ,MAAa,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAE9K,MAAa,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"track.cjs","names":["z","action"],"sources":["../../src/actions/track.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 SegmentTrackInput = z.object({\n event: z.string().describe(\"Name of the action performed (e.g., 'Item Purchased').\"),\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 timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of event-specific properties (e.g., revenue).\").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 recording a user event via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentTrackOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentTrack: AppAction<\n typeof SegmentTrackInput,\n typeof SegmentTrackOutput,\n typeof segment.credential\n> = action(\"SEGMENT_TRACK\", {\n slug: \"segment-track\",\n name: \"Segment Track Event\",\n description: \"Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.\",\n input: SegmentTrackInput,\n output: SegmentTrackOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACnF,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,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtI,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,qIAAqI;AACjJ,MAAa,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAE9K,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/track.d.ts
@@ -12,16 +14,7 @@ declare const SegmentTrackInput: z.ZodObject<{
12
14
  integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
15
  }, z.core.$strip>;
14
16
  declare const SegmentTrackOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
- declare const segmentTrack: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- event: string;
17
- userId?: string | undefined;
18
- context?: Record<string, unknown> | undefined;
19
- writeKey?: string | undefined;
20
- timestamp?: string | undefined;
21
- properties?: Record<string, unknown> | undefined;
22
- anonymousId?: string | undefined;
23
- integrations?: Record<string, unknown> | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const segmentTrack: AppAction<typeof SegmentTrackInput, typeof SegmentTrackOutput, typeof segment.credential>;
25
18
  //#endregion
26
19
  export { segmentTrack };
27
20
  //# sourceMappingURL=track.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"track.d.cts","names":[],"sources":["../../src/actions/track.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":"track.d.cts","names":[],"sources":["../../src/actions/track.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/track.d.ts
@@ -12,16 +14,7 @@ declare const SegmentTrackInput: z.ZodObject<{
12
14
  integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
15
  }, z.core.$strip>;
14
16
  declare const SegmentTrackOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
- declare const segmentTrack: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- event: string;
17
- userId?: string | undefined;
18
- context?: Record<string, unknown> | undefined;
19
- writeKey?: string | undefined;
20
- timestamp?: string | undefined;
21
- properties?: Record<string, unknown> | undefined;
22
- anonymousId?: string | undefined;
23
- integrations?: Record<string, unknown> | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const segmentTrack: AppAction<typeof SegmentTrackInput, typeof SegmentTrackOutput, typeof segment.credential>;
25
18
  //#endregion
26
19
  export { segmentTrack };
27
20
  //# sourceMappingURL=track.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"track.d.mts","names":[],"sources":["../../src/actions/track.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":"track.d.mts","names":[],"sources":["../../src/actions/track.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 segmentTrack = action("SEGMENT_TRACK", {
@@ -1 +1 @@
1
- {"version":3,"file":"track.mjs","names":[],"sources":["../../src/actions/track.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentTrackInput = z.object({\n event: z.string().describe(\"Name of the action performed (e.g., 'Item Purchased').\"),\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 timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of event-specific properties (e.g., revenue).\").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 recording a user event via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentTrackOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentTrack = action(\"SEGMENT_TRACK\", {\n slug: \"segment-track\",\n name: \"Segment Track Event\",\n description: \"Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.\",\n input: SegmentTrackInput,\n output: SegmentTrackOutput,\n});\n"],"mappings":";;AAgBA,MAAa,eAAe,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB+B,EAAE,OAAO;EACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACnF,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,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACtI,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,qIAOH;CACP,QAPgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iGAOnE;AACV,CAAC"}
1
+ {"version":3,"file":"track.mjs","names":[],"sources":["../../src/actions/track.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 SegmentTrackInput = z.object({\n event: z.string().describe(\"Name of the action performed (e.g., 'Item Purchased').\"),\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 timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of event-specific properties (e.g., revenue).\").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 recording a user event via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentTrackOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentTrack: AppAction<\n typeof SegmentTrackInput,\n typeof SegmentTrackOutput,\n typeof segment.credential\n> = action(\"SEGMENT_TRACK\", {\n slug: \"segment-track\",\n name: \"Segment Track Event\",\n description: \"Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.\",\n input: SegmentTrackInput,\n output: SegmentTrackOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,eAIT,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB+B,EAAE,OAAO;EACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACnF,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,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACtI,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,qIAWH;CACP,QAXgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iGAWnE;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/update-source.ts