@keystrokehq/segment 0.1.2 → 0.1.4

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 (123) hide show
  1. package/dist/actions/add-labels-to-source.cjs +4 -4
  2. package/dist/actions/add-labels-to-source.cjs.map +1 -1
  3. package/dist/actions/add-labels-to-source.d.cts +5 -4
  4. package/dist/actions/add-labels-to-source.d.mts +5 -4
  5. package/dist/actions/add-labels-to-source.mjs +4 -4
  6. package/dist/actions/add-labels-to-source.mjs.map +1 -1
  7. package/dist/actions/alias.cjs +2 -2
  8. package/dist/actions/alias.cjs.map +1 -1
  9. package/dist/actions/alias.d.cts +3 -3
  10. package/dist/actions/alias.d.cts.map +1 -1
  11. package/dist/actions/alias.d.mts +3 -3
  12. package/dist/actions/alias.d.mts.map +1 -1
  13. package/dist/actions/alias.mjs +2 -2
  14. package/dist/actions/alias.mjs.map +1 -1
  15. package/dist/actions/batch.cjs +1 -1
  16. package/dist/actions/batch.cjs.map +1 -1
  17. package/dist/actions/batch.d.cts +1 -1
  18. package/dist/actions/batch.d.cts.map +1 -1
  19. package/dist/actions/batch.d.mts +1 -1
  20. package/dist/actions/batch.d.mts.map +1 -1
  21. package/dist/actions/batch.mjs +1 -1
  22. package/dist/actions/batch.mjs.map +1 -1
  23. package/dist/actions/delete-source.cjs +2 -2
  24. package/dist/actions/delete-source.cjs.map +1 -1
  25. package/dist/actions/delete-source.d.cts +2 -2
  26. package/dist/actions/delete-source.d.mts +2 -2
  27. package/dist/actions/delete-source.mjs +2 -2
  28. package/dist/actions/delete-source.mjs.map +1 -1
  29. package/dist/actions/get-daily-per-source-api-calls-usage.cjs +4 -4
  30. package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -1
  31. package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +4 -4
  32. package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +4 -4
  33. package/dist/actions/get-daily-per-source-api-calls-usage.mjs +4 -4
  34. package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
  35. package/dist/actions/get-destination.cjs +9 -9
  36. package/dist/actions/get-destination.cjs.map +1 -1
  37. package/dist/actions/get-destination.d.cts +9 -9
  38. package/dist/actions/get-destination.d.mts +9 -9
  39. package/dist/actions/get-destination.mjs +9 -9
  40. package/dist/actions/get-destination.mjs.map +1 -1
  41. package/dist/actions/group.cjs +2 -2
  42. package/dist/actions/group.cjs.map +1 -1
  43. package/dist/actions/group.d.cts +3 -3
  44. package/dist/actions/group.d.cts.map +1 -1
  45. package/dist/actions/group.d.mts +3 -3
  46. package/dist/actions/group.d.mts.map +1 -1
  47. package/dist/actions/group.mjs +2 -2
  48. package/dist/actions/group.mjs.map +1 -1
  49. package/dist/actions/identify.cjs +2 -2
  50. package/dist/actions/identify.cjs.map +1 -1
  51. package/dist/actions/identify.d.cts +3 -3
  52. package/dist/actions/identify.d.cts.map +1 -1
  53. package/dist/actions/identify.d.mts +3 -3
  54. package/dist/actions/identify.d.mts.map +1 -1
  55. package/dist/actions/identify.mjs +2 -2
  56. package/dist/actions/identify.mjs.map +1 -1
  57. package/dist/actions/import-historical-data.cjs +1 -1
  58. package/dist/actions/import-historical-data.cjs.map +1 -1
  59. package/dist/actions/import-historical-data.d.cts +1 -1
  60. package/dist/actions/import-historical-data.d.mts +1 -1
  61. package/dist/actions/import-historical-data.mjs +1 -1
  62. package/dist/actions/import-historical-data.mjs.map +1 -1
  63. package/dist/actions/list-connected-warehouses-from-source.cjs +8 -8
  64. package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
  65. package/dist/actions/list-connected-warehouses-from-source.d.cts +8 -8
  66. package/dist/actions/list-connected-warehouses-from-source.d.mts +8 -8
  67. package/dist/actions/list-connected-warehouses-from-source.mjs +8 -8
  68. package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
  69. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +5 -5
  70. package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
  71. package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +5 -5
  72. package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +5 -5
  73. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +5 -5
  74. package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
  75. package/dist/actions/list-schema-settings-in-source.cjs +6 -6
  76. package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
  77. package/dist/actions/list-schema-settings-in-source.d.cts +6 -6
  78. package/dist/actions/list-schema-settings-in-source.d.mts +6 -6
  79. package/dist/actions/list-schema-settings-in-source.mjs +6 -6
  80. package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
  81. package/dist/actions/page.cjs +2 -2
  82. package/dist/actions/page.cjs.map +1 -1
  83. package/dist/actions/page.d.cts +3 -3
  84. package/dist/actions/page.d.cts.map +1 -1
  85. package/dist/actions/page.d.mts +3 -3
  86. package/dist/actions/page.d.mts.map +1 -1
  87. package/dist/actions/page.mjs +2 -2
  88. package/dist/actions/page.mjs.map +1 -1
  89. package/dist/actions/remove-source-write-key.cjs +2 -2
  90. package/dist/actions/remove-source-write-key.cjs.map +1 -1
  91. package/dist/actions/remove-source-write-key.d.cts +2 -2
  92. package/dist/actions/remove-source-write-key.d.mts +2 -2
  93. package/dist/actions/remove-source-write-key.mjs +2 -2
  94. package/dist/actions/remove-source-write-key.mjs.map +1 -1
  95. package/dist/actions/screen.cjs +1 -1
  96. package/dist/actions/screen.cjs.map +1 -1
  97. package/dist/actions/screen.d.cts +1 -1
  98. package/dist/actions/screen.d.cts.map +1 -1
  99. package/dist/actions/screen.d.mts +1 -1
  100. package/dist/actions/screen.d.mts.map +1 -1
  101. package/dist/actions/screen.mjs +1 -1
  102. package/dist/actions/screen.mjs.map +1 -1
  103. package/dist/actions/track.cjs +2 -2
  104. package/dist/actions/track.cjs.map +1 -1
  105. package/dist/actions/track.d.cts +3 -3
  106. package/dist/actions/track.d.cts.map +1 -1
  107. package/dist/actions/track.d.mts +3 -3
  108. package/dist/actions/track.d.mts.map +1 -1
  109. package/dist/actions/track.mjs +2 -2
  110. package/dist/actions/track.mjs.map +1 -1
  111. package/dist/actions/update-source.cjs +5 -5
  112. package/dist/actions/update-source.cjs.map +1 -1
  113. package/dist/actions/update-source.d.cts +5 -5
  114. package/dist/actions/update-source.d.mts +5 -5
  115. package/dist/actions/update-source.mjs +5 -5
  116. package/dist/actions/update-source.mjs.map +1 -1
  117. package/dist/catalog.cjs +1 -1
  118. package/dist/catalog.cjs.map +1 -1
  119. package/dist/catalog.d.cts +1 -1
  120. package/dist/catalog.d.mts +1 -1
  121. package/dist/catalog.mjs +1 -1
  122. package/dist/catalog.mjs.map +1 -1
  123. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"import-historical-data.mjs","names":[],"sources":["../../src/actions/import-historical-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentImportHistoricalDataInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of event objects to import. Each event should contain: type (track/identify/page/screen/group), userId or anonymousId, timestamp (ISO 8601 format for historical data), and event-specific properties.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Optional top-level integrations merged into each call's integrations.\").optional(),\n}).describe(\"Request schema for importing historical data in bulk with historical timestamps.\");\nexport const SegmentImportHistoricalDataOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the import was successful.\").nullable(),\n}).describe(\"Response schema for the import call.\");\n\nexport const segmentImportHistoricalData = action(\"SEGMENT_IMPORT_HISTORICAL_DATA\", {\n slug: \"segment-import-historical-data\",\n name: \"Import Historical Data\",\n description: \"Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.\",\n input: SegmentImportHistoricalDataInput,\n output: SegmentImportHistoricalDataOutput,\n});\n"],"mappings":";;AAaA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb8C,EAAE,OAAO;EACvD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8MAA8M;EACzQ,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5H,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,kFASH;CACP,QAT+C,EAAE,OAAO,EACxD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"import-historical-data.mjs","names":[],"sources":["../../src/actions/import-historical-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentImportHistoricalDataInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of event objects to import. Each event should contain: type (track/identify/page/screen/group), userId or anonymousId, timestamp (ISO 8601 format for historical data), and event-specific properties.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Optional top-level integrations merged into each call's integrations.\").optional(),\n}).describe(\"Request schema for importing historical data in bulk with historical timestamps.\");\nexport const SegmentImportHistoricalDataOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the import was successful.\").nullable(),\n}).passthrough().describe(\"Response schema for the import call.\");\n\nexport const segmentImportHistoricalData = action(\"SEGMENT_IMPORT_HISTORICAL_DATA\", {\n slug: \"segment-import-historical-data\",\n name: \"Import Historical Data\",\n description: \"Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.\",\n input: SegmentImportHistoricalDataInput,\n output: SegmentImportHistoricalDataOutput,\n});\n"],"mappings":";;AAaA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb8C,EAAE,OAAO;EACvD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8MAA8M;EACzQ,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5H,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,kFASH;CACP,QAT+C,EAAE,OAAO,EACxD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
