@keystrokehq/segment 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-labels-to-source.cjs +1 -0
  4. package/dist/actions/add-labels-to-source.cjs.map +1 -1
  5. package/dist/actions/add-labels-to-source.d.cts +3 -22
  6. package/dist/actions/add-labels-to-source.d.cts.map +1 -1
  7. package/dist/actions/add-labels-to-source.d.mts +3 -22
  8. package/dist/actions/add-labels-to-source.d.mts.map +1 -1
  9. package/dist/actions/add-labels-to-source.mjs +1 -0
  10. package/dist/actions/add-labels-to-source.mjs.map +1 -1
  11. package/dist/actions/alias.cjs +1 -0
  12. package/dist/actions/alias.cjs.map +1 -1
  13. package/dist/actions/alias.d.cts +3 -22
  14. package/dist/actions/alias.d.cts.map +1 -1
  15. package/dist/actions/alias.d.mts +3 -22
  16. package/dist/actions/alias.d.mts.map +1 -1
  17. package/dist/actions/alias.mjs +1 -0
  18. package/dist/actions/alias.mjs.map +1 -1
  19. package/dist/actions/batch.cjs +1 -0
  20. package/dist/actions/batch.cjs.map +1 -1
  21. package/dist/actions/batch.d.cts +3 -20
  22. package/dist/actions/batch.d.cts.map +1 -1
  23. package/dist/actions/batch.d.mts +3 -20
  24. package/dist/actions/batch.d.mts.map +1 -1
  25. package/dist/actions/batch.mjs +1 -0
  26. package/dist/actions/batch.mjs.map +1 -1
  27. package/dist/actions/delete-source.cjs +1 -0
  28. package/dist/actions/delete-source.cjs.map +1 -1
  29. package/dist/actions/delete-source.d.cts +3 -17
  30. package/dist/actions/delete-source.d.cts.map +1 -1
  31. package/dist/actions/delete-source.d.mts +3 -17
  32. package/dist/actions/delete-source.d.mts.map +1 -1
  33. package/dist/actions/delete-source.mjs +1 -0
  34. package/dist/actions/delete-source.mjs.map +1 -1
  35. package/dist/actions/get-daily-per-source-api-calls-usage.cjs +1 -0
  36. package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -1
  37. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +3 -21
  38. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -1
  39. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +3 -21
  40. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -1
  41. package/dist/actions/get-daily-per-source-api-calls-usage.mjs +1 -0
  42. package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
  43. package/dist/actions/get-destination.cjs +1 -0
  44. package/dist/actions/get-destination.cjs.map +1 -1
  45. package/dist/actions/get-destination.d.cts +3 -17
  46. package/dist/actions/get-destination.d.cts.map +1 -1
  47. package/dist/actions/get-destination.d.mts +3 -17
  48. package/dist/actions/get-destination.d.mts.map +1 -1
  49. package/dist/actions/get-destination.mjs +1 -0
  50. package/dist/actions/get-destination.mjs.map +1 -1
  51. package/dist/actions/group.cjs +1 -0
  52. package/dist/actions/group.cjs.map +1 -1
  53. package/dist/actions/group.d.cts +3 -24
  54. package/dist/actions/group.d.cts.map +1 -1
  55. package/dist/actions/group.d.mts +3 -24
  56. package/dist/actions/group.d.mts.map +1 -1
  57. package/dist/actions/group.mjs +1 -0
  58. package/dist/actions/group.mjs.map +1 -1
  59. package/dist/actions/identify.cjs +1 -0
  60. package/dist/actions/identify.cjs.map +1 -1
  61. package/dist/actions/identify.d.cts +3 -24
  62. package/dist/actions/identify.d.cts.map +1 -1
  63. package/dist/actions/identify.d.mts +3 -24
  64. package/dist/actions/identify.d.mts.map +1 -1
  65. package/dist/actions/identify.mjs +1 -0
  66. package/dist/actions/identify.mjs.map +1 -1
  67. package/dist/actions/import-historical-data.cjs +1 -0
  68. package/dist/actions/import-historical-data.cjs.map +1 -1
  69. package/dist/actions/import-historical-data.d.cts +3 -19
  70. package/dist/actions/import-historical-data.d.cts.map +1 -1
  71. package/dist/actions/import-historical-data.d.mts +3 -19
  72. package/dist/actions/import-historical-data.d.mts.map +1 -1
  73. package/dist/actions/import-historical-data.mjs +1 -0
  74. package/dist/actions/import-historical-data.mjs.map +1 -1
  75. package/dist/actions/list-connected-warehouses-from-source.cjs +1 -0
  76. package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
  77. package/dist/actions/list-connected-warehouses-from-source.d.cts +3 -21
  78. package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -1
  79. package/dist/actions/list-connected-warehouses-from-source.d.mts +3 -21
  80. package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -1
  81. package/dist/actions/list-connected-warehouses-from-source.mjs +1 -0
  82. package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
  83. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +1 -0
  84. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
  85. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +3 -21
  86. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -1
  87. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +3 -21
  88. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -1
  89. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +1 -0
  90. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
  91. package/dist/actions/list-schema-settings-in-source.cjs +1 -0
  92. package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
  93. package/dist/actions/list-schema-settings-in-source.d.cts +3 -17
  94. package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -1
  95. package/dist/actions/list-schema-settings-in-source.d.mts +3 -17
  96. package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -1
  97. package/dist/actions/list-schema-settings-in-source.mjs +1 -0
  98. package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
  99. package/dist/actions/page.cjs +1 -0
  100. package/dist/actions/page.cjs.map +1 -1
  101. package/dist/actions/page.d.cts +3 -25
  102. package/dist/actions/page.d.cts.map +1 -1
  103. package/dist/actions/page.d.mts +3 -25
  104. package/dist/actions/page.d.mts.map +1 -1
  105. package/dist/actions/page.mjs +1 -0
  106. package/dist/actions/page.mjs.map +1 -1
  107. package/dist/actions/remove-source-write-key.cjs +1 -0
  108. package/dist/actions/remove-source-write-key.cjs.map +1 -1
  109. package/dist/actions/remove-source-write-key.d.cts +3 -18
  110. package/dist/actions/remove-source-write-key.d.cts.map +1 -1
  111. package/dist/actions/remove-source-write-key.d.mts +3 -18
  112. package/dist/actions/remove-source-write-key.d.mts.map +1 -1
  113. package/dist/actions/remove-source-write-key.mjs +1 -0
  114. package/dist/actions/remove-source-write-key.mjs.map +1 -1
  115. package/dist/actions/screen.cjs +1 -0
  116. package/dist/actions/screen.cjs.map +1 -1
  117. package/dist/actions/screen.d.cts +3 -24
  118. package/dist/actions/screen.d.cts.map +1 -1
  119. package/dist/actions/screen.d.mts +3 -24
  120. package/dist/actions/screen.d.mts.map +1 -1
  121. package/dist/actions/screen.mjs +1 -0
  122. package/dist/actions/screen.mjs.map +1 -1
  123. package/dist/actions/track.cjs +1 -0
  124. package/dist/actions/track.cjs.map +1 -1
  125. package/dist/actions/track.d.cts +3 -24
  126. package/dist/actions/track.d.cts.map +1 -1
  127. package/dist/actions/track.d.mts +3 -24
  128. package/dist/actions/track.d.mts.map +1 -1
  129. package/dist/actions/track.mjs +1 -0
  130. package/dist/actions/track.mjs.map +1 -1
  131. package/dist/actions/update-source.cjs +1 -0
  132. package/dist/actions/update-source.cjs.map +1 -1
  133. package/dist/actions/update-source.d.cts +3 -21
  134. package/dist/actions/update-source.d.cts.map +1 -1
  135. package/dist/actions/update-source.d.mts +3 -21
  136. package/dist/actions/update-source.d.mts.map +1 -1
  137. package/dist/actions/update-source.mjs +1 -0
  138. package/dist/actions/update-source.mjs.map +1 -1
  139. package/dist/app.cjs +5 -4
  140. package/dist/app.cjs.map +1 -1
  141. package/dist/app.d.cts +4 -6
  142. package/dist/app.d.cts.map +1 -1
  143. package/dist/app.d.mts +4 -6
  144. package/dist/app.d.mts.map +1 -1
  145. package/dist/app.mjs +0 -1
  146. package/dist/app.mjs.map +1 -1
  147. package/dist/index.d.cts +1 -1
  148. package/dist/index.d.mts +1 -1
  149. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"list-connected-warehouses-from-source.cjs","names":["z","action"],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n}).passthrough();\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC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S;CAC9E,SAASA,IAAAA,EAAE,MAAM,8DAA8D;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,iEAAiE,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACpG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+FAA+FA,IAAAA,EAAE,OAAO;CAC5G,YAAY,8DAA8D,SAAS;CACnF,YAAYA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iDAAiDA,IAAAA,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2CAA2CC,eAAAA,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-connected-warehouses-from-source.cjs","names":["z","action"],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n}).passthrough();\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListConnectedWarehousesFromSource: AppAction<\n typeof SegmentListConnectedWarehousesFromSourceInput,\n typeof SegmentListConnectedWarehousesFromSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAAgEA,IAAAA,EAAE,OAAO;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;A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AAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,iEAAiE,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACpG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+FAA+FA,IAAAA,EAAE,OAAO;CAC5G,YAAY,8DAA8D,SAAS;CACnF,YAAYA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iDAAiDA,IAAAA,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2CAITC,eAAAA,OAAO,iDAAiD;CAC1D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-connected-warehouses-from-source.d.ts
