@keystrokehq/segment 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) 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 +2 -2
  4. package/dist/actions/add-labels-to-source.cjs.map +1 -1
  5. package/dist/actions/add-labels-to-source.d.cts +22 -3
  6. package/dist/actions/add-labels-to-source.d.cts.map +1 -1
  7. package/dist/actions/add-labels-to-source.d.mts +22 -3
  8. package/dist/actions/add-labels-to-source.d.mts.map +1 -1
  9. package/dist/actions/add-labels-to-source.mjs +2 -2
  10. package/dist/actions/add-labels-to-source.mjs.map +1 -1
  11. package/dist/actions/alias.cjs.map +1 -1
  12. package/dist/actions/alias.d.cts +17 -3
  13. package/dist/actions/alias.d.cts.map +1 -1
  14. package/dist/actions/alias.d.mts +17 -3
  15. package/dist/actions/alias.d.mts.map +1 -1
  16. package/dist/actions/alias.mjs.map +1 -1
  17. package/dist/actions/batch.cjs.map +1 -1
  18. package/dist/actions/batch.d.cts +13 -3
  19. package/dist/actions/batch.d.cts.map +1 -1
  20. package/dist/actions/batch.d.mts +13 -3
  21. package/dist/actions/batch.d.mts.map +1 -1
  22. package/dist/actions/batch.mjs.map +1 -1
  23. package/dist/actions/delete-source.cjs +1 -1
  24. package/dist/actions/delete-source.cjs.map +1 -1
  25. package/dist/actions/delete-source.d.cts +11 -3
  26. package/dist/actions/delete-source.d.cts.map +1 -1
  27. package/dist/actions/delete-source.d.mts +11 -3
  28. package/dist/actions/delete-source.d.mts.map +1 -1
  29. package/dist/actions/delete-source.mjs +1 -1
  30. package/dist/actions/delete-source.mjs.map +1 -1
  31. package/dist/actions/get-daily-per-source-api-calls-usage.cjs +5 -5
  32. package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -1
  33. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +29 -3
  34. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -1
  35. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +29 -3
  36. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -1
  37. package/dist/actions/get-daily-per-source-api-calls-usage.mjs +5 -5
  38. package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
  39. package/dist/actions/get-destination.cjs +26 -26
  40. package/dist/actions/get-destination.cjs.map +1 -1
  41. package/dist/actions/get-destination.d.cts +65 -3
  42. package/dist/actions/get-destination.d.cts.map +1 -1
  43. package/dist/actions/get-destination.d.mts +65 -3
  44. package/dist/actions/get-destination.d.mts.map +1 -1
  45. package/dist/actions/get-destination.mjs +26 -26
  46. package/dist/actions/get-destination.mjs.map +1 -1
  47. package/dist/actions/group.cjs.map +1 -1
  48. package/dist/actions/group.d.cts +21 -3
  49. package/dist/actions/group.d.cts.map +1 -1
  50. package/dist/actions/group.d.mts +21 -3
  51. package/dist/actions/group.d.mts.map +1 -1
  52. package/dist/actions/group.mjs.map +1 -1
  53. package/dist/actions/identify.cjs.map +1 -1
  54. package/dist/actions/identify.d.cts +21 -3
  55. package/dist/actions/identify.d.cts.map +1 -1
  56. package/dist/actions/identify.d.mts +21 -3
  57. package/dist/actions/identify.d.mts.map +1 -1
  58. package/dist/actions/identify.mjs.map +1 -1
  59. package/dist/actions/import-historical-data.cjs +1 -1
  60. package/dist/actions/import-historical-data.cjs.map +1 -1
  61. package/dist/actions/import-historical-data.d.cts +13 -3
  62. package/dist/actions/import-historical-data.d.cts.map +1 -1
  63. package/dist/actions/import-historical-data.d.mts +13 -3
  64. package/dist/actions/import-historical-data.d.mts.map +1 -1
  65. package/dist/actions/import-historical-data.mjs +1 -1
  66. package/dist/actions/import-historical-data.mjs.map +1 -1
  67. package/dist/actions/list-connected-warehouses-from-source.cjs +15 -15
  68. package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
  69. package/dist/actions/list-connected-warehouses-from-source.d.cts +44 -3
  70. package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -1
  71. package/dist/actions/list-connected-warehouses-from-source.d.mts +44 -3
  72. package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -1
  73. package/dist/actions/list-connected-warehouses-from-source.mjs +15 -15
  74. package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
  75. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +5 -5
  76. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
  77. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +34 -3
  78. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -1
  79. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +34 -3
  80. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -1
  81. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +5 -5
  82. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
  83. package/dist/actions/list-schema-settings-in-source.cjs +1 -1
  84. package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
  85. package/dist/actions/list-schema-settings-in-source.d.cts +32 -3
  86. package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -1
  87. package/dist/actions/list-schema-settings-in-source.d.mts +32 -3
  88. package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -1
  89. package/dist/actions/list-schema-settings-in-source.mjs +1 -1
  90. package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
  91. package/dist/actions/page.cjs.map +1 -1
  92. package/dist/actions/page.d.cts +23 -3
  93. package/dist/actions/page.d.cts.map +1 -1
  94. package/dist/actions/page.d.mts +23 -3
  95. package/dist/actions/page.d.mts.map +1 -1
  96. package/dist/actions/page.mjs.map +1 -1
  97. package/dist/actions/remove-source-write-key.cjs +1 -1
  98. package/dist/actions/remove-source-write-key.cjs.map +1 -1
  99. package/dist/actions/remove-source-write-key.d.cts +13 -3
  100. package/dist/actions/remove-source-write-key.d.cts.map +1 -1
  101. package/dist/actions/remove-source-write-key.d.mts +13 -3
  102. package/dist/actions/remove-source-write-key.d.mts.map +1 -1
  103. package/dist/actions/remove-source-write-key.mjs +1 -1
  104. package/dist/actions/remove-source-write-key.mjs.map +1 -1
  105. package/dist/actions/screen.cjs.map +1 -1
  106. package/dist/actions/screen.d.cts +21 -3
  107. package/dist/actions/screen.d.cts.map +1 -1
  108. package/dist/actions/screen.d.mts +21 -3
  109. package/dist/actions/screen.d.mts.map +1 -1
  110. package/dist/actions/screen.mjs.map +1 -1
  111. package/dist/actions/track.cjs.map +1 -1
  112. package/dist/actions/track.d.cts +21 -3
  113. package/dist/actions/track.d.cts.map +1 -1
  114. package/dist/actions/track.d.mts +21 -3
  115. package/dist/actions/track.d.mts.map +1 -1
  116. package/dist/actions/track.mjs.map +1 -1
  117. package/dist/actions/update-source.cjs +1 -1
  118. package/dist/actions/update-source.cjs.map +1 -1
  119. package/dist/actions/update-source.d.cts +44 -3
  120. package/dist/actions/update-source.d.cts.map +1 -1
  121. package/dist/actions/update-source.d.mts +44 -3
  122. package/dist/actions/update-source.d.mts.map +1 -1
  123. package/dist/actions/update-source.mjs +1 -1
  124. package/dist/actions/update-source.mjs.map +1 -1
  125. package/dist/catalog.cjs +13 -1
  126. package/dist/catalog.cjs.map +1 -1
  127. package/dist/catalog.d.cts +12 -0
  128. package/dist/catalog.d.mts +12 -0
  129. package/dist/catalog.mjs +13 -1
  130. package/dist/catalog.mjs.map +1 -1
  131. package/package.json +2 -2