@@ -11,17 +11,17 @@ const SegmentListConnectedWarehousesFromSourceInput = zod.z.object({
11
11
  const SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = zod.z.object({
12
12
  current: zod.z.string().describe("Cursor for the current page position (base64-encoded).").nullable(),
13
13
  totalEntries: zod.z.number().int().describe("Total number of items available across pages.").nullable()
14
- });
14
+ }).passthrough();
15
15
  const SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = zod.z.object({
16
16
  alt: zod.z.string().describe("Alternate logo URL.").nullable(),
17
17
  mark: zod.z.string().describe("Mark logo URL.").nullable(),
18
18
  "default": zod.z.string().describe("Default logo URL.").nullable()
19
- });
19
+ }).passthrough();
20
20
  const SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = zod.z.object({
21
21
  name: zod.z.string().describe("Configuration option name.").nullable(),
22
22
  type: zod.z.string().describe("Option data type.").nullable(),
23
23
  required: zod.z.boolean().describe("Whether this option is required.").nullable()
24
- });
24
+ }).passthrough();
25
25
  const SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = zod.z.object({
26
26
  id: zod.z.string().describe("Metadata record ID.").nullable(),
27
27
  name: zod.z.string().describe("Display name of the warehouse type.").nullable(),
@@ -29,19 +29,19 @@ const SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = zod.z.o
29
29
  logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),
30
30
  options: zod.z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),
