@keystrokehq/segment 0.0.16 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +10 -104
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-labels-to-source.cjs +27 -0
  7. package/dist/actions/add-labels-to-source.cjs.map +1 -0
  8. package/dist/actions/add-labels-to-source.d.cts +28 -0
  9. package/dist/actions/add-labels-to-source.d.cts.map +1 -0
  10. package/dist/actions/add-labels-to-source.d.mts +28 -0
  11. package/dist/actions/add-labels-to-source.d.mts.map +1 -0
  12. package/dist/actions/add-labels-to-source.mjs +26 -0
  13. package/dist/actions/add-labels-to-source.mjs.map +1 -0
  14. package/dist/actions/alias.cjs +23 -0
  15. package/dist/actions/alias.cjs.map +1 -0
  16. package/dist/actions/alias.d.cts +23 -0
  17. package/dist/actions/alias.d.cts.map +1 -0
  18. package/dist/actions/alias.d.mts +23 -0
  19. package/dist/actions/alias.d.mts.map +1 -0
  20. package/dist/actions/alias.mjs +20 -0
  21. package/dist/actions/alias.mjs.map +1 -0
  22. package/dist/actions/batch.cjs +21 -0
  23. package/dist/actions/batch.cjs.map +1 -0
  24. package/dist/actions/batch.d.cts +19 -0
  25. package/dist/actions/batch.d.cts.map +1 -0
  26. package/dist/actions/batch.d.mts +19 -0
  27. package/dist/actions/batch.d.mts.map +1 -0
  28. package/dist/actions/batch.mjs +18 -0
  29. package/dist/actions/batch.mjs.map +1 -0
  30. package/dist/actions/delete-source.cjs +17 -0
  31. package/dist/actions/delete-source.cjs.map +1 -0
  32. package/dist/actions/delete-source.d.cts +17 -0
  33. package/dist/actions/delete-source.d.cts.map +1 -0
  34. package/dist/actions/delete-source.d.mts +17 -0
  35. package/dist/actions/delete-source.d.mts.map +1 -0
  36. package/dist/actions/delete-source.mjs +16 -0
  37. package/dist/actions/delete-source.mjs.map +1 -0
  38. package/dist/actions/get-daily-per-source-api-calls-usage.cjs +37 -0
  39. package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -0
  40. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +35 -0
  41. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -0
  42. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +35 -0
  43. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -0
  44. package/dist/actions/get-daily-per-source-api-calls-usage.mjs +36 -0
  45. package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -0
  46. package/dist/actions/get-destination.cjs +78 -0
  47. package/dist/actions/get-destination.cjs.map +1 -0
  48. package/dist/actions/get-destination.d.cts +71 -0
  49. package/dist/actions/get-destination.d.cts.map +1 -0
  50. package/dist/actions/get-destination.d.mts +71 -0
  51. package/dist/actions/get-destination.d.mts.map +1 -0
  52. package/dist/actions/get-destination.mjs +77 -0
  53. package/dist/actions/get-destination.mjs.map +1 -0
  54. package/dist/actions/group.cjs +25 -0
  55. package/dist/actions/group.cjs.map +1 -0
  56. package/dist/actions/group.d.cts +27 -0
  57. package/dist/actions/group.d.cts.map +1 -0
  58. package/dist/actions/group.d.mts +27 -0
  59. package/dist/actions/group.d.mts.map +1 -0
  60. package/dist/actions/group.mjs +22 -0
  61. package/dist/actions/group.mjs.map +1 -0
  62. package/dist/actions/identify.cjs +25 -0
  63. package/dist/actions/identify.cjs.map +1 -0
  64. package/dist/actions/identify.d.cts +27 -0
  65. package/dist/actions/identify.d.cts.map +1 -0
  66. package/dist/actions/identify.d.mts +27 -0
  67. package/dist/actions/identify.d.mts.map +1 -0
  68. package/dist/actions/identify.mjs +22 -0
  69. package/dist/actions/identify.mjs.map +1 -0
  70. package/dist/actions/import-historical-data.cjs +20 -0
  71. package/dist/actions/import-historical-data.cjs.map +1 -0
  72. package/dist/actions/import-historical-data.d.cts +19 -0
  73. package/dist/actions/import-historical-data.d.cts.map +1 -0
  74. package/dist/actions/import-historical-data.d.mts +19 -0
  75. package/dist/actions/import-historical-data.d.mts.map +1 -0
  76. package/dist/actions/import-historical-data.mjs +17 -0
  77. package/dist/actions/import-historical-data.mjs.map +1 -0
  78. package/dist/actions/index.cjs +35 -0
  79. package/dist/actions/index.d.cts +18 -0
  80. package/dist/actions/index.d.mts +18 -0
  81. package/dist/actions/index.mjs +18 -0
  82. package/dist/actions/list-connected-warehouses-from-source.cjs +55 -0
  83. package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -0
  84. package/dist/actions/list-connected-warehouses-from-source.d.cts +50 -0
  85. package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -0
  86. package/dist/actions/list-connected-warehouses-from-source.d.mts +50 -0
  87. package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -0
  88. package/dist/actions/list-connected-warehouses-from-source.mjs +54 -0
  89. package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -0
  90. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +41 -0
  91. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -0
  92. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +40 -0
  93. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -0
  94. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +40 -0
  95. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -0
  96. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +40 -0
  97. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -0
  98. package/dist/actions/list-schema-settings-in-source.cjs +44 -0
  99. package/dist/actions/list-schema-settings-in-source.cjs.map +1 -0
  100. package/dist/actions/list-schema-settings-in-source.d.cts +38 -0
  101. package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -0
  102. package/dist/actions/list-schema-settings-in-source.d.mts +38 -0
  103. package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -0
  104. package/dist/actions/list-schema-settings-in-source.mjs +43 -0
  105. package/dist/actions/list-schema-settings-in-source.mjs.map +1 -0
  106. package/dist/actions/page.cjs +26 -0
  107. package/dist/actions/page.cjs.map +1 -0
  108. package/dist/actions/page.d.cts +29 -0
  109. package/dist/actions/page.d.cts.map +1 -0
  110. package/dist/actions/page.d.mts +29 -0
  111. package/dist/actions/page.d.mts.map +1 -0
  112. package/dist/actions/page.mjs +23 -0
  113. package/dist/actions/page.mjs.map +1 -0
  114. package/dist/actions/remove-source-write-key.cjs +20 -0
  115. package/dist/actions/remove-source-write-key.cjs.map +1 -0
  116. package/dist/actions/remove-source-write-key.d.cts +19 -0
  117. package/dist/actions/remove-source-write-key.d.cts.map +1 -0
  118. package/dist/actions/remove-source-write-key.d.mts +19 -0
  119. package/dist/actions/remove-source-write-key.d.mts.map +1 -0
  120. package/dist/actions/remove-source-write-key.mjs +19 -0
  121. package/dist/actions/remove-source-write-key.mjs.map +1 -0
  122. package/dist/actions/screen.cjs +25 -0
  123. package/dist/actions/screen.cjs.map +1 -0
  124. package/dist/actions/screen.d.cts +27 -0
  125. package/dist/actions/screen.d.cts.map +1 -0
  126. package/dist/actions/screen.d.mts +27 -0
  127. package/dist/actions/screen.d.mts.map +1 -0
  128. package/dist/actions/screen.mjs +22 -0
  129. package/dist/actions/screen.mjs.map +1 -0
  130. package/dist/actions/track.cjs +25 -0
  131. package/dist/actions/track.cjs.map +1 -0
  132. package/dist/actions/track.d.cts +27 -0
  133. package/dist/actions/track.d.cts.map +1 -0
  134. package/dist/actions/track.d.mts +27 -0
  135. package/dist/actions/track.d.mts.map +1 -0
  136. package/dist/actions/track.mjs +22 -0
  137. package/dist/actions/track.mjs.map +1 -0
  138. package/dist/actions/update-source.cjs +51 -0
  139. package/dist/actions/update-source.cjs.map +1 -0
  140. package/dist/actions/update-source.d.cts +50 -0
  141. package/dist/actions/update-source.d.cts.map +1 -0
  142. package/dist/actions/update-source.d.mts +50 -0
  143. package/dist/actions/update-source.d.mts.map +1 -0
  144. package/dist/actions/update-source.mjs +50 -0
  145. package/dist/actions/update-source.mjs.map +1 -0
  146. package/dist/app.cjs +9 -0
  147. package/dist/app.cjs.map +1 -0
  148. package/dist/app.d.cts +5 -0
  149. package/dist/app.d.cts.map +1 -0
  150. package/dist/app.d.mts +5 -0
  151. package/dist/app.d.mts.map +1 -0
  152. package/dist/app.mjs +10 -0
  153. package/dist/app.mjs.map +1 -0
  154. package/dist/catalog.cjs +27 -0
  155. package/dist/catalog.cjs.map +1 -0
  156. package/dist/catalog.d.cts +26 -0
  157. package/dist/catalog.d.cts.map +1 -0
  158. package/dist/catalog.d.mts +26 -0
  159. package/dist/catalog.d.mts.map +1 -0
  160. package/dist/catalog.mjs +27 -0
  161. package/dist/catalog.mjs.map +1 -0
  162. package/dist/execute.cjs +18 -0
  163. package/dist/execute.cjs.map +1 -0
  164. package/dist/execute.mjs +18 -0
  165. package/dist/execute.mjs.map +1 -0
  166. package/dist/index.cjs +40 -0
  167. package/dist/index.d.cts +20 -0
  168. package/dist/index.d.mts +20 -4
  169. package/dist/index.mjs +21 -5
  170. package/package.json +31 -60
  171. package/LICENSE +0 -21
  172. package/dist/client-DQfeZzLR.mjs +0 -362
  173. package/dist/common-DUU0airJ.mjs +0 -56
  174. package/dist/credential-sets/index.d.mts +0 -2
  175. package/dist/credential-sets/index.mjs +0 -3
  176. package/dist/operations/index.d.mts +0 -2
  177. package/dist/operations/index.mjs +0 -3
  178. package/dist/schemas/index.d.mts +0 -57
  179. package/dist/schemas/index.mjs +0 -3
  180. package/dist/segment.credential-set-BTTrkHO7.mjs +0 -33
  181. package/dist/segment.credential-set-BgROtI_9.d.mts +0 -57
  182. package/dist/triggers/index.d.mts +0 -110
  183. package/dist/triggers/index.mjs +0 -367
  184. package/dist/workspace-list-spaces.operation-DKWX3vl5.mjs +0 -5200
  185. package/dist/workspace-list-spaces.operation-DNIUfIuv.d.mts +0 -6548
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/delete-source.ts
4
+ const SegmentDeleteSourceInput = z.object({ sourceId: z.string().describe("The Source ID. Length 1–255 characters.") }).describe("Parameters to delete a Segment Source. Provide the sourceId to identify the Source to remove.");
5
+ const SegmentDeleteSource_DeleteSourceDataSchema = z.object({ status: z.string().describe("Operation outcome; returns 'SUCCESS' on successful deletion.").nullable() }).describe("Envelope for deletion result.");
6
+ const segmentDeleteSource = action("SEGMENT_DELETE_SOURCE", {
7
+ slug: "segment-delete-source",
8
+ name: "Delete Source",
9
+ description: "Tool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.",
10
+ input: SegmentDeleteSourceInput,
11
+ output: z.object({ data: SegmentDeleteSource_DeleteSourceDataSchema.nullable() })
12
+ });
13
+ //#endregion
14
+ export { segmentDeleteSource };
15
+
16
+ //# sourceMappingURL=delete-source.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-source.mjs","names":[],"sources":["../../src/actions/delete-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentDeleteSourceInput = z.object({\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to delete a Segment Source. Provide the sourceId to identify the Source to remove.\");\nconst SegmentDeleteSource_DeleteSourceDataSchema = z.object({\n status: z.string().describe(\"Operation outcome; returns 'SUCCESS' on successful deletion.\").nullable(),\n}).describe(\"Envelope for deletion result.\");\nexport const SegmentDeleteSourceOutput = z.object({\n data: SegmentDeleteSource_DeleteSourceDataSchema.nullable(),\n});\n\nexport const segmentDeleteSource = action(\"SEGMENT_DELETE_SOURCE\", {\n slug: \"segment-delete-source\",\n name: \"Delete Source\",\n description: \"Tool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.\",\n input: SegmentDeleteSourceInput,\n output: SegmentDeleteSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACzE,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,6CAA6C,EAAE,OAAO,EAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAK3C,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAOU;AACV,CAAC"}
@@ -0,0 +1,37 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-daily-per-source-api-calls-usage.ts
4
+ const SegmentGetDailyPerSourceApiCallsUsageInput = zod.z.object({
5
+ period: zod.z.string().describe("Start of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'."),
6
+ pagination: zod.z.object({
7
+ count: zod.z.number().int().describe("Page size (number of records to return). Defaults to 200 if omitted.").optional(),
8
+ cursor: zod.z.string().describe("Cursor token for the next page of results.").optional()
9
+ }).describe("Pagination parameters for querying source daily API calls usage.").optional()
10
+ }).describe("Request parameters to fetch daily API call counts per source.");
11
+ const SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = zod.z.object({
12
+ next: zod.z.string().describe("Cursor for the next page, if any.").nullable().optional(),
13
+ current: zod.z.string().describe("Cursor for the current page.").nullable(),
14
+ previous: zod.z.string().describe("Cursor for the previous page, if any.").nullable().optional(),
15
+ totalEntries: zod.z.number().int().describe("Total number of records available.").nullable()
16
+ });
17
+ const SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = zod.z.object({
18
+ apiCalls: zod.z.string().describe("API call count for the source and day.").nullable(),
19
+ sourceId: zod.z.string().describe("Source identifier.").nullable(),
20
+ timestamp: zod.z.string().describe("Date this usage applies to in ISO-8601 format.").nullable()
21
+ });
22
+ const SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = zod.z.object({
23
+ pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),
24
+ dailyPerSourceAPICallsUsage: zod.z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe("List of daily API call usage records per source.")
25
+ });
26
+ const SegmentGetDailyPerSourceApiCallsUsageOutput = zod.z.object({ data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable() });
27
+ const segmentGetDailyPerSourceApiCallsUsage = require_action.action("SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE", {
28
+ slug: "segment-get-daily-per-source-api-calls-usage",
29
+ name: "Get Daily Per Source API Calls Usage",
30
+ description: "Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.",
31
+ input: SegmentGetDailyPerSourceApiCallsUsageInput,
32
+ output: SegmentGetDailyPerSourceApiCallsUsageOutput
33
+ });
34
+ //#endregion
35
+ exports.segmentGetDailyPerSourceApiCallsUsage = segmentGetDailyPerSourceApiCallsUsage;
36
+
37
+ //# sourceMappingURL=get-daily-per-source-api-calls-usage.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-daily-per-source-api-calls-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDailyPerSourceApiCallsUsageInput = z.object({\n period: z.string().describe(\"Start of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Page size (number of records to return). Defaults to 200 if omitted.\").optional(),\n cursor: z.string().describe(\"Cursor token for the next page of results.\").optional(),\n}).describe(\"Pagination parameters for querying source daily API calls usage.\").optional(),\n}).describe(\"Request parameters to fetch daily API call counts per source.\");\nconst SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n current: z.string().describe(\"Cursor for the current page.\").nullable(),\n previous: z.string().describe(\"Cursor for the previous page, if any.\").nullable().optional(),\n totalEntries: z.number().int().describe(\"Total number of records available.\").nullable(),\n});\nconst SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({\n apiCalls: z.string().describe(\"API call count for the source and day.\").nullable(),\n sourceId: z.string().describe(\"Source identifier.\").nullable(),\n timestamp: z.string().describe(\"Date this usage applies to in ISO-8601 format.\").nullable(),\n});\nconst SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({\n pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),\n dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe(\"List of daily API call usage records per source.\"),\n});\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n});\n\nexport const segmentGetDailyPerSourceApiCallsUsage = action(\"SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE\", {\n slug: \"segment-get-daily-per-source-api-calls-usage\",\n name: \"Get Daily Per Source API Calls Usage\",\n description: \"Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.\",\n input: SegmentGetDailyPerSourceApiCallsUsageInput,\n output: SegmentGetDailyPerSourceApiCallsUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC3G,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,C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AAQ;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-daily-per-source-api-calls-usage.d.ts
4
+ declare const SegmentGetDailyPerSourceApiCallsUsageInput: z.ZodObject<{
5
+ period: z.ZodString;
6
+ pagination: z.ZodOptional<z.ZodObject<{
7
+ count: z.ZodOptional<z.ZodNumber>;
8
+ cursor: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>>;
10
+ }, z.core.$strip>;
11
+ declare const SegmentGetDailyPerSourceApiCallsUsageOutput: z.ZodObject<{
12
+ data: z.ZodNullable<z.ZodObject<{
13
+ pagination: z.ZodNullable<z.ZodObject<{
14
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ current: z.ZodNullable<z.ZodString>;
16
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ totalEntries: z.ZodNullable<z.ZodNumber>;
18
+ }, z.core.$strip>>;
19
+ dailyPerSourceAPICallsUsage: z.ZodArray<z.ZodObject<{
20
+ apiCalls: z.ZodNullable<z.ZodString>;
21
+ sourceId: z.ZodNullable<z.ZodString>;
22
+ timestamp: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ declare const segmentGetDailyPerSourceApiCallsUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ period: string;
28
+ pagination?: {
29
+ count?: number | undefined;
30
+ cursor?: string | undefined;
31
+ } | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ //#endregion
34
+ export { segmentGetDailyPerSourceApiCallsUsage };
35
+ //# sourceMappingURL=get-daily-per-source-api-calls-usage.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-daily-per-source-api-calls-usage.d.cts","names":[],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAsB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
@@ -0,0 +1,35 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-daily-per-source-api-calls-usage.d.ts
4
+ declare const SegmentGetDailyPerSourceApiCallsUsageInput: z.ZodObject<{
5
+ period: z.ZodString;
6
+ pagination: z.ZodOptional<z.ZodObject<{
7
+ count: z.ZodOptional<z.ZodNumber>;
8
+ cursor: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>>;
10
+ }, z.core.$strip>;
11
+ declare const SegmentGetDailyPerSourceApiCallsUsageOutput: z.ZodObject<{
12
+ data: z.ZodNullable<z.ZodObject<{
13
+ pagination: z.ZodNullable<z.ZodObject<{
14
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ current: z.ZodNullable<z.ZodString>;
16
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ totalEntries: z.ZodNullable<z.ZodNumber>;
18
+ }, z.core.$strip>>;
19
+ dailyPerSourceAPICallsUsage: z.ZodArray<z.ZodObject<{
20
+ apiCalls: z.ZodNullable<z.ZodString>;
21
+ sourceId: z.ZodNullable<z.ZodString>;
22
+ timestamp: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ declare const segmentGetDailyPerSourceApiCallsUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ period: string;
28
+ pagination?: {
29
+ count?: number | undefined;
30
+ cursor?: string | undefined;
31
+ } | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ //#endregion
34
+ export { segmentGetDailyPerSourceApiCallsUsage };
35
+ //# sourceMappingURL=get-daily-per-source-api-calls-usage.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-daily-per-source-api-calls-usage.d.mts","names":[],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAsB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
@@ -0,0 +1,36 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-daily-per-source-api-calls-usage.ts
4
+ const SegmentGetDailyPerSourceApiCallsUsageInput = z.object({
5
+ period: z.string().describe("Start of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'."),
6
+ pagination: z.object({
7
+ count: z.number().int().describe("Page size (number of records to return). Defaults to 200 if omitted.").optional(),
8
+ cursor: z.string().describe("Cursor token for the next page of results.").optional()
9
+ }).describe("Pagination parameters for querying source daily API calls usage.").optional()
10
+ }).describe("Request parameters to fetch daily API call counts per source.");
11
+ const SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = z.object({
12
+ next: z.string().describe("Cursor for the next page, if any.").nullable().optional(),
13
+ current: z.string().describe("Cursor for the current page.").nullable(),
14
+ previous: z.string().describe("Cursor for the previous page, if any.").nullable().optional(),
15
+ totalEntries: z.number().int().describe("Total number of records available.").nullable()
16
+ });
17
+ const SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({
18
+ apiCalls: z.string().describe("API call count for the source and day.").nullable(),
19
+ sourceId: z.string().describe("Source identifier.").nullable(),
20
+ timestamp: z.string().describe("Date this usage applies to in ISO-8601 format.").nullable()
21
+ });
22
+ const SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({
23
+ pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),
24
+ dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe("List of daily API call usage records per source.")
25
+ });
26
+ const segmentGetDailyPerSourceApiCallsUsage = action("SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE", {
27
+ slug: "segment-get-daily-per-source-api-calls-usage",
28
+ name: "Get Daily Per Source API Calls Usage",
29
+ description: "Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.",
30
+ input: SegmentGetDailyPerSourceApiCallsUsageInput,
31
+ output: z.object({ data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable() })
32
+ });
33
+ //#endregion
34
+ export { segmentGetDailyPerSourceApiCallsUsage };
35
+
36
+ //# sourceMappingURL=get-daily-per-source-api-calls-usage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-daily-per-source-api-calls-usage.mjs","names":[],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDailyPerSourceApiCallsUsageInput = z.object({\n period: z.string().describe(\"Start of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Page size (number of records to return). Defaults to 200 if omitted.\").optional(),\n cursor: z.string().describe(\"Cursor token for the next page of results.\").optional(),\n}).describe(\"Pagination parameters for querying source daily API calls usage.\").optional(),\n}).describe(\"Request parameters to fetch daily API call counts per source.\");\nconst SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n current: z.string().describe(\"Cursor for the current page.\").nullable(),\n previous: z.string().describe(\"Cursor for the previous page, if any.\").nullable().optional(),\n totalEntries: z.number().int().describe(\"Total number of records available.\").nullable(),\n});\nconst SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({\n apiCalls: z.string().describe(\"API call count for the source and day.\").nullable(),\n sourceId: z.string().describe(\"Source identifier.\").nullable(),\n timestamp: z.string().describe(\"Date this usage applies to in ISO-8601 format.\").nullable(),\n});\nconst SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({\n pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),\n dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe(\"List of daily API call usage records per source.\"),\n});\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n});\n\nexport const segmentGetDailyPerSourceApiCallsUsage = action(\"SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE\", {\n slug: \"segment-get-daily-per-source-api-calls-usage\",\n name: \"Get Daily Per Source API Calls Usage\",\n description: \"Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.\",\n input: SegmentGetDailyPerSourceApiCallsUsageInput,\n output: SegmentGetDailyPerSourceApiCallsUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC3G,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAClH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6DAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC;AACD,MAAM,wEAAwE,EAAE,OAAO;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC5F,CAAC;AACD,MAAM,yFAAyF,EAAE,OAAO;CACtG,YAAY,2DAA2D,SAAS;CAChF,6BAA6B,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kDAAkD;AACzK,CAAC;AAKD,MAAa,wCAAwC,OAAO,gDAAgD;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,MAAM,uFAAuF,SAAS,EACxG,CAOU;AACV,CAAC"}
@@ -0,0 +1,78 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-destination.ts
4
+ const SegmentGetDestinationInput = zod.z.object({ destinationId: zod.z.string().describe("The destination’s unique ID.") }).describe("Request model for retrieving a Destination by its ID.");
5
+ const SegmentGetDestination_LogosSchema = zod.z.object({
6
+ mark: zod.z.string().describe("URL for the alternate logo (mark).").nullable().optional(),
7
+ "default": zod.z.string().describe("URL for the default logo.").nullable().optional()
8
+ });
9
+ const SegmentGetDestination_ContactSchema = zod.z.object({
10
+ name: zod.z.string().nullable(),
11
+ role: zod.z.string().nullable(),
12
+ email: zod.z.string().nullable(),
13
+ isPrimary: zod.z.boolean().nullable()
14
+ });
15
+ const SegmentGetDestination_SupportedMethodsSchema = zod.z.object({
16
+ alias: zod.z.boolean().nullable(),
17
+ group: zod.z.boolean().nullable(),
18
+ track: zod.z.boolean().nullable(),
19
+ identify: zod.z.boolean().nullable(),
20
+ pageview: zod.z.boolean().nullable()
21
+ });
22
+ const SegmentGetDestination_SupportedFeaturesSchema = zod.z.object({
23
+ replay: zod.z.boolean().nullable(),
24
+ browserUnbundling: zod.z.boolean().nullable(),
25
+ cloudModeInstances: zod.z.string().describe("Cloud mode instance count as string.").nullable().optional(),
26
+ deviceModeInstances: zod.z.string().describe("Device mode instance count as string.").nullable().optional(),
27
+ browserUnbundlingPublic: zod.z.boolean().nullable()
28
+ });
29
+ const SegmentGetDestination_SupportedPlatformsSchema = zod.z.object({
30
+ mobile: zod.z.boolean().nullable(),
31
+ server: zod.z.boolean().nullable(),
32
+ browser: zod.z.boolean().nullable(),
33
+ warehouse: zod.z.boolean().nullable(),
34
+ cloudAppObject: zod.z.boolean().nullable()
35
+ });
36
+ const SegmentGetDestination_MetadataSchema = zod.z.object({
37
+ id: zod.z.string().nullable(),
38
+ name: zod.z.string().nullable(),
39
+ slug: zod.z.string().nullable(),
40
+ logos: SegmentGetDestination_LogosSchema.nullable(),
41
+ status: zod.z.string().nullable(),
42
+ actions: zod.z.array(zod.z.unknown()),
43
+ options: zod.z.array(zod.z.unknown()),
44
+ presets: zod.z.array(zod.z.unknown()),
45
+ website: zod.z.string().nullable().optional(),
46
+ contacts: zod.z.array(SegmentGetDestination_ContactSchema),
47
+ categories: zod.z.array(zod.z.string()),
48
+ components: zod.z.array(zod.z.unknown()),
49
+ description: zod.z.string().nullable().optional(),
50
+ partnerOwned: zod.z.boolean().nullable(),
51
+ previousNames: zod.z.array(zod.z.string()),
52
+ regionEndpoints: zod.z.array(zod.z.string()),
53
+ supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),
54
+ supportedRegions: zod.z.array(zod.z.string()),
55
+ supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),
56
+ supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable()
57
+ });
58
+ const SegmentGetDestination_DestinationSchema = zod.z.object({
59
+ id: zod.z.string().nullable(),
60
+ name: zod.z.string().nullable(),
61
+ enabled: zod.z.boolean().nullable(),
62
+ metadata: SegmentGetDestination_MetadataSchema.nullable(),
63
+ settings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration settings for this Destination instance"),
64
+ sourceId: zod.z.string().nullable()
65
+ });
66
+ const SegmentGetDestination_GetDestinationDataSchema = zod.z.object({ destination: SegmentGetDestination_DestinationSchema.nullable() });
67
+ const SegmentGetDestinationOutput = zod.z.object({ data: SegmentGetDestination_GetDestinationDataSchema.nullable() });
68
+ const segmentGetDestination = require_action.action("SEGMENT_GET_DESTINATION", {
69
+ slug: "segment-get-destination",
70
+ name: "Get Destination",
71
+ description: "Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.",
72
+ input: SegmentGetDestinationInput,
73
+ output: SegmentGetDestinationOutput
74
+ });
75
+ //#endregion
76
+ exports.segmentGetDestination = segmentGetDestination;
77
+
78
+ //# sourceMappingURL=get-destination.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-destination.cjs","names":["z","action"],"sources":["../../src/actions/get-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDestinationInput = z.object({\n destinationId: z.string().describe(\"The destination’s unique ID.\"),\n}).describe(\"Request model for retrieving a Destination by its ID.\");\nconst SegmentGetDestination_LogosSchema = z.object({\n mark: z.string().describe(\"URL for the alternate logo (mark).\").nullable().optional(),\n \"default\": z.string().describe(\"URL for the default logo.\").nullable().optional(),\n});\nconst SegmentGetDestination_ContactSchema = z.object({\n name: z.string().nullable(),\n role: z.string().nullable(),\n email: z.string().nullable(),\n isPrimary: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedMethodsSchema = z.object({\n alias: z.boolean().nullable(),\n group: z.boolean().nullable(),\n track: z.boolean().nullable(),\n identify: z.boolean().nullable(),\n pageview: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedFeaturesSchema = z.object({\n replay: z.boolean().nullable(),\n browserUnbundling: z.boolean().nullable(),\n cloudModeInstances: z.string().describe(\"Cloud mode instance count as string.\").nullable().optional(),\n deviceModeInstances: z.string().describe(\"Device mode instance count as string.\").nullable().optional(),\n browserUnbundlingPublic: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedPlatformsSchema = z.object({\n mobile: z.boolean().nullable(),\n server: z.boolean().nullable(),\n browser: z.boolean().nullable(),\n warehouse: z.boolean().nullable(),\n cloudAppObject: z.boolean().nullable(),\n});\nconst SegmentGetDestination_MetadataSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n slug: z.string().nullable(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string().nullable(),\n actions: z.array(z.unknown()),\n options: z.array(z.unknown()),\n presets: z.array(z.unknown()),\n website: z.string().nullable().optional(),\n contacts: z.array(SegmentGetDestination_ContactSchema),\n categories: z.array(z.string()),\n components: z.array(z.unknown()),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable(),\n previousNames: z.array(z.string()),\n regionEndpoints: z.array(z.string()),\n supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),\n supportedRegions: z.array(z.string()),\n supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),\n supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable(),\n});\nconst SegmentGetDestination_DestinationSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n enabled: z.boolean().nullable(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string().nullable(),\n});\nconst SegmentGetDestination_GetDestinationDataSchema = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n});\nexport const SegmentGetDestinationOutput = z.object({\n data: SegmentGetDestination_GetDestinationDataSchema.nullable(),\n});\n\nexport const segmentGetDestination = action(\"SEGMENT_GET_DESTINATION\", {\n slug: \"segment-get-destination\",\n name: \"Get Destination\",\n description: \"Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.\",\n input: SegmentGetDestinationInput,\n output: SegmentGetDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EACnE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AAClC,CAAC;AACD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC5B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAA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A+C,SAAS,EAChE,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-destination.d.ts
4
+ declare const SegmentGetDestinationInput: z.ZodObject<{
5
+ destinationId: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SegmentGetDestinationOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ destination: z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ enabled: z.ZodNullable<z.ZodBoolean>;
13
+ metadata: z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ name: z.ZodNullable<z.ZodString>;
16
+ slug: z.ZodNullable<z.ZodString>;
17
+ logos: z.ZodNullable<z.ZodObject<{
18
+ mark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$strip>>;
21
+ status: z.ZodNullable<z.ZodString>;
22
+ actions: z.ZodArray<z.ZodUnknown>;
23
+ options: z.ZodArray<z.ZodUnknown>;
24
+ presets: z.ZodArray<z.ZodUnknown>;
25
+ website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ contacts: z.ZodArray<z.ZodObject<{
27
+ name: z.ZodNullable<z.ZodString>;
28
+ role: z.ZodNullable<z.ZodString>;
29
+ email: z.ZodNullable<z.ZodString>;
30
+ isPrimary: z.ZodNullable<z.ZodBoolean>;
31
+ }, z.core.$strip>>;
32
+ categories: z.ZodArray<z.ZodString>;
33
+ components: z.ZodArray<z.ZodUnknown>;
34
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ partnerOwned: z.ZodNullable<z.ZodBoolean>;
36
+ previousNames: z.ZodArray<z.ZodString>;
37
+ regionEndpoints: z.ZodArray<z.ZodString>;
38
+ supportedMethods: z.ZodNullable<z.ZodObject<{
39
+ alias: z.ZodNullable<z.ZodBoolean>;
40
+ group: z.ZodNullable<z.ZodBoolean>;
41
+ track: z.ZodNullable<z.ZodBoolean>;
42
+ identify: z.ZodNullable<z.ZodBoolean>;
43
+ pageview: z.ZodNullable<z.ZodBoolean>;
44
+ }, z.core.$strip>>;
45
+ supportedRegions: z.ZodArray<z.ZodString>;
46
+ supportedFeatures: z.ZodNullable<z.ZodObject<{
47
+ replay: z.ZodNullable<z.ZodBoolean>;
48
+ browserUnbundling: z.ZodNullable<z.ZodBoolean>;
49
+ cloudModeInstances: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ deviceModeInstances: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ browserUnbundlingPublic: z.ZodNullable<z.ZodBoolean>;
52
+ }, z.core.$strip>>;
53
+ supportedPlatforms: z.ZodNullable<z.ZodObject<{
54
+ mobile: z.ZodNullable<z.ZodBoolean>;
55
+ server: z.ZodNullable<z.ZodBoolean>;
56
+ browser: z.ZodNullable<z.ZodBoolean>;
57
+ warehouse: z.ZodNullable<z.ZodBoolean>;
58
+ cloudAppObject: z.ZodNullable<z.ZodBoolean>;
59
+ }, z.core.$strip>>;
60
+ }, z.core.$strip>>;
61
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
62
+ sourceId: z.ZodNullable<z.ZodString>;
63
+ }, z.core.$strip>>;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$strip>;
66
+ declare const segmentGetDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
67
+ destinationId: string;
68
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
69
+ //#endregion
70
+ export { segmentGetDestination };
71
+ //# sourceMappingURL=get-destination.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-destination.d.cts","names":[],"sources":["../../src/actions/get-destination.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAmE1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
@@ -0,0 +1,71 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-destination.d.ts
4
+ declare const SegmentGetDestinationInput: z.ZodObject<{
5
+ destinationId: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SegmentGetDestinationOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ destination: z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ enabled: z.ZodNullable<z.ZodBoolean>;
13
+ metadata: z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ name: z.ZodNullable<z.ZodString>;
16
+ slug: z.ZodNullable<z.ZodString>;
17
+ logos: z.ZodNullable<z.ZodObject<{
18
+ mark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$strip>>;
21
+ status: z.ZodNullable<z.ZodString>;
22
+ actions: z.ZodArray<z.ZodUnknown>;
23
+ options: z.ZodArray<z.ZodUnknown>;
24
+ presets: z.ZodArray<z.ZodUnknown>;
25
+ website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ contacts: z.ZodArray<z.ZodObject<{
27
+ name: z.ZodNullable<z.ZodString>;
28
+ role: z.ZodNullable<z.ZodString>;
29
+ email: z.ZodNullable<z.ZodString>;
30
+ isPrimary: z.ZodNullable<z.ZodBoolean>;
31
+ }, z.core.$strip>>;
32
+ categories: z.ZodArray<z.ZodString>;
33
+ components: z.ZodArray<z.ZodUnknown>;
34
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ partnerOwned: z.ZodNullable<z.ZodBoolean>;
36
+ previousNames: z.ZodArray<z.ZodString>;
37
+ regionEndpoints: z.ZodArray<z.ZodString>;
38
+ supportedMethods: z.ZodNullable<z.ZodObject<{
39
+ alias: z.ZodNullable<z.ZodBoolean>;
40
+ group: z.ZodNullable<z.ZodBoolean>;
41
+ track: z.ZodNullable<z.ZodBoolean>;
42
+ identify: z.ZodNullable<z.ZodBoolean>;
43
+ pageview: z.ZodNullable<z.ZodBoolean>;
44
+ }, z.core.$strip>>;
45
+ supportedRegions: z.ZodArray<z.ZodString>;
46
+ supportedFeatures: z.ZodNullable<z.ZodObject<{
47
+ replay: z.ZodNullable<z.ZodBoolean>;
48
+ browserUnbundling: z.ZodNullable<z.ZodBoolean>;
49
+ cloudModeInstances: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ deviceModeInstances: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ browserUnbundlingPublic: z.ZodNullable<z.ZodBoolean>;
52
+ }, z.core.$strip>>;
53
+ supportedPlatforms: z.ZodNullable<z.ZodObject<{
54
+ mobile: z.ZodNullable<z.ZodBoolean>;
55
+ server: z.ZodNullable<z.ZodBoolean>;
56
+ browser: z.ZodNullable<z.ZodBoolean>;
57
+ warehouse: z.ZodNullable<z.ZodBoolean>;
58
+ cloudAppObject: z.ZodNullable<z.ZodBoolean>;
59
+ }, z.core.$strip>>;
60
+ }, z.core.$strip>>;
61
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
62
+ sourceId: z.ZodNullable<z.ZodString>;
63
+ }, z.core.$strip>>;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$strip>;
66
+ declare const segmentGetDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
67
+ destinationId: string;
68
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
69
+ //#endregion
70
+ export { segmentGetDestination };
71
+ //# sourceMappingURL=get-destination.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-destination.d.mts","names":[],"sources":["../../src/actions/get-destination.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAmE1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
@@ -0,0 +1,77 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-destination.ts
4
+ const SegmentGetDestinationInput = z.object({ destinationId: z.string().describe("The destination’s unique ID.") }).describe("Request model for retrieving a Destination by its ID.");
5
+ const SegmentGetDestination_LogosSchema = z.object({
6
+ mark: z.string().describe("URL for the alternate logo (mark).").nullable().optional(),
7
+ "default": z.string().describe("URL for the default logo.").nullable().optional()
8
+ });
9
+ const SegmentGetDestination_ContactSchema = z.object({
10
+ name: z.string().nullable(),
11
+ role: z.string().nullable(),
12
+ email: z.string().nullable(),
13
+ isPrimary: z.boolean().nullable()
14
+ });
15
+ const SegmentGetDestination_SupportedMethodsSchema = z.object({
16
+ alias: z.boolean().nullable(),
17
+ group: z.boolean().nullable(),
18
+ track: z.boolean().nullable(),
19
+ identify: z.boolean().nullable(),
20
+ pageview: z.boolean().nullable()
21
+ });
22
+ const SegmentGetDestination_SupportedFeaturesSchema = z.object({
23
+ replay: z.boolean().nullable(),
24
+ browserUnbundling: z.boolean().nullable(),
25
+ cloudModeInstances: z.string().describe("Cloud mode instance count as string.").nullable().optional(),
26
+ deviceModeInstances: z.string().describe("Device mode instance count as string.").nullable().optional(),
27
+ browserUnbundlingPublic: z.boolean().nullable()
28
+ });
29
+ const SegmentGetDestination_SupportedPlatformsSchema = z.object({
30
+ mobile: z.boolean().nullable(),
31
+ server: z.boolean().nullable(),
32
+ browser: z.boolean().nullable(),
33
+ warehouse: z.boolean().nullable(),
34
+ cloudAppObject: z.boolean().nullable()
35
+ });
36
+ const SegmentGetDestination_MetadataSchema = z.object({
37
+ id: z.string().nullable(),
38
+ name: z.string().nullable(),
39
+ slug: z.string().nullable(),
40
+ logos: SegmentGetDestination_LogosSchema.nullable(),
41
+ status: z.string().nullable(),
42
+ actions: z.array(z.unknown()),
43
+ options: z.array(z.unknown()),
44
+ presets: z.array(z.unknown()),
45
+ website: z.string().nullable().optional(),
46
+ contacts: z.array(SegmentGetDestination_ContactSchema),
47
+ categories: z.array(z.string()),
48
+ components: z.array(z.unknown()),
49
+ description: z.string().nullable().optional(),
50
+ partnerOwned: z.boolean().nullable(),
51
+ previousNames: z.array(z.string()),
52
+ regionEndpoints: z.array(z.string()),
53
+ supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),
54
+ supportedRegions: z.array(z.string()),
55
+ supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),
56
+ supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable()
57
+ });
58
+ const SegmentGetDestination_DestinationSchema = z.object({
59
+ id: z.string().nullable(),
60
+ name: z.string().nullable(),
61
+ enabled: z.boolean().nullable(),
62
+ metadata: SegmentGetDestination_MetadataSchema.nullable(),
63
+ settings: z.record(z.string(), z.unknown()).describe("Configuration settings for this Destination instance"),
64
+ sourceId: z.string().nullable()
65
+ });
66
+ const SegmentGetDestination_GetDestinationDataSchema = z.object({ destination: SegmentGetDestination_DestinationSchema.nullable() });
67
+ const segmentGetDestination = action("SEGMENT_GET_DESTINATION", {
68
+ slug: "segment-get-destination",
69
+ name: "Get Destination",
70
+ description: "Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.",
71
+ input: SegmentGetDestinationInput,
72
+ output: z.object({ data: SegmentGetDestination_GetDestinationDataSchema.nullable() })
73
+ });
74
+ //#endregion
75
+ export { segmentGetDestination };
76
+
77
+ //# sourceMappingURL=get-destination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-destination.mjs","names":[],"sources":["../../src/actions/get-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDestinationInput = z.object({\n destinationId: z.string().describe(\"The destination’s unique ID.\"),\n}).describe(\"Request model for retrieving a Destination by its ID.\");\nconst SegmentGetDestination_LogosSchema = z.object({\n mark: z.string().describe(\"URL for the alternate logo (mark).\").nullable().optional(),\n \"default\": z.string().describe(\"URL for the default logo.\").nullable().optional(),\n});\nconst SegmentGetDestination_ContactSchema = z.object({\n name: z.string().nullable(),\n role: z.string().nullable(),\n email: z.string().nullable(),\n isPrimary: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedMethodsSchema = z.object({\n alias: z.boolean().nullable(),\n group: z.boolean().nullable(),\n track: z.boolean().nullable(),\n identify: z.boolean().nullable(),\n pageview: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedFeaturesSchema = z.object({\n replay: z.boolean().nullable(),\n browserUnbundling: z.boolean().nullable(),\n cloudModeInstances: z.string().describe(\"Cloud mode instance count as string.\").nullable().optional(),\n deviceModeInstances: z.string().describe(\"Device mode instance count as string.\").nullable().optional(),\n browserUnbundlingPublic: z.boolean().nullable(),\n});\nconst SegmentGetDestination_SupportedPlatformsSchema = z.object({\n mobile: z.boolean().nullable(),\n server: z.boolean().nullable(),\n browser: z.boolean().nullable(),\n warehouse: z.boolean().nullable(),\n cloudAppObject: z.boolean().nullable(),\n});\nconst SegmentGetDestination_MetadataSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n slug: z.string().nullable(),\n logos: SegmentGetDestination_LogosSchema.nullable(),\n status: z.string().nullable(),\n actions: z.array(z.unknown()),\n options: z.array(z.unknown()),\n presets: z.array(z.unknown()),\n website: z.string().nullable().optional(),\n contacts: z.array(SegmentGetDestination_ContactSchema),\n categories: z.array(z.string()),\n components: z.array(z.unknown()),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable(),\n previousNames: z.array(z.string()),\n regionEndpoints: z.array(z.string()),\n supportedMethods: SegmentGetDestination_SupportedMethodsSchema.nullable(),\n supportedRegions: z.array(z.string()),\n supportedFeatures: SegmentGetDestination_SupportedFeaturesSchema.nullable(),\n supportedPlatforms: SegmentGetDestination_SupportedPlatformsSchema.nullable(),\n});\nconst SegmentGetDestination_DestinationSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n enabled: z.boolean().nullable(),\n metadata: SegmentGetDestination_MetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Configuration settings for this Destination instance\"),\n sourceId: z.string().nullable(),\n});\nconst SegmentGetDestination_GetDestinationDataSchema = z.object({\n destination: SegmentGetDestination_DestinationSchema.nullable(),\n});\nexport const SegmentGetDestinationOutput = z.object({\n data: SegmentGetDestination_GetDestinationDataSchema.nullable(),\n});\n\nexport const segmentGetDestination = action(\"SEGMENT_GET_DESTINATION\", {\n slug: \"segment-get-destination\",\n name: \"Get Destination\",\n description: \"Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.\",\n input: SegmentGetDestinationInput,\n output: SegmentGetDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EACnE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC;AACD,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAA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AAM,+CAA+C,SAAS,EAChE,CAOU;AACV,CAAC"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/group.ts
4
+ const SegmentGroupInput = zod.z.object({
5
+ traits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of group traits (e.g., name, industry, employees).").optional(),
6
+ userId: zod.z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
7
+ context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
8
+ groupId: zod.z.string().describe("Unique identifier for the group."),
9
+ writeKey: zod.z.string().describe("Write key for authentication if not using OAuth Bearer token.").optional(),
10
+ timestamp: zod.z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
11
+ anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
12
+ integrations: zod.z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
13
+ }).describe("Request model for associating a user with a group via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
14
+ const SegmentGroupOutput = zod.z.object({}).describe("Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.");
15
+ const segmentGroup = require_action.action("SEGMENT_GROUP", {
16
+ slug: "segment-group",
17
+ name: "Segment Group",
18
+ description: "Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.",
19
+ input: SegmentGroupInput,
20
+ output: SegmentGroupOutput
21
+ });
22
+ //#endregion
23
+ exports.segmentGroup = segmentGroup;
24
+
25
+ //# sourceMappingURL=group.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.cjs","names":["z","action"],"sources":["../../src/actions/group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGroupInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of group traits (e.g., name, industry, employees).\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n groupId: z.string().describe(\"Unique identifier for the group.\"),\n writeKey: z.string().describe(\"Write key for authentication if not using OAuth Bearer token.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for associating a user with a group via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentGroupOutput = z.object({}).describe(\"Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentGroup = action(\"SEGMENT_GROUP\", {\n slug: \"segment-group\",\n name: \"Segment Group\",\n description: \"Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.\",\n input: SegmentGroupInput,\n output: SegmentGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAa,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAEjK,MAAa,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/group.d.ts
4
+ declare const SegmentGroupInput: z.ZodObject<{
5
+ traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ groupId: z.ZodString;
9
+ writeKey: z.ZodOptional<z.ZodString>;
10
+ timestamp: z.ZodOptional<z.ZodString>;
11
+ anonymousId: z.ZodOptional<z.ZodString>;
12
+ integrations: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const SegmentGroupOutput: z.ZodObject<{}, z.core.$strip>;
15
+ declare const segmentGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ groupId: string;
17
+ traits?: Record<string, unknown> | undefined;
18
+ userId?: string | undefined;
19
+ context?: Record<string, unknown> | undefined;
20
+ writeKey?: string | undefined;
21
+ timestamp?: string | undefined;
22
+ anonymousId?: string | undefined;
23
+ integrations?: Record<string, never> | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ //#endregion
26
+ export { segmentGroup };
27
+ //# sourceMappingURL=group.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.cts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}