@@ -38,27 +40,7 @@ declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
38
40
  }, z.core.$loose>>;
39
41
  }, z.core.$loose>>;
40
42
  }, z.core.$loose>;
41
- declare const segmentListConnectedWarehousesFromSource: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- sourceId: string;
43
- pagination: {
44
- count: number;
45
- cursor?: string | undefined;
46
- };
47
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- region: z.ZodString;
53
- generic_api_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- region: z.ZodString;
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
43
+ declare const segmentListConnectedWarehousesFromSource: AppAction<typeof SegmentListConnectedWarehousesFromSourceInput, typeof SegmentListConnectedWarehousesFromSourceOutput, typeof segment.credential>;
62
44
  //#endregion
63
45
  export { segmentListConnectedWarehousesFromSource };
64
46
  //# sourceMappingURL=list-connected-warehouses-from-source.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-connected-warehouses-from-source.d.cts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;cAIa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAwC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9C,wCAAA,gCAAwC,wBAAA"}
1
+ {"version":3,"file":"list-connected-warehouses-from-source.d.cts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;;;cAMa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAwC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9C,wCAAA,EAA0C,SAAA,QAC9C,6CAAA,SACA,8CAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-connected-warehouses-from-source.d.ts
@@ -38,27 +40,7 @@ declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
38
40
  }, z.core.$loose>>;