31
31
  description: zod.z.string().describe("Brief description of the warehouse type.").nullable()
32
- });
32
+ }).passthrough();
33
33
  const SegmentListConnectedWarehousesFromSource_WarehouseSchema = zod.z.object({
34
34
  id: zod.z.string().describe("Warehouse ID.").nullable(),
35
35
  enabled: zod.z.boolean().describe("Whether the warehouse integration is enabled.").nullable(),
36
36
  metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),
37
- settings: zod.z.object({}).describe("Key-value map of warehouse-specific settings."),
37
+ settings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value map of warehouse-specific settings."),
38
38
  workspaceId: zod.z.string().describe("Workspace ID this warehouse belongs to.").nullable()
39
- });
39
+ }).passthrough();
40
40
  const SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = zod.z.object({
41
41
  pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),
42
42
  warehouses: zod.z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe("List of warehouses connected to the source.")
43
- });
44
- const SegmentListConnectedWarehousesFromSourceOutput = zod.z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() });
43
+ }).passthrough();
44
+ const SegmentListConnectedWarehousesFromSourceOutput = zod.z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() }).passthrough();
45
45
  const segmentListConnectedWarehousesFromSource = require_action.action("SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE", {
46
46
  slug: "segment-list-connected-warehouses-from-source",
47
47
  name: "List Connected Warehouses From Source",
@@ -1 +1 @@
1
- {"version":3,"file":"list-connected-warehouses-from-source.cjs","names":["z","action"],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.object({}).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n});\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n});\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCA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CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,iEAAiE,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC;AACD,MAAM,+FAA+FA,IAAAA,EAAE,OAAO;CAC5G,YAAY,8DAA8D,SAAS;CACnF,YAAYA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC;AACD,MAAa,iDAAiDA,IAAAA,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC;AAED,MAAa,2CAA2CC,eAAAA,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-connected-warehouses-from-source.cjs","names":["z","action"],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n}).passthrough();\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAAgEA,IAAAA,EAAE,OAAO;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gEAAgEA,IAAAA,EAAE,OAAO;CAC7E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;AAC/D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iEAAiEA,IA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S;CACnF,YAAYA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iDAAiDA,IAAAA,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2CAA2CC,eAAAA,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,7 +13,7 @@ declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
13
13
  pagination: z.ZodNullable<z.ZodObject<{
14
14
  current: z.ZodNullable<z.ZodString>;
15
15
  totalEntries: z.ZodNullable<z.ZodNumber>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  warehouses: z.ZodArray<z.ZodObject<{
18
18
  id: z.ZodNullable<z.ZodString>;
19
19
  enabled: z.ZodNullable<z.ZodBoolean>;
@@ -25,19 +25,19 @@ declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
25
25
  alt: z.ZodNullable<z.ZodString>;
26
26
  mark: z.ZodNullable<z.ZodString>;
27
27
  default: z.ZodNullable<z.ZodString>;
28
- }, z.core.$strip>>;
28
+ }, z.core.$loose>>;
29
29
  options: z.ZodArray<z.ZodObject<{
30
30
  name: z.ZodNullable<z.ZodString>;
31
31
  type: z.ZodNullable<z.ZodString>;
32
32
  required: z.ZodNullable<z.ZodBoolean>;
33
- }, z.core.$strip>>;
33
+ }, z.core.$loose>>;
34
34
  description: z.ZodNullable<z.ZodString>;
