@keystrokehq/segment 0.1.0 → 0.1.3

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 (145) 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 +6 -6
  4. package/dist/actions/add-labels-to-source.cjs.map +1 -1
  5. package/dist/actions/add-labels-to-source.d.cts +23 -3
  6. package/dist/actions/add-labels-to-source.d.cts.map +1 -1
  7. package/dist/actions/add-labels-to-source.d.mts +23 -3
  8. package/dist/actions/add-labels-to-source.d.mts.map +1 -1
  9. package/dist/actions/add-labels-to-source.mjs +6 -6
  10. package/dist/actions/add-labels-to-source.mjs.map +1 -1
  11. package/dist/actions/alias.cjs +2 -2
  12. package/dist/actions/alias.cjs.map +1 -1
  13. package/dist/actions/alias.d.cts +17 -3
  14. package/dist/actions/alias.d.cts.map +1 -1
  15. package/dist/actions/alias.d.mts +17 -3
  16. package/dist/actions/alias.d.mts.map +1 -1
  17. package/dist/actions/alias.mjs +2 -2
  18. package/dist/actions/alias.mjs.map +1 -1
  19. package/dist/actions/batch.cjs +1 -1
  20. package/dist/actions/batch.cjs.map +1 -1
  21. package/dist/actions/batch.d.cts +13 -3
  22. package/dist/actions/batch.d.cts.map +1 -1
  23. package/dist/actions/batch.d.mts +13 -3
  24. package/dist/actions/batch.d.mts.map +1 -1
  25. package/dist/actions/batch.mjs +1 -1
  26. package/dist/actions/batch.mjs.map +1 -1
  27. package/dist/actions/delete-source.cjs +2 -2
  28. package/dist/actions/delete-source.cjs.map +1 -1
  29. package/dist/actions/delete-source.d.cts +11 -3
  30. package/dist/actions/delete-source.d.cts.map +1 -1
  31. package/dist/actions/delete-source.d.mts +11 -3
  32. package/dist/actions/delete-source.d.mts.map +1 -1
  33. package/dist/actions/delete-source.mjs +2 -2
  34. package/dist/actions/delete-source.mjs.map +1 -1
  35. package/dist/actions/get-daily-per-source-api-calls-usage.cjs +9 -9
  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 +29 -3
  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 +29 -3
  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 +9 -9
  42. package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
  43. package/dist/actions/get-destination.cjs +35 -35
  44. package/dist/actions/get-destination.cjs.map +1 -1
  45. package/dist/actions/get-destination.d.cts +65 -3
  46. package/dist/actions/get-destination.d.cts.map +1 -1
  47. package/dist/actions/get-destination.d.mts +65 -3
  48. package/dist/actions/get-destination.d.mts.map +1 -1
  49. package/dist/actions/get-destination.mjs +35 -35
  50. package/dist/actions/get-destination.mjs.map +1 -1
  51. package/dist/actions/group.cjs +2 -2
  52. package/dist/actions/group.cjs.map +1 -1
  53. package/dist/actions/group.d.cts +21 -3
  54. package/dist/actions/group.d.cts.map +1 -1
  55. package/dist/actions/group.d.mts +21 -3
  56. package/dist/actions/group.d.mts.map +1 -1
  57. package/dist/actions/group.mjs +2 -2
  58. package/dist/actions/group.mjs.map +1 -1
  59. package/dist/actions/identify.cjs +2 -2
  60. package/dist/actions/identify.cjs.map +1 -1
  61. package/dist/actions/identify.d.cts +21 -3
  62. package/dist/actions/identify.d.cts.map +1 -1
  63. package/dist/actions/identify.d.mts +21 -3
  64. package/dist/actions/identify.d.mts.map +1 -1
  65. package/dist/actions/identify.mjs +2 -2
  66. package/dist/actions/identify.mjs.map +1 -1
  67. package/dist/actions/import-historical-data.cjs +1 -1
  68. package/dist/actions/import-historical-data.cjs.map +1 -1
  69. package/dist/actions/import-historical-data.d.cts +13 -3
  70. package/dist/actions/import-historical-data.d.cts.map +1 -1
  71. package/dist/actions/import-historical-data.d.mts +13 -3
  72. package/dist/actions/import-historical-data.d.mts.map +1 -1
  73. package/dist/actions/import-historical-data.mjs +1 -1
  74. package/dist/actions/import-historical-data.mjs.map +1 -1
  75. package/dist/actions/list-connected-warehouses-from-source.cjs +23 -23
  76. package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
  77. package/dist/actions/list-connected-warehouses-from-source.d.cts +44 -3
  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 +44 -3
  80. package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -1
  81. package/dist/actions/list-connected-warehouses-from-source.mjs +23 -23
  82. package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
  83. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +10 -10
  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 +34 -3
  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 +34 -3
  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 +10 -10
  90. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
  91. package/dist/actions/list-schema-settings-in-source.cjs +7 -7
  92. package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
  93. package/dist/actions/list-schema-settings-in-source.d.cts +32 -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 +32 -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 +7 -7
  98. package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
  99. package/dist/actions/page.cjs +2 -2
  100. package/dist/actions/page.cjs.map +1 -1
  101. package/dist/actions/page.d.cts +23 -3
  102. package/dist/actions/page.d.cts.map +1 -1
  103. package/dist/actions/page.d.mts +23 -3
  104. package/dist/actions/page.d.mts.map +1 -1
  105. package/dist/actions/page.mjs +2 -2
  106. package/dist/actions/page.mjs.map +1 -1
  107. package/dist/actions/remove-source-write-key.cjs +2 -2
  108. package/dist/actions/remove-source-write-key.cjs.map +1 -1
  109. package/dist/actions/remove-source-write-key.d.cts +13 -3
  110. package/dist/actions/remove-source-write-key.d.cts.map +1 -1
  111. package/dist/actions/remove-source-write-key.d.mts +13 -3
  112. package/dist/actions/remove-source-write-key.d.mts.map +1 -1
  113. package/dist/actions/remove-source-write-key.mjs +2 -2
  114. package/dist/actions/remove-source-write-key.mjs.map +1 -1
  115. package/dist/actions/screen.cjs +1 -1
  116. package/dist/actions/screen.cjs.map +1 -1
  117. package/dist/actions/screen.d.cts +21 -3
  118. package/dist/actions/screen.d.cts.map +1 -1
  119. package/dist/actions/screen.d.mts +21 -3
  120. package/dist/actions/screen.d.mts.map +1 -1
  121. package/dist/actions/screen.mjs +1 -1
  122. package/dist/actions/screen.mjs.map +1 -1
  123. package/dist/actions/track.cjs +2 -2
  124. package/dist/actions/track.cjs.map +1 -1
  125. package/dist/actions/track.d.cts +21 -3
  126. package/dist/actions/track.d.cts.map +1 -1
  127. package/dist/actions/track.d.mts +21 -3
  128. package/dist/actions/track.d.mts.map +1 -1
  129. package/dist/actions/track.mjs +2 -2
  130. package/dist/actions/track.mjs.map +1 -1
  131. package/dist/actions/update-source.cjs +6 -6
  132. package/dist/actions/update-source.cjs.map +1 -1
  133. package/dist/actions/update-source.d.cts +44 -3
  134. package/dist/actions/update-source.d.cts.map +1 -1
  135. package/dist/actions/update-source.d.mts +44 -3
  136. package/dist/actions/update-source.d.mts.map +1 -1
  137. package/dist/actions/update-source.mjs +6 -6
  138. package/dist/actions/update-source.mjs.map +1 -1
  139. package/dist/catalog.cjs +13 -1
  140. package/dist/catalog.cjs.map +1 -1
  141. package/dist/catalog.d.cts +12 -0
  142. package/dist/catalog.d.mts +12 -0
  143. package/dist/catalog.mjs +13 -1
  144. package/dist/catalog.mjs.map +1 -1
  145. package/package.json +2 -2