39
41
  }, z.core.$loose>>;
40
42
  }, z.core.$loose>;
41
- declare const segmentListConnectedWarehousesFromSource: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- sourceId: string;
43
- pagination: {
44
- count: number;
45
- cursor?: string | undefined;
46
- };
47
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- region: z.ZodString;
53
- generic_api_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- region: z.ZodString;
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
43
+ declare const segmentListConnectedWarehousesFromSource: AppAction<typeof SegmentListConnectedWarehousesFromSourceInput, typeof SegmentListConnectedWarehousesFromSourceOutput, typeof segment.credential>;
62
44
  //#endregion
63
45
  export { segmentListConnectedWarehousesFromSource };
64
46
  //# sourceMappingURL=list-connected-warehouses-from-source.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-connected-warehouses-from-source.d.mts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;cAIa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAwC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9C,wCAAA,gCAAwC,wBAAA"}
1
+ {"version":3,"file":"list-connected-warehouses-from-source.d.mts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;;;cAMa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAwC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9C,wCAAA,EAA0C,SAAA,QAC9C,6CAAA,SACA,8CAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-connected-warehouses-from-source.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-connected-warehouses-from-source.mjs","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n}).passthrough();\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAAgD,EAAE,OAAO;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SA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,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,iEAAiE,SAAS;CACpF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+FAA+F,EAAE,OAAO;CAC5G,YAAY,8DAA8D,SAAS;CACnF,YAAY,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,2CAA2C,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-connected-warehouses-from-source.mjs","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n}).passthrough();\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListConnectedWarehousesFromSource: AppAction<\n typeof SegmentListConnectedWarehousesFromSourceInput,\n typeof SegmentListConnectedWarehousesFromSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gDAAgD,EAAE,OAAO;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAAgE,EAAE,OAAO;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gEAAgE,EAAE,OAAO;CAC7E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;AAC/D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iEAAiE,EAAE,OAAO;CAC9E,MAAM,EAAE,OAAO,C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AAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-delivery-metrics-summary-from-destination.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-delivery-metrics-summary-from-destination.cjs","names":["z","action"],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListDeliveryMetricsSummaryFromDestination = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAwDA,IAAAA,EAAE,OAAO;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAyEA,IAAAA,EAAE,OAAO;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwEA,IAAAA,EAAE,OAAO;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gFAAgFA,IAAAA,EAAE,OAAO;CAC7F,SAASA,IAAAA,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+GAA+GA,IAAAA,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mDAAmDC,eAAAA,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-delivery-metrics-summary-from-destination.cjs","names":["z","action"],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListDeliveryMetricsSummaryFromDestination: AppAction<\n typeof SegmentListDeliveryMetricsSummaryFromDestinationInput,\n typeof SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wDAAwDA,IAAAA,EAAE,OAAO;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAyEA,IAAAA,EAAE,OAAO;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwEA,IAAAA,EAAE,OAAO;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gFAAgFA,IAAAA,EAAE,OAAO;CAC7F,SAASA,IAAAA,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+GAA+GA,IAAAA,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mDAITC,eAAAA,OAAO,0DAA0D;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-delivery-metrics-summary-from-destination.d.ts
@@ -28,27 +30,7 @@ declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodObjec
28
30
  }, z.core.$loose>>;