35
- }, z.core.$strip>>;
36
- settings: z.ZodObject<{}, z.core.$strip>;
35
+ }, z.core.$loose>>;
36
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
37
37
  workspaceId: z.ZodNullable<z.ZodString>;
38
- }, z.core.$strip>>;
39
- }, z.core.$strip>>;
40
- }, z.core.$strip>;
38
+ }, z.core.$loose>>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>;
41
41
  declare const segmentListConnectedWarehousesFromSource: import("@keystrokehq/action").WorkflowActionDefinition<{
42
42
  sourceId: string;
43
43
  pagination: {
@@ -13,7 +13,7 @@ declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
13
13
  pagination: z.ZodNullable<z.ZodObject<{
14
14
  current: z.ZodNullable<z.ZodString>;
15
15
  totalEntries: z.ZodNullable<z.ZodNumber>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  warehouses: z.ZodArray<z.ZodObject<{
18
18
  id: z.ZodNullable<z.ZodString>;
19
19
  enabled: z.ZodNullable<z.ZodBoolean>;
@@ -25,19 +25,19 @@ declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
25
25
  alt: z.ZodNullable<z.ZodString>;
26
26
  mark: z.ZodNullable<z.ZodString>;
27
27
  default: z.ZodNullable<z.ZodString>;
28
- }, z.core.$strip>>;
28
+ }, z.core.$loose>>;
29
29
  options: z.ZodArray<z.ZodObject<{
30
30
  name: z.ZodNullable<z.ZodString>;
31
31
  type: z.ZodNullable<z.ZodString>;
32
32
  required: z.ZodNullable<z.ZodBoolean>;
33
- }, z.core.$strip>>;
33
+ }, z.core.$loose>>;
34
34
  description: z.ZodNullable<z.ZodString>;
35
- }, z.core.$strip>>;
36
- settings: z.ZodObject<{}, z.core.$strip>;
35
+ }, z.core.$loose>>;
36
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
37
37
  workspaceId: z.ZodNullable<z.ZodString>;
38
- }, z.core.$strip>>;
39
- }, z.core.$strip>>;
40
- }, z.core.$strip>;
38
+ }, z.core.$loose>>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>;
41
41
  declare const segmentListConnectedWarehousesFromSource: import("@keystrokehq/action").WorkflowActionDefinition<{
42
42
  sourceId: string;
43
43
  pagination: {
@@ -11,17 +11,17 @@ const SegmentListConnectedWarehousesFromSourceInput = z.object({
11
11
  const SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({
12
12
  current: z.string().describe("Cursor for the current page position (base64-encoded).").nullable(),
13
13
  totalEntries: z.number().int().describe("Total number of items available across pages.").nullable()
14
- });
14
+ }).passthrough();
15
15
  const SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({
16
16
  alt: z.string().describe("Alternate logo URL.").nullable(),
17
17
  mark: z.string().describe("Mark logo URL.").nullable(),
18
18
  "default": z.string().describe("Default logo URL.").nullable()
19
- });
19
+ }).passthrough();
20
20
  const SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({
21
21
  name: z.string().describe("Configuration option name.").nullable(),
22
22
  type: z.string().describe("Option data type.").nullable(),
23
23
  required: z.boolean().describe("Whether this option is required.").nullable()
24
- });
24
+ }).passthrough();
25
25
  const SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({
26
26
  id: z.string().describe("Metadata record ID.").nullable(),
27
27
  name: z.string().describe("Display name of the warehouse type.").nullable(),
@@ -29,24 +29,24 @@ const SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.objec
29
29
  logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),
30
30
  options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),
31
31
  description: z.string().describe("Brief description of the warehouse type.").nullable()
32
- });
32
+ }).passthrough();
33
33
  const SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({
34
34
  id: z.string().describe("Warehouse ID.").nullable(),
35
35
  enabled: z.boolean().describe("Whether the warehouse integration is enabled.").nullable(),
36
36
  metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),
37
- settings: z.object({}).describe("Key-value map of warehouse-specific settings."),
37
+ settings: z.record(z.string(), z.unknown()).describe("Key-value map of warehouse-specific settings."),
38
38
  workspaceId: z.string().describe("Workspace ID this warehouse belongs to.").nullable()
39
- });
39
+ }).passthrough();
40
40
  const SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({
41
41
  pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),
42
42
  warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe("List of warehouses connected to the source.")
43
- });
43
+ }).passthrough();
44
44
  const segmentListConnectedWarehousesFromSource = action("SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE", {
45
45
  slug: "segment-list-connected-warehouses-from-source",
46
46
  name: "List Connected Warehouses From Source",
47
47
  description: "Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.",
48
48
  input: SegmentListConnectedWarehousesFromSourceInput,
49
- output: z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() })
49
+ output: z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() }).passthrough()
50
50
  });
