@keystrokehq/segment 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-labels-to-source.cjs +1 -0
  4. package/dist/actions/add-labels-to-source.cjs.map +1 -1
  5. package/dist/actions/add-labels-to-source.d.cts +3 -22
  6. package/dist/actions/add-labels-to-source.d.cts.map +1 -1
  7. package/dist/actions/add-labels-to-source.d.mts +3 -22
  8. package/dist/actions/add-labels-to-source.d.mts.map +1 -1
  9. package/dist/actions/add-labels-to-source.mjs +1 -0
  10. package/dist/actions/add-labels-to-source.mjs.map +1 -1
  11. package/dist/actions/alias.cjs +1 -0
  12. package/dist/actions/alias.cjs.map +1 -1
  13. package/dist/actions/alias.d.cts +3 -22
  14. package/dist/actions/alias.d.cts.map +1 -1
  15. package/dist/actions/alias.d.mts +3 -22
  16. package/dist/actions/alias.d.mts.map +1 -1
  17. package/dist/actions/alias.mjs +1 -0
  18. package/dist/actions/alias.mjs.map +1 -1
  19. package/dist/actions/batch.cjs +1 -0
  20. package/dist/actions/batch.cjs.map +1 -1
  21. package/dist/actions/batch.d.cts +3 -20
  22. package/dist/actions/batch.d.cts.map +1 -1
  23. package/dist/actions/batch.d.mts +3 -20
  24. package/dist/actions/batch.d.mts.map +1 -1
  25. package/dist/actions/batch.mjs +1 -0
  26. package/dist/actions/batch.mjs.map +1 -1
  27. package/dist/actions/delete-source.cjs +1 -0
  28. package/dist/actions/delete-source.cjs.map +1 -1
  29. package/dist/actions/delete-source.d.cts +3 -17
  30. package/dist/actions/delete-source.d.cts.map +1 -1
  31. package/dist/actions/delete-source.d.mts +3 -17
  32. package/dist/actions/delete-source.d.mts.map +1 -1
  33. package/dist/actions/delete-source.mjs +1 -0
  34. package/dist/actions/delete-source.mjs.map +1 -1
  35. package/dist/actions/get-daily-per-source-api-calls-usage.cjs +1 -0
  36. package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -1
  37. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +3 -21
  38. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -1
  39. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +3 -21
  40. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -1
  41. package/dist/actions/get-daily-per-source-api-calls-usage.mjs +1 -0
  42. package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
  43. package/dist/actions/get-destination.cjs +1 -0
  44. package/dist/actions/get-destination.cjs.map +1 -1
  45. package/dist/actions/get-destination.d.cts +3 -17
  46. package/dist/actions/get-destination.d.cts.map +1 -1
  47. package/dist/actions/get-destination.d.mts +3 -17
  48. package/dist/actions/get-destination.d.mts.map +1 -1
  49. package/dist/actions/get-destination.mjs +1 -0
  50. package/dist/actions/get-destination.mjs.map +1 -1
  51. package/dist/actions/group.cjs +1 -0
  52. package/dist/actions/group.cjs.map +1 -1
  53. package/dist/actions/group.d.cts +3 -24
  54. package/dist/actions/group.d.cts.map +1 -1
  55. package/dist/actions/group.d.mts +3 -24
  56. package/dist/actions/group.d.mts.map +1 -1
  57. package/dist/actions/group.mjs +1 -0
  58. package/dist/actions/group.mjs.map +1 -1
  59. package/dist/actions/identify.cjs +1 -0
  60. package/dist/actions/identify.cjs.map +1 -1
  61. package/dist/actions/identify.d.cts +3 -24
  62. package/dist/actions/identify.d.cts.map +1 -1
  63. package/dist/actions/identify.d.mts +3 -24
  64. package/dist/actions/identify.d.mts.map +1 -1
  65. package/dist/actions/identify.mjs +1 -0
  66. package/dist/actions/identify.mjs.map +1 -1
  67. package/dist/actions/import-historical-data.cjs +1 -0
  68. package/dist/actions/import-historical-data.cjs.map +1 -1
  69. package/dist/actions/import-historical-data.d.cts +3 -19
  70. package/dist/actions/import-historical-data.d.cts.map +1 -1
  71. package/dist/actions/import-historical-data.d.mts +3 -19
  72. package/dist/actions/import-historical-data.d.mts.map +1 -1
  73. package/dist/actions/import-historical-data.mjs +1 -0
  74. package/dist/actions/import-historical-data.mjs.map +1 -1
  75. package/dist/actions/list-connected-warehouses-from-source.cjs +1 -0
  76. package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
  77. package/dist/actions/list-connected-warehouses-from-source.d.cts +3 -21
  78. package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -1
  79. package/dist/actions/list-connected-warehouses-from-source.d.mts +3 -21
  80. package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -1
  81. package/dist/actions/list-connected-warehouses-from-source.mjs +1 -0
  82. package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
  83. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +1 -0
  84. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
  85. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +3 -21
  86. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -1
  87. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +3 -21
  88. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -1
  89. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +1 -0
  90. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
  91. package/dist/actions/list-schema-settings-in-source.cjs +1 -0
  92. package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
  93. package/dist/actions/list-schema-settings-in-source.d.cts +3 -17
  94. package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -1
  95. package/dist/actions/list-schema-settings-in-source.d.mts +3 -17
  96. package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -1
  97. package/dist/actions/list-schema-settings-in-source.mjs +1 -0
  98. package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
  99. package/dist/actions/page.cjs +1 -0
  100. package/dist/actions/page.cjs.map +1 -1
  101. package/dist/actions/page.d.cts +3 -25
  102. package/dist/actions/page.d.cts.map +1 -1
  103. package/dist/actions/page.d.mts +3 -25
  104. package/dist/actions/page.d.mts.map +1 -1
  105. package/dist/actions/page.mjs +1 -0
  106. package/dist/actions/page.mjs.map +1 -1
  107. package/dist/actions/remove-source-write-key.cjs +1 -0
  108. package/dist/actions/remove-source-write-key.cjs.map +1 -1
  109. package/dist/actions/remove-source-write-key.d.cts +3 -18
  110. package/dist/actions/remove-source-write-key.d.cts.map +1 -1
  111. package/dist/actions/remove-source-write-key.d.mts +3 -18
  112. package/dist/actions/remove-source-write-key.d.mts.map +1 -1
  113. package/dist/actions/remove-source-write-key.mjs +1 -0
  114. package/dist/actions/remove-source-write-key.mjs.map +1 -1
  115. package/dist/actions/screen.cjs +1 -0
  116. package/dist/actions/screen.cjs.map +1 -1
  117. package/dist/actions/screen.d.cts +3 -24
  118. package/dist/actions/screen.d.cts.map +1 -1
  119. package/dist/actions/screen.d.mts +3 -24
  120. package/dist/actions/screen.d.mts.map +1 -1
  121. package/dist/actions/screen.mjs +1 -0
  122. package/dist/actions/screen.mjs.map +1 -1
  123. package/dist/actions/track.cjs +1 -0
  124. package/dist/actions/track.cjs.map +1 -1
  125. package/dist/actions/track.d.cts +3 -24
  126. package/dist/actions/track.d.cts.map +1 -1
  127. package/dist/actions/track.d.mts +3 -24
  128. package/dist/actions/track.d.mts.map +1 -1
  129. package/dist/actions/track.mjs +1 -0
  130. package/dist/actions/track.mjs.map +1 -1
  131. package/dist/actions/update-source.cjs +1 -0
  132. package/dist/actions/update-source.cjs.map +1 -1
  133. package/dist/actions/update-source.d.cts +3 -21
  134. package/dist/actions/update-source.d.cts.map +1 -1
  135. package/dist/actions/update-source.d.mts +3 -21
  136. package/dist/actions/update-source.d.mts.map +1 -1
  137. package/dist/actions/update-source.mjs +1 -0
  138. package/dist/actions/update-source.mjs.map +1 -1
  139. package/dist/app.cjs +5 -4
  140. package/dist/app.cjs.map +1 -1
  141. package/dist/app.d.cts +4 -6
  142. package/dist/app.d.cts.map +1 -1
  143. package/dist/app.d.mts +4 -6
  144. package/dist/app.d.mts.map +1 -1
  145. package/dist/app.mjs +0 -1
  146. package/dist/app.mjs.map +1 -1
  147. package/dist/index.d.cts +1 -1
  148. package/dist/index.d.mts +1 -1
  149. package/package.json +2 -2