29
31
  }, z.core.$loose>>;
30
32
  }, z.core.$loose>;
31
- declare const segmentListDeliveryMetricsSummaryFromDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- sourceId: string;
33
- destinationId: string;
34
- endTime?: string | undefined;
35
- startTime?: string | undefined;
36
- granularity?: "DAY" | "HOUR" | "MINUTE" | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- region: z.ZodString;
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
45
- connectionId: z.ZodString;
46
- entityId: z.ZodString;
47
- instanceId: z.ZodString;
48
- }, z.core.$strip>, z.ZodObject<{
49
- region: z.ZodString;
50
- generic_api_key: z.ZodString;
51
- }, z.core.$strip>>]>;
33
+ declare const segmentListDeliveryMetricsSummaryFromDestination: AppAction<typeof SegmentListDeliveryMetricsSummaryFromDestinationInput, typeof SegmentListDeliveryMetricsSummaryFromDestinationOutput, typeof segment.credential>;
52
34
  //#endregion
53
35
  export { segmentListDeliveryMetricsSummaryFromDestination };
54
36
  //# sourceMappingURL=list-delivery-metrics-summary-from-destination.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-delivery-metrics-summary-from-destination.d.cts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,gCAAgD,wBAAA"}
1
+ {"version":3,"file":"list-delivery-metrics-summary-from-destination.d.cts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;;;cAMa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,EAAkD,SAAA,QACtD,qDAAA,SACA,sDAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-delivery-metrics-summary-from-destination.d.ts
@@ -28,27 +30,7 @@ declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodObjec
28
30
  }, z.core.$loose>>;
29
31
  }, z.core.$loose>>;
30
32
  }, z.core.$loose>;
31
- declare const segmentListDeliveryMetricsSummaryFromDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- sourceId: string;
33
- destinationId: string;
34
- endTime?: string | undefined;
35
- startTime?: string | undefined;
36
- granularity?: "DAY" | "HOUR" | "MINUTE" | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- region: z.ZodString;
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
45
- connectionId: z.ZodString;
46
- entityId: z.ZodString;
47
- instanceId: z.ZodString;
48
- }, z.core.$strip>, z.ZodObject<{
49
- region: z.ZodString;
50
- generic_api_key: z.ZodString;
51
- }, z.core.$strip>>]>;
33
+ declare const segmentListDeliveryMetricsSummaryFromDestination: AppAction<typeof SegmentListDeliveryMetricsSummaryFromDestinationInput, typeof SegmentListDeliveryMetricsSummaryFromDestinationOutput, typeof segment.credential>;
52
34
  //#endregion