51
51
  //#endregion
52
52
  export { segmentListConnectedWarehousesFromSource };
@@ -1 +1 @@
1
- {"version":3,"file":"list-connected-warehouses-from-source.mjs","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.object({}).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n});\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n});\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAAgD,EAAE,OAAO;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAAgE,EAAE,OAAO;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpG,CAAC;AACD,MAAM,gEAAgE,EAAE,OAAO;CAC7E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;AAC/D,CAAC;AACD,MAAM,iEAAiE,EAAE,OAAO;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9E,CAAC;AACD,MAAM,mEAAmE,EAAE,OAAO;CAChF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,OAAO,8DAA8D,SAAS;CAC9E,SAAS,EAAE,MAAM,8DAA8D;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,2DAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,iEAAiE,SAAS;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC;AACD,MAAM,+FAA+F,EAAE,OAAO;CAC5G,YAAY,8DAA8D,SAAS;CACnF,YAAY,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC;AAKD,MAAa,2CAA2C,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-connected-warehouses-from-source.mjs","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n}).passthrough();\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n}).passthrough();\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAAgD,EAAE,OAAO;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAAgE,EAAE,OAAO;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gEAAgE,EAAE,OAAO;CAC7E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAA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AAY;AAKf,MAAa,2CAA2C,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -15,19 +15,19 @@ const SegmentListDeliveryMetricsSummaryFromDestinationInput = zod.z.object({
15
15
  const SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = zod.z.object({
16
16
  value: zod.z.number().describe("Breakdown value").nullable(),
17
17
  metricName: zod.z.string().describe("Breakdown metric name").nullable()
18
- });
18
+ }).passthrough();
19
19
  const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = zod.z.object({
20
20
  total: zod.z.number().describe("Total value for the metric").nullable(),
21
21
  breakdown: zod.z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe("Optional breakdown for this metric").nullable().optional(),
22
22
  metricName: zod.z.string().describe("Metric name").nullable()
23
- });
23
+ }).passthrough();
24
24
  const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = zod.z.object({
25
25
  metrics: zod.z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe("List of delivery metrics entries").nullable().optional(),
26
26
  sourceId: zod.z.string().describe("The requested source id").nullable(),
27
27
  destinationMetadataId: zod.z.string().describe("Destination metadata id").nullable().optional()
28
- });
29
- const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = zod.z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() });
30
- const SegmentListDeliveryMetricsSummaryFromDestinationOutput = zod.z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() });
28
+ }).passthrough();
29
+ const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = zod.z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() }).passthrough();
30
+ const SegmentListDeliveryMetricsSummaryFromDestinationOutput = zod.z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() }).passthrough();
31
31
  const segmentListDeliveryMetricsSummaryFromDestination = require_action.action("SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION", {
32
32
  slug: "segment-list-delivery-metrics-summary-from-destination",
33
33
  name: "List Delivery Metrics Summary from Destination",
@@ -1 +1 @@
1
- {"version":3,"file":"list-delivery-metrics-summary-from-destination.cjs","names":["z","action"],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n});\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,wDAAwDA,IAAAA,EAAE,OAAO;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAyEA,IAAAA,EAAE,OAAO;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACpE,CAAC;AACD,MAAM,wEAAwEA,IAAAA,EAAE,OAAO;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AAC1D,CAAC;AACD,MAAM,gFAAgFA,IAAAA,EAAE,OAAO;CAC7F,SAASA,IAAAA,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC;AACD,MAAM,+GAA+GA,IAAAA,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC;AACD,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC;AAED,MAAa,mDAAmDC,eAAAA,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-delivery-metrics-summary-from-destination.cjs","names":["z","action"],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListDeliveryMetricsSummaryFromDestination = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAwDA,IAAAA,EAAE,OAAO;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAyEA,IAAAA,EAAE,OAAO;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwEA,IAAAA,EAAE,OAAO;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gFAAgFA,IAAAA,EAAE,OAAO;CAC7F,SAASA,IAAAA,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+GAA+GA,IAAAA,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mDAAmDC,eAAAA,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -20,14 +20,14 @@ declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodObjec
20
20
  breakdown: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
21
21
  value: z.ZodNullable<z.ZodNumber>;
22
22
  metricName: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>>>>;
23
+ }, z.core.$loose>>>>;
24
24
  metricName: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>>>;
25
+ }, z.core.$loose>>>>;
26
26
  sourceId: z.ZodNullable<z.ZodString>;
27
27
  destinationMetadataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>>;