@@ -13,17 +13,17 @@ const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({
13
13
  destinationId: z.string().describe("Destination identifier")
14
14
  });
15
15
  const SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({
16
- value: z.number().describe("Breakdown value"),
17
- metricName: z.string().describe("Breakdown metric name")
16
+ value: z.number().describe("Breakdown value").nullable(),
17
+ metricName: z.string().describe("Breakdown metric name").nullable()
18
18
  });
19
19
  const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({
20
- total: z.number().describe("Total value for the metric"),
20
+ total: z.number().describe("Total value for the metric").nullable(),
21
21
  breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe("Optional breakdown for this metric").nullable().optional(),
22
- metricName: z.string().describe("Metric name")
22
+ metricName: z.string().describe("Metric name").nullable()
23
23
  });
24
24
  const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({
25
25
  metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe("List of delivery metrics entries").nullable().optional(),
26
- sourceId: z.string().describe("The requested source id"),
26
+ sourceId: z.string().describe("The requested source id").nullable(),
27
27
  destinationMetadataId: z.string().describe("Destination metadata id").nullable().optional()
28
28
  });
29
29
  const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() });
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n value: z.number().describe(\"Breakdown value\"),\n metricName: z.string().describe(\"Breakdown metric name\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema: z.ZodTypeAny = z.object({\n total: z.number().describe(\"Total value for the metric\"),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema: z.ZodTypeAny = 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\"),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema: z.ZodTypeAny = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n});\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodTypeAny = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n});\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,wDAAsE,EAAE,OAAO;CAC1F,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,yEAAuF,EAAE,OAAO;CACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;AACzD,CAAC;AACD,MAAM,wEAAsF,EAAE,OAAO;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,WAAW,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;AAC/C,CAAC;AACD,MAAM,gFAA8F,EAAE,OAAO;CAC3G,SAAS,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACvD,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC;AACD,MAAM,+GAA6H,EAAE,OAAO,EAC1I,wBAAwB,8EAA8E,SAAS,EACjH,CAAC;AAKD,MAAa,mDAAmD,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkF,EAAE,OAAO,EAC3F,MAAM,6GAA6G,SAAS,EAC9H,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-delivery-metrics-summary-from-destination.mjs","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { 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});\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});\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});\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n});\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n});\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,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;AACD,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;AACD,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;AACD,MAAM,+GAA+G,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC;AAKD,MAAa,mDAAmD,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToE,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAOU;AACV,CAAC"}
@@ -28,7 +28,7 @@ const SegmentListSchemaSettingsInSource_SchemaSettingsSchema = zod.z.object({
28
28
  });