53
35
  export { segmentListDeliveryMetricsSummaryFromDestination };
54
36
  //# sourceMappingURL=list-delivery-metrics-summary-from-destination.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-delivery-metrics-summary-from-destination.d.mts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,gCAAgD,wBAAA"}
1
+ {"version":3,"file":"list-delivery-metrics-summary-from-destination.d.mts","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"mappings":";;;;;cAMa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;cAwBrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAItD,gDAAA,EAAkD,SAAA,QACtD,qDAAA,SACA,sDAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-delivery-metrics-summary-from-destination.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-delivery-metrics-summary-from-destination.mjs","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListDeliveryMetricsSummaryFromDestination = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAwD,EAAE,OAAO;CAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAa,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,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ics-summary-from-destination.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListDeliveryMetricsSummaryFromDestination: AppAction<\n typeof SegmentListDeliveryMetricsSummaryFromDestinationInput,\n typeof SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wDAAwD,EAAE,OAAO;CAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAa,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAyE,EAAE,OAAO;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwE,EAAE,OAAO;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gFAAgF,EAAE,OAAO;CAC7F,SAAS,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+GAA+G,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mDAIT,OAAO,0DAA0D;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboE,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-schema-settings-in-source.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-schema-settings-in-source.cjs","names":["z","action"],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,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A+E,SAAS,EAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-schema-settings-in-source.cjs","names":["z","action"],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource: AppAction<\n typeof SegmentListSchemaSettingsInSourceInput,\n typeof SegmentListSchemaSettingsInSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,C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AAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,OAAO,sDAAsD,SAAS;CACtE,OAAO,sDAAsD,SAAS;CACtE,UAAU,yDAAyD,SAAS;CAC5E,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iFAAiFA,IAAAA,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-schema-settings-in-source.d.ts
@@ -30,23 +32,7 @@ declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
30
32
  sourceId: z.ZodNullable<z.ZodString>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- sourceId: string;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- region: z.ZodString;
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- region: z.ZodString;
48
- generic_api_key: z.ZodString;
49
- }, z.core.$strip>>]>;
35
+ declare const segmentListSchemaSettingsInSource: AppAction<typeof SegmentListSchemaSettingsInSourceInput, typeof SegmentListSchemaSettingsInSourceOutput, typeof segment.credential>;
50
36
  //#endregion
51
37
  export { segmentListSchemaSettingsInSource };
52
38
  //# sourceMappingURL=list-schema-settings-in-source.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-schema-settings-in-source.d.cts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"list-schema-settings-in-source.d.cts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-schema-settings-in-source.d.ts
@@ -30,23 +32,7 @@ declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
30
32
  sourceId: z.ZodNullable<z.ZodString>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- sourceId: string;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- region: z.ZodString;
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- region: z.ZodString;
48
- generic_api_key: z.ZodString;
49
- }, z.core.$strip>>]>;
35
+ declare const segmentListSchemaSettingsInSource: AppAction<typeof SegmentListSchemaSettingsInSourceInput, typeof SegmentListSchemaSettingsInSourceOutput, typeof segment.credential>;
50
36
  //#endregion
51
37
  export { segmentListSchemaSettingsInSource };
52
38
  //# sourceMappingURL=list-schema-settings-in-source.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-schema-settings-in-source.d.mts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"list-schema-settings-in-source.d.mts","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cA+BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-schema-settings-in-source.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-schema-settings-in-source.mjs","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwD,EAAE,OAAO;CACrE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAA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+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iFAAiF,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-schema-settings-in-source.mjs","names":[],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource: AppAction<\n typeof SegmentListSchemaSettingsInSourceInput,\n typeof SegmentListSchemaSettingsInSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyC,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,C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,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yDAAyD,EAAE,OAAO;CACtE,OAAO,sDAAsD,SAAS;CACtE,OAAO,sDAAsD,SAAS;CACtE,UAAU,yDAAyD,SAAS;CAC5E,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iFAAiF,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqD,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/page.ts