30
- }, z.core.$strip>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>>;
30
+ }, z.core.$loose>;
31
31
  declare const segmentListDeliveryMetricsSummaryFromDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
32
32
  sourceId: string;
33
33
  destinationId: string;
@@ -20,14 +20,14 @@ declare const SegmentListDeliveryMetricsSummaryFromDestinationOutput: z.ZodObjec
20
20
  breakdown: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
21
21
  value: z.ZodNullable<z.ZodNumber>;
22
22
  metricName: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>>>>;
23
+ }, z.core.$loose>>>>;
24
24
  metricName: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>>>;
25
+ }, z.core.$loose>>>>;
26
26
  sourceId: z.ZodNullable<z.ZodString>;
27
27
  destinationMetadataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>>;
30
- }, z.core.$strip>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>>;
30
+ }, z.core.$loose>;
31
31
  declare const segmentListDeliveryMetricsSummaryFromDestination: import("@keystrokehq/action").WorkflowActionDefinition<{
32
32
  sourceId: string;
33
33
  destinationId: string;
@@ -15,24 +15,24 @@ const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({
15
15
  const SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({
16
16
  value: z.number().describe("Breakdown value").nullable(),
17
17
  metricName: z.string().describe("Breakdown metric name").nullable()
18
- });
18
+ }).passthrough();
19
19
  const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({
20
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
22
  metricName: z.string().describe("Metric name").nullable()
23
- });
23
+ }).passthrough();
24
24
  const SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({
25
25
  metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe("List of delivery metrics entries").nullable().optional(),
26
26
  sourceId: z.string().describe("The requested source id").nullable(),
27
27
  destinationMetadataId: z.string().describe("Destination metadata id").nullable().optional()
28
- });
29
- const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() });
28
+ }).passthrough();
29
+ const SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({ deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable() }).passthrough();
30
30
  const segmentListDeliveryMetricsSummaryFromDestination = action("SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION", {
31
31
  slug: "segment-list-delivery-metrics-summary-from-destination",
32
32
  name: "List Delivery Metrics Summary from Destination",
33
33
  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.",
34
34
  input: SegmentListDeliveryMetricsSummaryFromDestinationInput,
35
- output: z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() })
35
+ output: z.object({ data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable() }).passthrough()
36
36
  });
37
37
  //#endregion
38
38
  export { segmentListDeliveryMetricsSummaryFromDestination };
@@ -1 +1 @@
1
- {"version":3,"file":"list-delivery-metrics-summary-from-destination.mjs","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n});\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"}
1
+ {"version":3,"file":"list-delivery-metrics-summary-from-destination.mjs","names":[],"sources":["../../src/actions/list-delivery-metrics-summary-from-destination.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListDeliveryMetricsSummaryFromDestinationInput = z.object({\n endTime: z.string().describe(\"Filter events that happened before this time (ISO-8601). Defaults to now.\").optional(),\n sourceId: z.string().describe(\"Source id linked to the destination\"),\n startTime: z.string().describe(\"Filter events that happened after this time (ISO-8601). Defaults depend on granularity.\").optional(),\n granularity: z.enum([\"DAY\", \"HOUR\", \"MINUTE\"]).describe(\"Granularity of the metrics aggregation\").optional(),\n destinationId: z.string().describe(\"Destination identifier\"),\n});\nconst SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema = z.object({\n value: z.number().describe(\"Breakdown value\").nullable(),\n metricName: z.string().describe(\"Breakdown metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema = z.object({\n total: z.number().describe(\"Total value for the metric\").nullable(),\n breakdown: z.array(SegmentListDeliveryMetricsSummaryFromDestination_MetricBreakdownSchema).describe(\"Optional breakdown for this metric\").nullable().optional(),\n metricName: z.string().describe(\"Metric name\").nullable(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema = z.object({\n metrics: z.array(SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricSchema).describe(\"List of delivery metrics entries\").nullable().optional(),\n sourceId: z.string().describe(\"The requested source id\").nullable(),\n destinationMetadataId: z.string().describe(\"Destination metadata id\").nullable().optional(),\n}).passthrough();\nconst SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema = z.object({\n deliveryMetricsSummary: SegmentListDeliveryMetricsSummaryFromDestination_DeliveryMetricsSummarySchema.nullable(),\n}).passthrough();\nexport const SegmentListDeliveryMetricsSummaryFromDestinationOutput = z.object({\n data: SegmentListDeliveryMetricsSummaryFromDestination_ListDeliveryMetricsSummaryFromDestinationResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListDeliveryMetricsSummaryFromDestination = action(\"SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION\", {\n slug: \"segment-list-delivery-metrics-summary-from-destination\",\n name: \"List Delivery Metrics Summary from Destination\",\n description: \"Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.\",\n input: SegmentListDeliveryMetricsSummaryFromDestinationInput,\n output: SegmentListDeliveryMetricsSummaryFromDestinationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAwD,EAAE,OAAO;CAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAa,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AAC7D,CAAC;AACD,MAAM,yEAAyE,EAAE,OAAO;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwE,EAAE,OAAO;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,MAAM,sEAAsE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gFAAgF,EAAE,OAAO;CAC7F,SAAS,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+GAA+G,EAAE,OAAO,EAC5H,wBAAwB,8EAA8E,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mDAAmD,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToE,EAAE,OAAO,EAC7E,MAAM,6GAA6G,SAAS,EAC9H,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -6,31 +6,31 @@ const SegmentListSchemaSettingsInSource_GroupSettingsSchema = zod.z.object({
6
6
  allowUnplannedTraits: zod.z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
7
7
  allowTraitsOnViolations: zod.z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
8
8
  commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional()
9
- });
9
+ }).passthrough();
10
10
  const SegmentListSchemaSettingsInSource_TrackSettingsSchema = zod.z.object({
11
11
  allowUnplannedEvents: zod.z.boolean().default(false).describe("Allow events not in schema").nullable().optional(),
12
12
  allowEventOnViolations: zod.z.boolean().default(false).describe("Allow sending events on violations").nullable().optional(),
13
13
  commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional(),
14
14
  allowPropertiesOnViolations: zod.z.boolean().default(false).describe("Allow properties on violations").nullable().optional(),
15
15
  allowUnplannedEventProperties: zod.z.boolean().default(false).describe("Allow properties not in schema").nullable().optional()
16
- });
16
+ }).passthrough();
17
17
  const SegmentListSchemaSettingsInSource_IdentifySettingsSchema = zod.z.object({
18
18
  allowUnplannedTraits: zod.z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
19
19
  allowTraitsOnViolations: zod.z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
20
20
  commonEventOnViolations: zod.z.string().default("").describe("How to handle violations").nullable().optional()
21
- });
21
+ }).passthrough();
22
22
  const SegmentListSchemaSettingsInSource_SchemaSettingsSchema = zod.z.object({
23
23
  group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),
24
24
  track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),