@@ -1,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,24 +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<"segment", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- region: z.ZodString;
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- region: z.ZodString;
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
15
+ declare const segmentRemoveSourceWriteKey: AppAction<typeof SegmentRemoveSourceWriteKeyInput, typeof SegmentRemoveSourceWriteKeyOutput, typeof segment.credential>;
31
16
  //#endregion
32
17
  export { segmentRemoveSourceWriteKey };
33
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,24 +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<"segment", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- region: z.ZodString;
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- region: z.ZodString;
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
15
+ declare const segmentRemoveSourceWriteKey: AppAction<typeof SegmentRemoveSourceWriteKeyInput, typeof SegmentRemoveSourceWriteKeyOutput, typeof segment.credential>;
31
16
  //#endregion
32
17
  export { segmentRemoveSourceWriteKey };
33
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,30 +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<"segment", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- region: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- region: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
17
+ declare const segmentScreen: AppAction<typeof SegmentScreenInput, typeof SegmentScreenOutput, typeof segment.credential>;
39
18
  //#endregion
40
19
  export { segmentScreen };
41
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,30 +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<"segment", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- region: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- region: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
17
+ declare const segmentScreen: AppAction<typeof SegmentScreenInput, typeof SegmentScreenOutput, typeof segment.credential>;
39
18
  //#endregion