@@ -1 +1 @@
1
- {"version":3,"file":"page.cjs","names":["z","action"],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAmBA,IAAAA,EAAE,OAAO;CACvC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,4HAA4H;AACxI,MAAa,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAEjL,MAAa,cAAcC,eAAAA,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"page.cjs","names":["z","action"],"sources":["../../src/actions/page.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage: AppAction<\n typeof SegmentPageInput,\n typeof SegmentPageOutput,\n typeof segment.credential\n> = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mBAAmBA,IAAAA,EAAE,OAAO;CACvC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,4HAA4H;AACxI,MAAa,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAEjL,MAAa,cAITC,eAAAA,OAAO,gBAAgB;CACzB,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/page.d.ts
@@ -13,31 +15,7 @@ declare const SegmentPageInput: z.ZodObject<{
13
15
  integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
16
  }, z.core.$strip>;
15
17
  declare const SegmentPageOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
- declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- name?: string | undefined;
18
- userId?: string | undefined;
19
- context?: Record<string, unknown> | undefined;
20
- writeKey?: string | undefined;
21
- messageId?: string | undefined;
22
- timestamp?: string | undefined;
23
- properties?: Record<string, unknown> | undefined;
24
- anonymousId?: string | undefined;
25
- integrations?: Record<string, unknown> | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- region: z.ZodString;
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- region: z.ZodString;
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
18
+ declare const segmentPage: AppAction<typeof SegmentPageInput, typeof SegmentPageOutput, typeof segment.credential>;
41
19
  //#endregion
42
20
  export { segmentPage };
43
21
  //# sourceMappingURL=page.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.cts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEjB,WAAA,gCAAW,wBAAA"}
1
+ {"version":3,"file":"page.d.cts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;;;cAMa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEjB,WAAA,EAAa,SAAA,QACjB,gBAAA,SACA,iBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { segment } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/page.d.ts
@@ -13,31 +15,7 @@ declare const SegmentPageInput: z.ZodObject<{
13
15
  integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
16
  }, z.core.$strip>;
15
17
  declare const SegmentPageOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
- declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- name?: string | undefined;
18
- userId?: string | undefined;
19
- context?: Record<string, unknown> | undefined;
20
- writeKey?: string | undefined;
21
- messageId?: string | undefined;
22
- timestamp?: string | undefined;
23
- properties?: Record<string, unknown> | undefined;
24
- anonymousId?: string | undefined;
25
- integrations?: Record<string, unknown> | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- region: z.ZodString;
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- region: z.ZodString;
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
18
+ declare const segmentPage: AppAction<typeof SegmentPageInput, typeof SegmentPageOutput, typeof segment.credential>;
41
19
  //#endregion
42
20
  export { segmentPage };
43
21
  //# sourceMappingURL=page.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.mts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEjB,WAAA,gCAAW,wBAAA"}
1
+ {"version":3,"file":"page.d.mts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;;;cAMa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEjB,WAAA,EAAa,SAAA,QACjB,gBAAA,SACA,iBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const segmentPage = action("SEGMENT_PAGE", {
@@ -1 +1 @@
1
- {"version":3,"file":"page.mjs","names":[],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;AAiBA,MAAa,cAAc,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB8B,EAAE,OAAO;EACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACrH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,4HAOH;CACP,QAP+B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAOlE;AACV,CAAC"}
1
+ {"version":3,"file":"page.mjs","names":[],"sources":["../../src/actions/page.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage: AppAction<\n typeof SegmentPageInput,\n typeof SegmentPageOutput,\n typeof segment.credential\n> = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,cAIT,OAAO,gBAAgB;CACzB,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB8B,EAAE,OAAO;EACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACrH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,4HAWH;CACP,QAX+B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAWlE;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/remove-source-write-key.ts
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.cjs","names":["z","action"],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n}).passthrough();\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).passthrough().describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"remove-source-write-key.cjs","names":["z","action"],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n}).passthrough();\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).passthrough().describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey: AppAction<\n typeof SegmentRemoveSourceWriteKeyInput,\n typeof SegmentRemoveSourceWriteKeyOutput,\n typeof segment.credential\n> = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,8BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}