29
29
  const SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = zod.z.object({
30
30
  settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),
31
- sourceId: zod.z.string().describe("Source ID")
31
+ sourceId: zod.z.string().describe("Source ID").nullable()
32
32
  });
33
33
  const SegmentListSchemaSettingsInSourceOutput = zod.z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() });
34
34
  const segmentListSchemaSettingsInSource = require_action.action("SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE", {
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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});\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema: z.ZodTypeAny = 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});\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema: z.ZodTypeAny = 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});\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema: z.ZodTypeAny = 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});\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema: z.ZodTypeAny = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\"),\n});\nexport const SegmentListSchemaSettingsInSourceOutput: z.ZodTypeAny = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n});\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,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,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;AACD,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,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,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,+BAA+BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AACD,MAAM,2DAAyEA,IAAAA,EAAE,OAAO;CACtF,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;AACD,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,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;AACD,MAAM,iFAA+FA,IAAAA,EAAE,OAAO;CAC5G,UAAU,uDAAuD,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AAC3C,CAAC;AACD,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,MAAM,+EAA+E,SAAS,EAChG,CAAC;AAED,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 { 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});\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});\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});\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});\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n});\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n});\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;AACD,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,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,+BAA+BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AACD,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,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;AACD,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;AACD,MAAM,iFAAiFA,IAAAA,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC;AACD,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAAC;AAED,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-schema-settings-in-source.d.ts
4
- declare const SegmentListSchemaSettingsInSourceInput: z.ZodTypeAny;
5
- declare const SegmentListSchemaSettingsInSourceOutput: z.ZodTypeAny;
6
- declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentListSchemaSettingsInSourceInput: z.ZodObject<{
5
+ sourceId: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ settings: z.ZodNullable<z.ZodObject<{
10
+ group: z.ZodNullable<z.ZodObject<{
11
+ allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
12
+ allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
13
+ commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
14
+ }, z.core.$strip>>;
15
+ track: z.ZodNullable<z.ZodObject<{
16
+ allowUnplannedEvents: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
17
+ allowEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
18
+ commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
19
+ allowPropertiesOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
20
+ allowUnplannedEventProperties: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
21
+ }, z.core.$strip>>;
22
+ identify: z.ZodNullable<z.ZodObject<{
23
+ allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
24
+ allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
25
+ commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
26
+ }, z.core.$strip>>;
27
+ forwardingViolationsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ forwardingBlockedEventsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$strip>>;
30
+ sourceId: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>;
33
+ declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ sourceId: string;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { segmentListSchemaSettingsInSource };
9
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,EAAwC,CAAA,CAAE,UAEsB;AAAA,cA6BhE,uCAAA,EAAyC,CAAA,CAAE,UAEtD;AAAA,cAEW,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-schema-settings-in-source.d.ts
4
- declare const SegmentListSchemaSettingsInSourceInput: z.ZodTypeAny;
5
- declare const SegmentListSchemaSettingsInSourceOutput: z.ZodTypeAny;
6
- declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentListSchemaSettingsInSourceInput: z.ZodObject<{
5
+ sourceId: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ settings: z.ZodNullable<z.ZodObject<{
10
+ group: z.ZodNullable<z.ZodObject<{
11
+ allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
12
+ allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
13
+ commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
14
+ }, z.core.$strip>>;
15
+ track: z.ZodNullable<z.ZodObject<{
16
+ allowUnplannedEvents: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
17
+ allowEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
18
+ commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
19
+ allowPropertiesOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
20
+ allowUnplannedEventProperties: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
21
+ }, z.core.$strip>>;
22
+ identify: z.ZodNullable<z.ZodObject<{
23
+ allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
24
+ allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
25
+ commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
26
+ }, z.core.$strip>>;
27
+ forwardingViolationsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ forwardingBlockedEventsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$strip>>;
30
+ sourceId: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>;
33
+ declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ sourceId: string;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { segmentListSchemaSettingsInSource };
9
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,EAAwC,CAAA,CAAE,UAEsB;AAAA,cA6BhE,uCAAA,EAAyC,CAAA,CAAE,UAEtD;AAAA,cAEW,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -28,7 +28,7 @@ const SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({
28
28
  });
29
29
  const SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({
30
30
  settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),
31
- sourceId: z.string().describe("Source ID")
31
+ sourceId: z.string().describe("Source ID").nullable()
32
32
  });
33
33
  const segmentListSchemaSettingsInSource = action("SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE", {
34
34
  slug: "segment-list-schema-settings-in-source",
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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});\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema: z.ZodTypeAny = 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});\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema: z.ZodTypeAny = 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});\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema: z.ZodTypeAny = 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});\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema: z.ZodTypeAny = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\"),\n});\nexport const SegmentListSchemaSettingsInSourceOutput: z.ZodTypeAny = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n});\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,yCAAuD,EAAE,OAAO,EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAsE,EAAE,OAAO;CACnF,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,MAAM,wDAAsE,EAAE,OAAO;CACnF,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,6BAA6B,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,+BAA+B,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AACD,MAAM,2DAAyE,EAAE,OAAO;CACtF,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,MAAM,yDAAuE,EAAE,OAAO;CACpF,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;AACD,MAAM,iFAA+F,EAAE,OAAO;CAC5G,UAAU,uDAAuD,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AAC3C,CAAC;AAKD,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmE,EAAE,OAAO,EAC5E,MAAM,+EAA+E,SAAS,EAChG,CAOU;AACV,CAAC"}
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});\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});\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});\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});\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n});\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n});\n\nexport const segmentListSchemaSettingsInSource = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAClD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wDAAwD,EAAE,OAAO;CACrE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,MAAM,wDAAwD,EAAE,OAAO;CACrE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,6BAA6B,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,+BAA+B,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AACD,MAAM,2DAA2D,EAAE,OAAO;CACxE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,yBAAyB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,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;AACD,MAAM,iFAAiF,EAAE,OAAO;CAC9F,UAAU,uDAAuD,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACtD,CAAC;AAKD,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,+EAA+E,SAAS,EAChG,CAOU;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"page.cjs","names":["z","action"],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput: z.ZodTypeAny = z.object({}).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4HAA4H;AACxI,MAAa,oBAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAE1K,MAAa,cAAcC,eAAAA,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"page.cjs","names":["z","action"],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.object({}).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4HAA4H;AACxI,MAAa,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAE5J,MAAa,cAAcC,eAAAA,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/page.d.ts
4
- declare const SegmentPageInput: z.ZodTypeAny;
5
- declare const SegmentPageOutput: z.ZodTypeAny;
6
- declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentPageInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ messageId: z.ZodOptional<z.ZodString>;
10
+ timestamp: z.ZodOptional<z.ZodString>;
11
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ anonymousId: z.ZodOptional<z.ZodString>;
13
+ integrations: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ declare const SegmentPageOutput: z.ZodObject<{}, z.core.$strip>;
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, never> | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { segmentPage };
9
29
  //# sourceMappingURL=page.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.cts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAkB,CAAA,CAAE,UAUwG;AAAA,cAC5H,iBAAA,EAAmB,CAAA,CAAE,UAAyI;AAAA,cAE9J,WAAA,gCAAW,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"page.d.cts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEjB,WAAA,gCAAW,wBAAA"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/page.d.ts