40
19
  export { segmentScreen };
41
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,30 +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<"segment", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- region: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- region: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
17
+ declare const segmentTrack: AppAction<typeof SegmentTrackInput, typeof SegmentTrackOutput, typeof segment.credential>;
39
18
  //#endregion
40
19
  export { segmentTrack };
41
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,30 +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<"segment", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- region: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- region: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
17
+ declare const segmentTrack: AppAction<typeof SegmentTrackInput, typeof SegmentTrackOutput, typeof segment.credential>;
39
18
  //#endregion
40
19
  export { segmentTrack };
41
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
@@ -1 +1 @@
1
- {"version":3,"file":"update-source.cjs","names":["z","action"],"sources":["../../src/actions/update-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentUpdateSourceInput = z.object({\n name: z.string().describe(\"Human-readable name for the Source (displayName).\").optional(),\n slug: z.string().describe(\"Slug that identifies the Source (config name).\").optional(),\n enabled: z.boolean().describe(\"Whether the Source can send data.\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value settings specific to the Source type; see Sources catalog for required options.\").optional(),\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to update a Segment Source. Use alias 'sourceId' to identify the Source.\");\nconst SegmentUpdateSource_LogosSchema = z.object({\n alt: z.string().nullable().optional(),\n mark: z.string().nullable().optional(),\n \"default\": z.string().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_MetadataDetailSchema = z.object({\n id: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n logos: SegmentUpdateSource_LogosSchema.nullable().optional(),\n status: z.string().nullable().optional(),\n options: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n categories: z.array(z.string()).nullable().optional(),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable().optional(),\n isCloudEventSource: z.boolean().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_SourceModelSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n labels: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n enabled: z.boolean().nullable().optional(),\n metadata: SegmentUpdateSource_MetadataDetailSchema.nullable().optional(),\n settings: z.record(z.string(), z.unknown()).nullable().optional(),\n writeKeys: z.array(z.string()).nullable().optional(),\n workspaceId: z.string().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_UpdateSourceDataSchema = z.object({\n source: SegmentUpdateSource_SourceModelSchema.nullable(),\n}).passthrough().describe(\"Envelope for the updated Source.\");\nexport const SegmentUpdateSourceOutput = z.object({\n data: SegmentUpdateSource_UpdateSourceDataSchema.nullable(),\n}).passthrough().describe(\"Response model for updated Source.\");\n\nexport const segmentUpdateSource = action(\"SEGMENT_UPDATE_SOURCE\", {\n slug: \"segment-update-source\",\n name: \"Update Source\",\n description: \"Tool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.\",\n input: SegmentUpdateSourceInput,\n output: SegmentUpdateSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACzE,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,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AS;CACrC,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzC,UAAU,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9C,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,QAAQ,sCAAsC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-source.cjs","names":["z","action"],"sources":["../../src/actions/update-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 SegmentUpdateSourceInput = z.object({\n name: z.string().describe(\"Human-readable name for the Source (displayName).\").optional(),\n slug: z.string().describe(\"Slug that identifies the Source (config name).\").optional(),\n enabled: z.boolean().describe(\"Whether the Source can send data.\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value settings specific to the Source type; see Sources catalog for required options.\").optional(),\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to update a Segment Source. Use alias 'sourceId' to identify the Source.\");\nconst SegmentUpdateSource_LogosSchema = z.object({\n alt: z.string().nullable().optional(),\n mark: z.string().nullable().optional(),\n \"default\": z.string().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_MetadataDetailSchema = z.object({\n id: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n logos: SegmentUpdateSource_LogosSchema.nullable().optional(),\n status: z.string().nullable().optional(),\n options: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n categories: z.array(z.string()).nullable().optional(),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable().optional(),\n isCloudEventSource: z.boolean().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_SourceModelSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n labels: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n enabled: z.boolean().nullable().optional(),\n metadata: SegmentUpdateSource_MetadataDetailSchema.nullable().optional(),\n settings: z.record(z.string(), z.unknown()).nullable().optional(),\n writeKeys: z.array(z.string()).nullable().optional(),\n workspaceId: z.string().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_UpdateSourceDataSchema = z.object({\n source: SegmentUpdateSource_SourceModelSchema.nullable(),\n}).passthrough().describe(\"Envelope for the updated Source.\");\nexport const SegmentUpdateSourceOutput = z.object({\n data: SegmentUpdateSource_UpdateSourceDataSchema.nullable(),\n}).passthrough().describe(\"Response model for updated Source.\");\n\nexport const segmentUpdateSource: AppAction<\n typeof SegmentUpdateSourceInput,\n typeof SegmentUpdateSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_UPDATE_SOURCE\", {\n slug: \"segment-update-source\",\n name: \"Update Source\",\n description: \"Tool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.\",\n input: SegmentUpdateSourceInput,\n output: SegmentUpdateSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACzE,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5C,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,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AC,SAAS;CACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9C,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,QAAQ,sCAAsC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/update-source.d.ts
@@ -38,27 +40,7 @@ declare const SegmentUpdateSourceOutput: z.ZodObject<{
38
40
  }, z.core.$loose>>;
39
41
  }, z.core.$loose>>;
40
42
  }, z.core.$loose>;
41
- declare const segmentUpdateSource: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- sourceId: string;
43
- name?: string | undefined;
44
- slug?: string | undefined;
45
- enabled?: boolean | undefined;
46
- settings?: Record<string, unknown> | undefined;
47
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- region: z.ZodString;
53
- generic_api_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- region: z.ZodString;
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
43
+ declare const segmentUpdateSource: AppAction<typeof SegmentUpdateSourceInput, typeof SegmentUpdateSourceOutput, typeof segment.credential>;
62
44
  //#endregion
63
45
  export { segmentUpdateSource };
64
46
  //# sourceMappingURL=update-source.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-source.d.cts","names":[],"sources":["../../src/actions/update-source.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAsCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-source.d.cts","names":[],"sources":["../../src/actions/update-source.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAsCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/update-source.d.ts
@@ -38,27 +40,7 @@ declare const SegmentUpdateSourceOutput: z.ZodObject<{
38
40
  }, z.core.$loose>>;
39
41
  }, z.core.$loose>>;