25
25
  identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),
26
26
  forwardingViolationsTo: zod.z.string().describe("Destination id for violations").nullable().optional(),
27
27
  forwardingBlockedEventsTo: zod.z.string().describe("Destination id for blocked events").nullable().optional()
28
- });
28
+ }).passthrough();
29
29
  const SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = zod.z.object({
30
30
  settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),
31
31
  sourceId: zod.z.string().describe("Source ID").nullable()
32
- });
33
- const SegmentListSchemaSettingsInSourceOutput = zod.z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() });
32
+ }).passthrough();
33
+ const SegmentListSchemaSettingsInSourceOutput = zod.z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() }).passthrough();
34
34
  const segmentListSchemaSettingsInSource = require_action.action("SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE", {
35
35
  slug: "segment-list-schema-settings-in-source",
36
36
  name: "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.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,CAA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ACtE,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
+ {"version":3,"file":"list-schema-settings-in-source.cjs","names":["z","action"],"sources":["../../src/actions/list-schema-settings-in-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListSchemaSettingsInSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source\"),\n}).describe(\"Request model for listing schema settings in a Segment Source.\");\nconst SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({\n allowUnplannedEvents: z.boolean().default(false).describe(\"Allow events not in schema\").nullable().optional(),\n allowEventOnViolations: z.boolean().default(false).describe(\"Allow sending events on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n allowPropertiesOnViolations: z.boolean().default(false).describe(\"Allow properties on violations\").nullable().optional(),\n allowUnplannedEventProperties: z.boolean().default(false).describe(\"Allow properties not in schema\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({\n allowUnplannedTraits: z.boolean().default(false).describe(\"Allow traits not in schema\").nullable().optional(),\n allowTraitsOnViolations: z.boolean().default(false).describe(\"Allow traits on violations\").nullable().optional(),\n commonEventOnViolations: z.string().default(\"\").describe(\"How to handle violations\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({\n group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),\n track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),\n identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),\n forwardingViolationsTo: z.string().describe(\"Destination id for violations\").nullable().optional(),\n forwardingBlockedEventsTo: z.string().describe(\"Destination id for blocked events\").nullable().optional(),\n}).passthrough();\nconst SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({\n settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),\n sourceId: z.string().describe(\"Source ID\").nullable(),\n}).passthrough();\nexport const SegmentListSchemaSettingsInSourceOutput = z.object({\n data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentListSchemaSettingsInSource = action(\"SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE\", {\n slug: \"segment-list-schema-settings-in-source\",\n name: \"List Schema Settings in Source\",\n description: \"Retrieve schema configuration settings for a Source.\",\n input: SegmentListSchemaSettingsInSourceInput,\n output: SegmentListSchemaSettingsInSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,C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odNullable<z.ZodDefault<z.ZodBoolean>>>;
12
12
  allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
13
13
  commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  track: z.ZodNullable<z.ZodObject<{
16
16
  allowUnplannedEvents: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
17
17
  allowEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
18
18
  commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
19
19
  allowPropertiesOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
20
20
  allowUnplannedEventProperties: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
21
- }, z.core.$strip>>;
21
+ }, z.core.$loose>>;
22
22
  identify: z.ZodNullable<z.ZodObject<{
23
23
  allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
24
24
  allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
25
25
  commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  forwardingViolationsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  forwardingBlockedEventsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>;
29
+ }, z.core.$loose>>;
30
30
  sourceId: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  sourceId: string;
35
35
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -11,25 +11,25 @@ declare const SegmentListSchemaSettingsInSourceOutput: z.ZodObject<{
11
11
  allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
12
12
  allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
13
13
  commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  track: z.ZodNullable<z.ZodObject<{
16
16
  allowUnplannedEvents: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
17
17
  allowEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
18
18
  commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
19
19
  allowPropertiesOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
20
20
  allowUnplannedEventProperties: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
21
- }, z.core.$strip>>;
21
+ }, z.core.$loose>>;
22
22
  identify: z.ZodNullable<z.ZodObject<{
23
23
  allowUnplannedTraits: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
24
24
  allowTraitsOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
25
25
  commonEventOnViolations: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  forwardingViolationsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  forwardingBlockedEventsTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>;
29
+ }, z.core.$loose>>;
30
30
  sourceId: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  declare const segmentListSchemaSettingsInSource: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  sourceId: string;
35
35
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -6,36 +6,36 @@ const SegmentListSchemaSettingsInSource_GroupSettingsSchema = z.object({
6
6
  allowUnplannedTraits: z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
7
7
  allowTraitsOnViolations: z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
8
8
  commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional()
9
- });
9
+ }).passthrough();
10
10
  const SegmentListSchemaSettingsInSource_TrackSettingsSchema = z.object({
11
11
  allowUnplannedEvents: z.boolean().default(false).describe("Allow events not in schema").nullable().optional(),
12
12
  allowEventOnViolations: z.boolean().default(false).describe("Allow sending events on violations").nullable().optional(),
13
13
  commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional(),
14
14
  allowPropertiesOnViolations: z.boolean().default(false).describe("Allow properties on violations").nullable().optional(),
15
15
  allowUnplannedEventProperties: z.boolean().default(false).describe("Allow properties not in schema").nullable().optional()
16
- });
16
+ }).passthrough();
17
17
  const SegmentListSchemaSettingsInSource_IdentifySettingsSchema = z.object({
18
18
  allowUnplannedTraits: z.boolean().default(false).describe("Allow traits not in schema").nullable().optional(),
19
19
  allowTraitsOnViolations: z.boolean().default(false).describe("Allow traits on violations").nullable().optional(),
20
20
  commonEventOnViolations: z.string().default("").describe("How to handle violations").nullable().optional()
21
- });
21
+ }).passthrough();
22
22
  const SegmentListSchemaSettingsInSource_SchemaSettingsSchema = z.object({
23
23
  group: SegmentListSchemaSettingsInSource_GroupSettingsSchema.nullable(),
24
24
  track: SegmentListSchemaSettingsInSource_TrackSettingsSchema.nullable(),
25
25
  identify: SegmentListSchemaSettingsInSource_IdentifySettingsSchema.nullable(),
26
26
  forwardingViolationsTo: z.string().describe("Destination id for violations").nullable().optional(),
27
27
  forwardingBlockedEventsTo: z.string().describe("Destination id for blocked events").nullable().optional()
28
- });
28
+ }).passthrough();
29
29
  const SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema = z.object({
30
30
  settings: SegmentListSchemaSettingsInSource_SchemaSettingsSchema.nullable(),
31
31
  sourceId: z.string().describe("Source ID").nullable()
32
- });
32
+ }).passthrough();
33
33
  const segmentListSchemaSettingsInSource = action("SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE", {
34
34
  slug: "segment-list-schema-settings-in-source",
35
35
  name: "List Schema Settings in Source",
36
36
  description: "Retrieve schema configuration settings for a Source.",
37
37
  input: SegmentListSchemaSettingsInSourceInput,
38
- output: z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() })
38
+ output: z.object({ data: SegmentListSchemaSettingsInSource_ListSchemaSettingsInSourceResponseDataSchema.nullable() }).passthrough()
39
39
  });
40
40
  //#endregion
41
41
  export { segmentListSchemaSettingsInSource };