4
- declare const SegmentPageInput: z.ZodTypeAny;
5
- declare const SegmentPageOutput: z.ZodTypeAny;
6
- declare const segmentPage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentPageInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ messageId: z.ZodOptional<z.ZodString>;
10
+ timestamp: z.ZodOptional<z.ZodString>;
11
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ anonymousId: z.ZodOptional<z.ZodString>;
13
+ integrations: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ declare const SegmentPageOutput: z.ZodObject<{}, z.core.$strip>;
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, never> | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { segmentPage };
9
29
  //# sourceMappingURL=page.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.mts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAkB,CAAA,CAAE,UAUwG;AAAA,cAC5H,iBAAA,EAAmB,CAAA,CAAE,UAAyI;AAAA,cAE9J,WAAA,gCAAW,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"page.d.mts","names":[],"sources":["../../src/actions/page.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWhB,iBAAA,EAAiB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEjB,WAAA,gCAAW,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"page.mjs","names":[],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput: z.ZodTypeAny = z.object({}).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;AAiBA,MAAa,cAAc,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACrH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,4HAOH;CACP,QAP6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGAO3D;AACV,CAAC"}
1
+ {"version":3,"file":"page.mjs","names":[],"sources":["../../src/actions/page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentPageInput = z.object({\n name: z.string().describe(\"Name of the page. Optional.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or Bearer auth in headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of page properties (e.g., path, url).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a page view via Segment HTTP Tracking API.\\nOne of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentPageOutput = z.object({}).describe(\"Empty response indicating the page view was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentPage = action(\"SEGMENT_PAGE\", {\n slug: \"segment-page\",\n name: \"Segment Page View\",\n description: \"Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.\",\n input: SegmentPageInput,\n output: SegmentPageOutput,\n});\n"],"mappings":";;AAiBA,MAAa,cAAc,OAAO,gBAAgB;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,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,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,4HAOH;CACP,QAP+B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGAO7C;AACV,CAAC"}
@@ -5,7 +5,7 @@ const SegmentRemoveSourceWriteKeyInput = zod.z.object({
5
5
  sourceId: zod.z.string().describe("The unique identifier of the Source."),
6
6
  writeKey: zod.z.string().describe("The write key to remove from the Source.")
7
7
  }).describe("Request parameters for removing a write key from a Segment Source.");