40
42
  }, z.core.$loose>;
41
- declare const segmentUpdateSource: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- sourceId: string;
43
- name?: string | undefined;
44
- slug?: string | undefined;
45
- enabled?: boolean | undefined;
46
- settings?: Record<string, unknown> | undefined;
47
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- region: z.ZodString;
53
- generic_api_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- region: z.ZodString;
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
43
+ declare const segmentUpdateSource: AppAction<typeof SegmentUpdateSourceInput, typeof SegmentUpdateSourceOutput, typeof segment.credential>;
62
44
  //#endregion
63
45
  export { segmentUpdateSource };
64
46
  //# sourceMappingURL=update-source.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-source.d.mts","names":[],"sources":["../../src/actions/update-source.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAsCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-source.d.mts","names":[],"sources":["../../src/actions/update-source.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAsCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/update-source.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-source.mjs","names":[],"sources":["../../src/actions/update-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentUpdateSourceInput = z.object({\n name: z.string().describe(\"Human-readable name for the Source (displayName).\").optional(),\n slug: z.string().describe(\"Slug that identifies the Source (config name).\").optional(),\n enabled: z.boolean().describe(\"Whether the Source can send data.\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value settings specific to the Source type; see Sources catalog for required options.\").optional(),\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to update a Segment Source. Use alias 'sourceId' to identify the Source.\");\nconst SegmentUpdateSource_LogosSchema = z.object({\n alt: z.string().nullable().optional(),\n mark: z.string().nullable().optional(),\n \"default\": z.string().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_MetadataDetailSchema = z.object({\n id: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n logos: SegmentUpdateSource_LogosSchema.nullable().optional(),\n status: z.string().nullable().optional(),\n options: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n categories: z.array(z.string()).nullable().optional(),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable().optional(),\n isCloudEventSource: z.boolean().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_SourceModelSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n labels: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n enabled: z.boolean().nullable().optional(),\n metadata: SegmentUpdateSource_MetadataDetailSchema.nullable().optional(),\n settings: z.record(z.string(), z.unknown()).nullable().optional(),\n writeKeys: z.array(z.string()).nullable().optional(),\n workspaceId: z.string().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_UpdateSourceDataSchema = z.object({\n source: SegmentUpdateSource_SourceModelSchema.nullable(),\n}).passthrough().describe(\"Envelope for the updated Source.\");\nexport const SegmentUpdateSourceOutput = z.object({\n data: SegmentUpdateSource_UpdateSourceDataSchema.nullable(),\n}).passthrough().describe(\"Response model for updated Source.\");\n\nexport const segmentUpdateSource = action(\"SEGMENT_UPDATE_SOURCE\", {\n slug: \"segment-update-source\",\n name: \"Update Source\",\n description: \"Tool to update a Source's metadata and settings. Use when you need to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CAAC,SAAS,oCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-source.mjs","names":[],"sources":["../../src/actions/update-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 SegmentUpdateSourceInput = z.object({\n name: z.string().describe(\"Human-readable name for the Source (displayName).\").optional(),\n slug: z.string().describe(\"Slug that identifies the Source (config name).\").optional(),\n enabled: z.boolean().describe(\"Whether the Source can send data.\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value settings specific to the Source type; see Sources catalog for required options.\").optional(),\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to update a Segment Source. Use alias 'sourceId' to identify the Source.\");\nconst SegmentUpdateSource_LogosSchema = z.object({\n alt: z.string().nullable().optional(),\n mark: z.string().nullable().optional(),\n \"default\": z.string().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_MetadataDetailSchema = z.object({\n id: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n logos: SegmentUpdateSource_LogosSchema.nullable().optional(),\n status: z.string().nullable().optional(),\n options: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n categories: z.array(z.string()).nullable().optional(),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable().optional(),\n isCloudEventSource: z.boolean().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_SourceModelSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n labels: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n enabled: z.boolean().nullable().optional(),\n metadata: SegmentUpdateSource_MetadataDetailSchema.nullable().optional(),\n settings: z.record(z.string(), z.unknown()).nullable().optional(),\n writeKeys: z.array(z.string()).nullable().optional(),\n workspaceId: z.string().nullable().optional(),\n}).passthrough();\nconst SegmentUpdateSource_UpdateSourceDataSchema = z.object({\n source: SegmentUpdateSource_SourceModelSchema.nullable(),\n}).passthrough().describe(\"Envelope for the updated Source.\");\nexport const SegmentUpdateSourceOutput = z.object({\n data: SegmentUpdateSource_UpdateSourceDataSchema.nullable(),\n}).passthrough().describe(\"Response model for updated Source.\");\n\nexport const segmentUpdateSource: AppAction<\n typeof SegmentUpdateSourceInput,\n typeof SegmentUpdateSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_UPDATE_SOURCE\", {\n slug: \"segment-update-source\",\n name: \"Update Source\",\n description: \"Tool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.\",\n input: SegmentUpdateSourceInput,\n output: SegmentUpdateSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACzE,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,kCAAkC,EAAE,OAAO;CAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5C,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnC,MA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a,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9C,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6C,EAAE,OAAO,EAC1D,QAAQ,sCAAsC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAK5D,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,13 +1,14 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