@@ -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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({}).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,mBAAiCA,IAAAA,EAAE,OAAO;CACrD,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4HAA4H;AACxI,MAAa,oBAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAE1K,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 { 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,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/page.d.ts
4
- declare const SegmentPageInput: z.ZodTypeAny;
5
- declare const SegmentPageOutput: z.ZodTypeAny;
6
- declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentPageInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ messageId: z.ZodOptional<z.ZodString>;
10
+ timestamp: z.ZodOptional<z.ZodString>;
11
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ anonymousId: z.ZodOptional<z.ZodString>;
13
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ }, z.core.$strip>;
15
+ 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]>;
7
27
  //#endregion
8
28
  export { segmentPage };
9
29
  //# sourceMappingURL=page.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.cts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAkB,CAAA,CAAE,UAUwG;AAAA,cAC5H,iBAAA,EAAmB,CAAA,CAAE,UAAyI;AAAA,cAE9J,WAAA,gCAAW,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/page.d.ts
4
- declare const SegmentPageInput: z.ZodTypeAny;
5
- declare const SegmentPageOutput: z.ZodTypeAny;
6
- declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentPageInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ messageId: z.ZodOptional<z.ZodString>;
10
+ timestamp: z.ZodOptional<z.ZodString>;
11
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ anonymousId: z.ZodOptional<z.ZodString>;
13
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ }, z.core.$strip>;
15
+ 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]>;
7
27
  //#endregion