8
- const SegmentRemoveSourceWriteKey_RemoveStatusSchema = zod.z.object({ status: zod.z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.") });
8
+ const SegmentRemoveSourceWriteKey_RemoveStatusSchema = zod.z.object({ status: zod.z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.").nullable() });
9
9
  const SegmentRemoveSourceWriteKeyOutput = zod.z.object({ data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable() }).describe("Response schema for removing a write key from a Source.");
10
10
  const segmentRemoveSourceWriteKey = require_action.action("SEGMENT_REMOVE_SOURCE_WRITE_KEY", {
11
11
  slug: "segment-remove-source-write-key",
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.cjs","names":["z","action"],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput: z.ZodTypeAny = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\"),\n});\nexport const SegmentRemoveSourceWriteKeyOutput: z.ZodTypeAny = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAA+DA,IAAAA,EAAE,OAAO,EAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EACjF,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"remove-source-write-key.cjs","names":["z","action"],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n});\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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;AACD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/remove-source-write-key.d.ts
4
- declare const SegmentRemoveSourceWriteKeyInput: z.ZodTypeAny;
5
- declare const SegmentRemoveSourceWriteKeyOutput: z.ZodTypeAny;
6
- declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentRemoveSourceWriteKeyInput: z.ZodObject<{
5
+ sourceId: z.ZodString;
6
+ writeKey: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SegmentRemoveSourceWriteKeyOutput: z.ZodObject<{
9
+ data: z.ZodNullable<z.ZodObject<{
10
+ status: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ sourceId: string;
15
+ writeKey: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { segmentRemoveSourceWriteKey };
9
19
  //# sourceMappingURL=remove-source-write-key.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.d.cts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAGgC;AAAA,cAIpE,iCAAA,EAAmC,CAAA,CAAE,UAEoB;AAAA,cAEzD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"remove-source-write-key.d.cts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAOhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/remove-source-write-key.d.ts
4
- declare const SegmentRemoveSourceWriteKeyInput: z.ZodTypeAny;
5
- declare const SegmentRemoveSourceWriteKeyOutput: z.ZodTypeAny;
6
- declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentRemoveSourceWriteKeyInput: z.ZodObject<{
5
+ sourceId: z.ZodString;
6
+ writeKey: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SegmentRemoveSourceWriteKeyOutput: z.ZodObject<{
9
+ data: z.ZodNullable<z.ZodObject<{
10
+ status: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ sourceId: string;
15
+ writeKey: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { segmentRemoveSourceWriteKey };
9
19
  //# sourceMappingURL=remove-source-write-key.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.d.mts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAGgC;AAAA,cAIpE,iCAAA,EAAmC,CAAA,CAAE,UAEoB;AAAA,cAEzD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"remove-source-write-key.d.mts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAOhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
@@ -5,7 +5,7 @@ const SegmentRemoveSourceWriteKeyInput = z.object({
5
5
  sourceId: z.string().describe("The unique identifier of the Source."),
6
6
  writeKey: z.string().describe("The write key to remove from the Source.")
7
7
  }).describe("Request parameters for removing a write key from a Segment Source.");
8
- const SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({ status: z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.") });
8
+ const SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({ status: z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.").nullable() });
9
9
  const segmentRemoveSourceWriteKey = action("SEGMENT_REMOVE_SOURCE_WRITE_KEY", {
10
10
  slug: "segment-remove-source-write-key",
11
11
  name: "Remove Source Write Key",
@@ -1 +1 @@
1
- {"version":3,"file":"remove-source-write-key.mjs","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput: z.ZodTypeAny = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\"),\n});\nexport const SegmentRemoveSourceWriteKeyOutput: z.ZodTypeAny = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAA+D,EAAE,OAAO,EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EACjF,CAAC;AAKD,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"remove-source-write-key.mjs","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n});\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiD,EAAE,OAAO,EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC;AAKD,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"screen.cjs","names":["z","action"],"sources":["../../src/actions/screen.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentScreenInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the screen.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput: z.ZodTypeAny = z.object({}).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC/H,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,sIAAsI;AAClJ,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAE/K,MAAa,gBAAgBC,eAAAA,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"screen.cjs","names":["z","action"],"sources":["../../src/actions/screen.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentScreenInput = z.object({\n name: z.string().describe(\"Name of the screen.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput = z.object({}).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC/H,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,sIAAsI;AAClJ,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAEjK,MAAa,gBAAgBC,eAAAA,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/screen.d.ts
4
- declare const SegmentScreenInput: z.ZodTypeAny;
5
- declare const SegmentScreenOutput: z.ZodTypeAny;
6
- declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentScreenInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ timestamp: z.ZodOptional<z.ZodString>;
10
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ anonymousId: z.ZodOptional<z.ZodString>;
12
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ declare const SegmentScreenOutput: z.ZodObject<{}, z.core.$strip>;
15
+ declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ name?: string | undefined;
17
+ userId?: string | undefined;
18
+ context?: Record<string, unknown> | undefined;
19
+ writeKey?: string | undefined;
20
+ timestamp?: string | undefined;
21
+ properties?: Record<string, unknown> | undefined;
22
+ anonymousId?: string | undefined;
23
+ integrations?: Record<string, unknown> | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { segmentScreen };
9
27
  //# sourceMappingURL=screen.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.d.cts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UASgH;AAAA,cACtI,mBAAA,EAAqB,CAAA,CAAE,UAA4I;AAAA,cAEnK,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"screen.d.cts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAUlB,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEnB,aAAA,gCAAa,wBAAA"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/screen.d.ts
4
- declare const SegmentScreenInput: z.ZodTypeAny;
5
- declare const SegmentScreenOutput: z.ZodTypeAny;
6
- declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SegmentScreenInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ writeKey: z.ZodOptional<z.ZodString>;
9
+ timestamp: z.ZodOptional<z.ZodString>;
10
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ anonymousId: z.ZodOptional<z.ZodString>;
12
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ declare const SegmentScreenOutput: z.ZodObject<{}, z.core.$strip>;
15
+ declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ name?: string | undefined;
17
+ userId?: string | undefined;
18
+ context?: Record<string, unknown> | undefined;
19
+ writeKey?: string | undefined;
20
+ timestamp?: string | undefined;
21
+ properties?: Record<string, unknown> | undefined;
22
+ anonymousId?: string | undefined;
23
+ integrations?: Record<string, unknown> | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { segmentScreen };
9
27
  //# sourceMappingURL=screen.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.d.mts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UASgH;AAAA,cACtI,mBAAA,EAAqB,CAAA,CAAE,UAA4I;AAAA,cAEnK,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"screen.d.mts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAUlB,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEnB,aAAA,gCAAa,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"screen.mjs","names":[],"sources":["../../src/actions/screen.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentScreenInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the screen.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput: z.ZodTypeAny = z.object({}).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;AAgBA,MAAa,gBAAgB,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC/H,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC9G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,sIAOH;CACP,QAP+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAO7D;AACV,CAAC"}
1
+ {"version":3,"file":"screen.mjs","names":[],"sources":["../../src/actions/screen.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentScreenInput = z.object({\n name: z.string().describe(\"Name of the screen.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput = z.object({}).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;AAgBA,MAAa,gBAAgB,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBgC,EAAE,OAAO;EACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC/H,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC9G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,sIAOH;CACP,QAPiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAO/C;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"track.cjs","names":["z","action"],"sources":["../../src/actions/track.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentTrackInput: z.ZodTypeAny = z.object({\n event: z.string().describe(\"Name of the action performed (e.g., 'Item Purchased').\"),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of event-specific properties (e.g., revenue).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a user event via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentTrackOutput: z.ZodTypeAny = z.object({}).describe(\"Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentTrack = action(\"SEGMENT_TRACK\", {\n slug: \"segment-track\",\n name: \"Segment Track Event\",\n description: \"Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.\",\n input: SegmentTrackInput,\n output: SegmentTrackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,qIAAqI;AACjJ,MAAa,qBAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAEvK,MAAa,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"track.cjs","names":["z","action"],"sources":["../../src/actions/track.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentTrackInput = z.object({\n event: z.string().describe(\"Name of the action performed (e.g., 'Item Purchased').\"),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of event-specific properties (e.g., revenue).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a user event via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentTrackOutput = z.object({}).describe(\"Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentTrack = action(\"SEGMENT_TRACK\", {\n slug: \"segment-track\",\n name: \"Segment Track Event\",\n description: \"Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.\",\n input: SegmentTrackInput,\n output: SegmentTrackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,qIAAqI;AACjJ,MAAa,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAEzJ,MAAa,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}