2
  let zod = require("zod");
3
3
  //#region src/app.ts
4
+ const credential = {
5
+ region: zod.z.string(),
6
+ generic_api_key: zod.z.string()
7
+ };
4
8
  const segment = (0, _keystrokehq_keystroke_app.defineApp)({
5
9
  slug: "segment",
6
10
  auth: "keystroke",
7
- credential: {
8
- region: zod.z.string(),
9
- generic_api_key: zod.z.string()
10
- }
11
+ credential
11
12
  });
12
13
  //#endregion
13
14
  exports.segment = segment;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const segment = defineApp({\n slug: \"segment\",\n auth: \"keystroke\",\n credential: {\n region: z.string(),\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;CACN,YAAY;EACV,QAAQA,IAAAA,EAAE,OAAO;EACjB,iBAAiBA,IAAAA,EAAE,OAAO;CAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n region: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const segment: KeystrokeApp<\"segment\", typeof credential> = defineApp({\n slug: \"segment\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,QAAQA,IAAAA,EAAE,OAAO;CACjB,iBAAiBA,IAAAA,EAAE,OAAO;AAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,14 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const segment: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  region: z.ZodString;
10
7
  generic_api_key: z.ZodString;
11
- }, z.core.$strip>>>;
8
+ };
9
+ declare const segment: KeystrokeApp<"segment", typeof credential>;
12
10
  //#endregion
13
11
  export { segment };
14
12
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,OAAA,6BAAO,GAAA,+BAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;UAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,14 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const segment: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  region: z.ZodString;
10
7
  generic_api_key: z.ZodString;
11
- }, z.core.$strip>>>;
8
+ };
9
+ declare const segment: KeystrokeApp<"segment", typeof credential>;
12
10
  //#endregion
13
11
  export { segment };
14
12
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,OAAA,6BAAO,GAAA,+BAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;UAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const segment = defineApp({
5
4
  slug: "segment",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const segment = defineApp({\n slug: \"segment\",\n auth: \"keystroke\",\n credential: {\n region: z.string(),\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;CACN,YAAY;EACV,QAAQ,EAAE,OAAO;EACjB,iBAAiB,EAAE,OAAO;CAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n region: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const segment: KeystrokeApp<\"segment\", typeof credential> = defineApp({\n slug: \"segment\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN;EAPA,QAAQ,EAAE,OAAO;EACjB,iBAAiB,EAAE,OAAO;CAM1B;AACF,CAAC"}