8
28
  export { segmentPage };
9
29
  //# sourceMappingURL=page.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.mts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAkB,CAAA,CAAE,UAUwG;AAAA,cAC5H,iBAAA,EAAmB,CAAA,CAAE,UAAyI;AAAA,cAE9J,WAAA,gCAAW,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -13,9 +13,9 @@ const segmentPage = action("SEGMENT_PAGE", {
13
13
  timestamp: z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
14
14
  properties: z.record(z.string(), z.unknown()).describe("Free-form dictionary of page properties (e.g., path, url).").optional(),
15
15
  anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
16
- integrations: z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
16
+ integrations: z.record(z.string(), z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
17
17
  }).describe("Request model for recording a page view via Segment HTTP Tracking API.\nOne of 'userId' or 'anonymousId' must be provided."),
18
- output: z.object({}).describe("Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.")
18
+ output: z.record(z.string(), z.unknown()).describe("Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.")
19
19
  });
20
20
  //#endregion
21
21
  export { segmentPage };
@@ -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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({}).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,OAjB4C,EAAE,OAAO;EACrD,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,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,4HAOH;CACP,QAP6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGAO3D;AACV,CAAC"}
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"}
@@ -5,8 +5,8 @@ const SegmentRemoveSourceWriteKeyInput = zod.z.object({
5
5
  sourceId: zod.z.string().describe("The unique identifier of the Source."),
6
6
  writeKey: zod.z.string().describe("The write key to remove from the Source.")
7
7
  }).describe("Request parameters for removing a write key from a Segment Source.");
8
- const SegmentRemoveSourceWriteKey_RemoveStatusSchema = zod.z.object({ status: zod.z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.") });
9
- const SegmentRemoveSourceWriteKeyOutput = zod.z.object({ data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable() }).describe("Response schema for removing a write key from a Source.");
8
+ const SegmentRemoveSourceWriteKey_RemoveStatusSchema = zod.z.object({ status: zod.z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.").nullable() }).passthrough();
9
+ const SegmentRemoveSourceWriteKeyOutput = zod.z.object({ data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable() }).passthrough().describe("Response schema for removing a write key from a Source.");
10
10
  const segmentRemoveSourceWriteKey = require_action.action("SEGMENT_REMOVE_SOURCE_WRITE_KEY", {
11
11
  slug: "segment-remove-source-write-key",
12
12
  name: "Remove Source Write Key",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\"),\n});\nexport const SegmentRemoveSourceWriteKeyOutput: z.ZodTypeAny = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).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,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,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,iDAA+DA,IAAAA,EAAE,OAAO,EAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EACjF,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,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 { 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,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/remove-source-write-key.d.ts
4
- declare const SegmentRemoveSourceWriteKeyInput: z.ZodTypeAny;
5
- declare const SegmentRemoveSourceWriteKeyOutput: z.ZodTypeAny;
6
- declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentRemoveSourceWriteKeyInput: z.ZodObject<{
5
+ sourceId: z.ZodString;
6
+ writeKey: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SegmentRemoveSourceWriteKeyOutput: z.ZodObject<{
9
+ data: z.ZodNullable<z.ZodObject<{
10
+ status: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$loose>>;
12
+ }, 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]>;
7
17
  //#endregion
8
18
  export { segmentRemoveSourceWriteKey };
9
19
  //# 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,EAAkC,CAAA,CAAE,UAGgC;AAAA,cAIpE,iCAAA,EAAmC,CAAA,CAAE,UAEoB;AAAA,cAEzD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/remove-source-write-key.d.ts
4
- declare const SegmentRemoveSourceWriteKeyInput: z.ZodTypeAny;
5
- declare const SegmentRemoveSourceWriteKeyOutput: z.ZodTypeAny;
6
- declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentRemoveSourceWriteKeyInput: z.ZodObject<{
5
+ sourceId: z.ZodString;
6
+ writeKey: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SegmentRemoveSourceWriteKeyOutput: z.ZodObject<{
9
+ data: z.ZodNullable<z.ZodObject<{
10
+ status: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$loose>>;
12
+ }, 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]>;
7
17
  //#endregion
8
18
  export { segmentRemoveSourceWriteKey };
9
19
  //# 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,EAAkC,CAAA,CAAE,UAGgC;AAAA,cAIpE,iCAAA,EAAmC,CAAA,CAAE,UAEoB;AAAA,cAEzD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -5,13 +5,13 @@ const SegmentRemoveSourceWriteKeyInput = z.object({
5
5
  sourceId: z.string().describe("The unique identifier of the Source."),
6
6
  writeKey: z.string().describe("The write key to remove from the Source.")
7
7
  }).describe("Request parameters for removing a write key from a Segment Source.");
8
- const SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({ status: z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.") });
8
+ const SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({ status: z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.").nullable() }).passthrough();
9
9
  const segmentRemoveSourceWriteKey = action("SEGMENT_REMOVE_SOURCE_WRITE_KEY", {
10
10
  slug: "segment-remove-source-write-key",
11
11
  name: "Remove Source Write Key",
12
12
  description: "Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.",
13
13
  input: SegmentRemoveSourceWriteKeyInput,
14
- output: z.object({ data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable() }).describe("Response schema for removing a write key from a Source.")
14
+ output: z.object({ data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable() }).passthrough().describe("Response schema for removing a write key from a Source.")
15
15
  });
16
16
  //#endregion
17
17
  export { segmentRemoveSourceWriteKey };
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\"),\n});\nexport const SegmentRemoveSourceWriteKeyOutput: z.ZodTypeAny = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).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,mCAAiD,EAAE,OAAO;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAA+D,EAAE,OAAO,EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EACjF,CAAC;AAKD,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
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"}
@@ -11,7 +11,7 @@ const SegmentScreenInput = zod.z.object({
11
11
  anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
12
12
  integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
13
13
  }).describe("Request model for recording a screen view via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
14
- const SegmentScreenOutput = zod.z.object({}).describe("Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.");
14
+ const SegmentScreenOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.");
15
15
  const segmentScreen = require_action.action("SEGMENT_SCREEN", {
16
16
  slug: "segment-screen",
17
17
  name: "Segment Screen Event",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({}).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,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,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,sBAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAE/K,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 { 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,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/screen.d.ts
4
- declare const SegmentScreenInput: z.ZodTypeAny;
5
- declare const SegmentScreenOutput: z.ZodTypeAny;
6
- declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentScreenInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ timestamp: z.ZodOptional<z.ZodString>;
10
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ anonymousId: z.ZodOptional<z.ZodString>;
12
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ 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]>;
7
25
  //#endregion
8
26
  export { segmentScreen };
9
27
  //# sourceMappingURL=screen.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.d.cts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UASgH;AAAA,cACtI,mBAAA,EAAqB,CAAA,CAAE,UAA4I;AAAA,cAEnK,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/screen.d.ts
4
- declare const SegmentScreenInput: z.ZodTypeAny;
5
- declare const SegmentScreenOutput: z.ZodTypeAny;
6
- declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentScreenInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ timestamp: z.ZodOptional<z.ZodString>;
10
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ anonymousId: z.ZodOptional<z.ZodString>;
12
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ 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]>;
7
25
  //#endregion
8
26
  export { segmentScreen };
9
27
  //# sourceMappingURL=screen.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.d.mts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UASgH;AAAA,cACtI,mBAAA,EAAqB,CAAA,CAAE,UAA4I;AAAA,cAEnK,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -14,7 +14,7 @@ const segmentScreen = action("SEGMENT_SCREEN", {
14
14
  anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
15
15
  integrations: z.record(z.string(), z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
16
16
  }).describe("Request model for recording a screen view via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
17
- output: z.object({}).describe("Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.")
17
+ output: z.record(z.string(), z.unknown()).describe("Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.")
18
18
  });
19
19
  //#endregion
20
20
  export { segmentScreen };
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({}).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,OAhB8C,EAAE,OAAO;EACvD,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,QAP+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAO7D;AACV,CAAC"}
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"}
@@ -9,9 +9,9 @@ const SegmentTrackInput = zod.z.object({
9
9
  timestamp: zod.z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
10
10
  properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of event-specific properties (e.g., revenue).").optional(),
11
11
  anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
12
- integrations: zod.z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
12
+ integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
13
13
  }).describe("Request model for recording a user event via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
14
- const SegmentTrackOutput = zod.z.object({}).describe("Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.");
14
+ const SegmentTrackOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.");
15
15
  const segmentTrack = require_action.action("SEGMENT_TRACK", {
16
16
  slug: "segment-track",
17
17
  name: "Segment Track Event",
@@ -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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({}).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,oBAAkCA,IAAAA,EAAE,OAAO;CACtD,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,qIAAqI;AACjJ,MAAa,qBAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAEvK,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 { 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,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/track.d.ts
4
- declare const SegmentTrackInput: z.ZodTypeAny;
5
- declare const SegmentTrackOutput: z.ZodTypeAny;
6
- declare const segmentTrack: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentTrackInput: z.ZodObject<{
5
+ event: z.ZodString;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ timestamp: z.ZodOptional<z.ZodString>;
10
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ anonymousId: z.ZodOptional<z.ZodString>;
12
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ 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]>;
7
25
  //#endregion
8
26
  export { segmentTrack };
9
27
  //# sourceMappingURL=track.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"track.d.cts","names":[],"sources":["../../src/actions/track.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UASgH;AAAA,cACrI,kBAAA,EAAoB,CAAA,CAAE,UAAqI;AAAA,cAE3J,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/track.d.ts
4
- declare const SegmentTrackInput: z.ZodTypeAny;
5
- declare const SegmentTrackOutput: z.ZodTypeAny;
6
- declare const segmentTrack: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentTrackInput: z.ZodObject<{
5
+ event: z.ZodString;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ timestamp: z.ZodOptional<z.ZodString>;
10
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ anonymousId: z.ZodOptional<z.ZodString>;
12
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ 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]>;
7
25
  //#endregion
8
26
  export { segmentTrack };
9
27
  //# sourceMappingURL=track.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"track.d.mts","names":[],"sources":["../../src/actions/track.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UASgH;AAAA,cACrI,kBAAA,EAAoB,CAAA,CAAE,UAAqI;AAAA,cAE3J,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -12,9 +12,9 @@ const segmentTrack = action("SEGMENT_TRACK", {
12
12
  timestamp: z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
13
13
  properties: z.record(z.string(), z.unknown()).describe("Free-form dictionary of event-specific properties (e.g., revenue).").optional(),
14
14
  anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
15
- integrations: z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
15
+ integrations: z.record(z.string(), z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
16
16
  }).describe("Request model for recording a user event via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
17
- output: z.object({}).describe("Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.")
17
+ output: z.record(z.string(), z.unknown()).describe("Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.")
18
18
  });
19
19
  //#endregion
20
20
  export { segmentTrack };
@@ -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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({}).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,OAhB6C,EAAE,OAAO;EACtD,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,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,qIAOH;CACP,QAP8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAO5D;AACV,CAAC"}
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"}
@@ -12,7 +12,7 @@ const SegmentUpdateSource_LogosSchema = zod.z.object({
12
12
  alt: zod.z.string().nullable().optional(),
13
13
  mark: zod.z.string().nullable().optional(),
14
14
  "default": zod.z.string().nullable().optional()
15
- });
15
+ }).passthrough();
16
16
  const SegmentUpdateSource_MetadataDetailSchema = zod.z.object({
17
17
  id: zod.z.string().nullable().optional(),
18
18
  name: zod.z.string().nullable().optional(),
@@ -24,9 +24,9 @@ const SegmentUpdateSource_MetadataDetailSchema = zod.z.object({
24
24
  description: zod.z.string().nullable().optional(),
25
25
  partnerOwned: zod.z.boolean().nullable().optional(),
26
26
  isCloudEventSource: zod.z.boolean().nullable().optional()
27
- });
27
+ }).passthrough();
28
28
  const SegmentUpdateSource_SourceModelSchema = zod.z.object({
29
- id: zod.z.string(),
29
+ id: zod.z.string().nullable(),
30
30
  name: zod.z.string().nullable().optional(),
31
31
  slug: zod.z.string().nullable().optional(),
32
32
  labels: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).nullable().optional(),
@@ -35,9 +35,9 @@ const SegmentUpdateSource_SourceModelSchema = zod.z.object({
35
35
  settings: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
36
36
  writeKeys: zod.z.array(zod.z.string()).nullable().optional(),
37
37
  workspaceId: zod.z.string().nullable().optional()
38
- });
39
- const SegmentUpdateSource_UpdateSourceDataSchema = zod.z.object({ source: SegmentUpdateSource_SourceModelSchema.nullable() }).describe("Envelope for the updated Source.");
40
- const SegmentUpdateSourceOutput = zod.z.object({ data: SegmentUpdateSource_UpdateSourceDataSchema.nullable() }).describe("Response model for updated Source.");
38
+ }).passthrough();
39
+ const SegmentUpdateSource_UpdateSourceDataSchema = zod.z.object({ source: SegmentUpdateSource_SourceModelSchema.nullable() }).passthrough().describe("Envelope for the updated Source.");
40
+ const SegmentUpdateSourceOutput = zod.z.object({ data: SegmentUpdateSource_UpdateSourceDataSchema.nullable() }).passthrough().describe("Response model for updated Source.");
41
41
  const segmentUpdateSource = require_action.action("SEGMENT_UPDATE_SOURCE", {
42
42
  slug: "segment-update-source",
43
43
  name: "Update Source",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n alt: z.string().nullable().optional(),\n mark: z.string().nullable().optional(),\n \"default\": z.string().nullable().optional(),\n});\nconst SegmentUpdateSource_MetadataDetailSchema: z.ZodTypeAny = 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});\nconst SegmentUpdateSource_SourceModelSchema: z.ZodTypeAny = z.object({\n id: z.string(),\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});\nconst SegmentUpdateSource_UpdateSourceDataSchema: z.ZodTypeAny = z.object({\n source: SegmentUpdateSource_SourceModelSchema.nullable(),\n}).describe(\"Envelope for the updated Source.\");\nexport const SegmentUpdateSourceOutput: z.ZodTypeAny = z.object({\n data: SegmentUpdateSource_UpdateSourceDataSchema.nullable(),\n}).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":"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"}
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":"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"}