@keystrokehq/rudderstack_transformation 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-library.cjs +1 -1
  4. package/dist/actions/create-library.cjs.map +1 -1
  5. package/dist/actions/create-library.d.cts +28 -3
  6. package/dist/actions/create-library.d.cts.map +1 -1
  7. package/dist/actions/create-library.d.mts +28 -3
  8. package/dist/actions/create-library.d.mts.map +1 -1
  9. package/dist/actions/create-library.mjs +1 -1
  10. package/dist/actions/create-library.mjs.map +1 -1
  11. package/dist/actions/create-transformation.cjs +5 -5
  12. package/dist/actions/create-transformation.cjs.map +1 -1
  13. package/dist/actions/create-transformation.d.cts +33 -3
  14. package/dist/actions/create-transformation.d.cts.map +1 -1
  15. package/dist/actions/create-transformation.d.mts +33 -3
  16. package/dist/actions/create-transformation.d.mts.map +1 -1
  17. package/dist/actions/create-transformation.mjs +5 -5
  18. package/dist/actions/create-transformation.mjs.map +1 -1
  19. package/dist/actions/delete-transformation.cjs +2 -2
  20. package/dist/actions/delete-transformation.cjs.map +1 -1
  21. package/dist/actions/delete-transformation.d.cts +10 -3
  22. package/dist/actions/delete-transformation.d.cts.map +1 -1
  23. package/dist/actions/delete-transformation.d.mts +10 -3
  24. package/dist/actions/delete-transformation.d.mts.map +1 -1
  25. package/dist/actions/delete-transformation.mjs +2 -2
  26. package/dist/actions/delete-transformation.mjs.map +1 -1
  27. package/dist/actions/get-library-version.cjs +1 -1
  28. package/dist/actions/get-library-version.cjs.map +1 -1
  29. package/dist/actions/get-library-version.d.cts +19 -3
  30. package/dist/actions/get-library-version.d.cts.map +1 -1
  31. package/dist/actions/get-library-version.d.mts +19 -3
  32. package/dist/actions/get-library-version.d.mts.map +1 -1
  33. package/dist/actions/get-library-version.mjs +1 -1
  34. package/dist/actions/get-library-version.mjs.map +1 -1
  35. package/dist/actions/get-library.cjs +1 -1
  36. package/dist/actions/get-library.cjs.map +1 -1
  37. package/dist/actions/get-library.d.cts +17 -3
  38. package/dist/actions/get-library.d.cts.map +1 -1
  39. package/dist/actions/get-library.d.mts +17 -3
  40. package/dist/actions/get-library.d.mts.map +1 -1
  41. package/dist/actions/get-library.mjs +1 -1
  42. package/dist/actions/get-library.mjs.map +1 -1
  43. package/dist/actions/get-transformation-version.cjs +1 -1
  44. package/dist/actions/get-transformation-version.cjs.map +1 -1
  45. package/dist/actions/get-transformation-version.d.cts +19 -3
  46. package/dist/actions/get-transformation-version.d.cts.map +1 -1
  47. package/dist/actions/get-transformation-version.d.mts +19 -3
  48. package/dist/actions/get-transformation-version.d.mts.map +1 -1
  49. package/dist/actions/get-transformation-version.mjs +1 -1
  50. package/dist/actions/get-transformation-version.mjs.map +1 -1
  51. package/dist/actions/get-transformation.cjs +1 -1
  52. package/dist/actions/get-transformation.cjs.map +1 -1
  53. package/dist/actions/get-transformation.d.cts +18 -3
  54. package/dist/actions/get-transformation.d.cts.map +1 -1
  55. package/dist/actions/get-transformation.d.mts +18 -3
  56. package/dist/actions/get-transformation.d.mts.map +1 -1
  57. package/dist/actions/get-transformation.mjs +1 -1
  58. package/dist/actions/get-transformation.mjs.map +1 -1
  59. package/dist/actions/list-libraries.cjs +2 -2
  60. package/dist/actions/list-libraries.cjs.map +1 -1
  61. package/dist/actions/list-libraries.d.cts +15 -3
  62. package/dist/actions/list-libraries.d.cts.map +1 -1
  63. package/dist/actions/list-libraries.d.mts +15 -3
  64. package/dist/actions/list-libraries.d.mts.map +1 -1
  65. package/dist/actions/list-libraries.mjs +2 -2
  66. package/dist/actions/list-libraries.mjs.map +1 -1
  67. package/dist/actions/list-library-versions.cjs +2 -2
  68. package/dist/actions/list-library-versions.cjs.map +1 -1
  69. package/dist/actions/list-library-versions.d.cts +23 -3
  70. package/dist/actions/list-library-versions.d.cts.map +1 -1
  71. package/dist/actions/list-library-versions.d.mts +23 -3
  72. package/dist/actions/list-library-versions.d.mts.map +1 -1
  73. package/dist/actions/list-library-versions.mjs +2 -2
  74. package/dist/actions/list-library-versions.mjs.map +1 -1
  75. package/dist/actions/list-transformation-versions.cjs +2 -2
  76. package/dist/actions/list-transformation-versions.cjs.map +1 -1
  77. package/dist/actions/list-transformation-versions.d.cts +23 -3
  78. package/dist/actions/list-transformation-versions.d.cts.map +1 -1
  79. package/dist/actions/list-transformation-versions.d.mts +23 -3
  80. package/dist/actions/list-transformation-versions.d.mts.map +1 -1
  81. package/dist/actions/list-transformation-versions.mjs +2 -2
  82. package/dist/actions/list-transformation-versions.mjs.map +1 -1
  83. package/dist/actions/list-transformations.cjs +2 -2
  84. package/dist/actions/list-transformations.cjs.map +1 -1
  85. package/dist/actions/list-transformations.d.cts +16 -3
  86. package/dist/actions/list-transformations.d.cts.map +1 -1
  87. package/dist/actions/list-transformations.d.mts +16 -3
  88. package/dist/actions/list-transformations.d.mts.map +1 -1
  89. package/dist/actions/list-transformations.mjs +2 -2
  90. package/dist/actions/list-transformations.mjs.map +1 -1
  91. package/dist/actions/update-transformation.cjs +1 -1
  92. package/dist/actions/update-transformation.cjs.map +1 -1
  93. package/dist/actions/update-transformation.d.cts +25 -3
  94. package/dist/actions/update-transformation.d.cts.map +1 -1
  95. package/dist/actions/update-transformation.d.mts +25 -3
  96. package/dist/actions/update-transformation.d.mts.map +1 -1
  97. package/dist/actions/update-transformation.mjs +1 -1
  98. package/dist/actions/update-transformation.mjs.map +1 -1
  99. package/dist/catalog.cjs +18 -1
  100. package/dist/catalog.cjs.map +1 -1
  101. package/dist/catalog.d.cts +17 -0
  102. package/dist/catalog.d.mts +17 -0
  103. package/dist/catalog.mjs +18 -1
  104. package/dist/catalog.mjs.map +1 -1
  105. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["rudderstackTransformation","executeRudderstackTransformationTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rudderstackTransformation } from \"./app\";\nimport { executeRudderstackTransformationTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return rudderstackTransformation.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRudderstackTransformationTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,0BAA0B,OAAO;EACtC,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qCAAqC,MAAM,KAAgC,CAAC;EAC5G;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["rudderstackTransformation","executeRudderstackTransformationTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rudderstackTransformation } from \"./app\";\nimport { executeRudderstackTransformationTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return rudderstackTransformation.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRudderstackTransformationTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,0BAA0B,OAAO;EACtC,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qCAAqC,MAAM,KAAgC,CAAC;EAC5G;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rudderstackTransformation } from \"./app\";\nimport { executeRudderstackTransformationTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return rudderstackTransformation.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRudderstackTransformationTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,0BAA0B,OAAO;EACtC,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qCAAqC,MAAM,KAAgC,CAAC;EAC5G;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rudderstackTransformation } from \"./app\";\nimport { executeRudderstackTransformationTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return rudderstackTransformation.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRudderstackTransformationTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,0BAA0B,OAAO;EACtC,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qCAAqC,MAAM,KAAgC,CAAC;EAC5G;CACF,CAAC;AACH"}
@@ -18,7 +18,7 @@ const RudderstackTransformationCreateLibraryOutput = zod.z.object({
18
18
  versionId: zod.z.string().describe("Version ID of the library").nullable().optional(),
19
19
  importName: zod.z.string().describe("The import name that users can use in their transformation code while importing this library").nullable().optional(),
20
20
  description: zod.z.string().describe("Library description").nullable().optional()
21
- }).describe("Response model returned after creating a library.");
21
+ }).passthrough().describe("Response model returned after creating a library.");
22
22
  const rudderstackTransformationCreateLibrary = require_action.action("RUDDERSTACK_TRANSFORMATION_CREATE_LIBRARY", {
23
23
  slug: "rudderstack_transformation-create-library",
24
24
  name: "Create Library",
@@ -1 +1 @@
1
- {"version":3,"file":"create-library.cjs","names":["z","action"],"sources":["../../src/actions/create-library.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationCreateLibraryInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"The library code.\"),\n name: z.string().describe(\"Name of the library that you wish to create. This name is used as modules when it is imported in the transformation code.\"),\n publish: z.boolean().default(false).describe(\"If true, publishes your library to the latest version; code is made live for incoming traffic. Default is false.\").optional(),\n language: z.enum([\"javascript\", \"pythonfaas\"]).describe(\"Language of the library code. Acceptable values are 'javascript' and 'pythonfaas'.\"),\n description: z.string().describe(\"Description of the library.\").optional(),\n}).describe(\"Request model for creating a library in RudderStack Transformation.\");\nexport const RudderstackTransformationCreateLibraryOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Library ID\").nullable().optional(),\n code: z.string().describe(\"Library code\").nullable().optional(),\n name: z.string().describe(\"Library name\").nullable().optional(),\n language: z.string().describe(\"Language of the library code\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n versionId: z.string().describe(\"Version ID of the library\").nullable().optional(),\n importName: z.string().describe(\"The import name that users can use in their transformation code while importing this library\").nullable().optional(),\n description: z.string().describe(\"Library description\").nullable().optional(),\n}).describe(\"Response model returned after creating a library.\");\n\nexport const rudderstackTransformationCreateLibrary = action(\"RUDDERSTACK_TRANSFORMATION_CREATE_LIBRARY\", {\n slug: \"rudderstack_transformation-create-library\",\n name: \"Create Library\",\n description: \"Tool to create a library in RudderStack Transformation. Use when you need to create reusable JavaScript or Python code that can be imported in transformations. Libraries enable code reusability and version maintenance.\",\n input: RudderstackTransformationCreateLibraryInput,\n output: RudderstackTransformationCreateLibraryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;CACrJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,KAAK,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC,SAAS,oFAAoF;CAC5I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,yCAAyCC,eAAAA,OAAO,6CAA6C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-library.cjs","names":["z","action"],"sources":["../../src/actions/create-library.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationCreateLibraryInput = z.object({\n code: z.string().describe(\"The library code.\"),\n name: z.string().describe(\"Name of the library that you wish to create. This name is used as modules when it is imported in the transformation code.\"),\n publish: z.boolean().default(false).describe(\"If true, publishes your library to the latest version; code is made live for incoming traffic. Default is false.\").optional(),\n language: z.enum([\"javascript\", \"pythonfaas\"]).describe(\"Language of the library code. Acceptable values are 'javascript' and 'pythonfaas'.\"),\n description: z.string().describe(\"Description of the library.\").optional(),\n}).describe(\"Request model for creating a library in RudderStack Transformation.\");\nexport const RudderstackTransformationCreateLibraryOutput = z.object({\n id: z.string().describe(\"Library ID\").nullable().optional(),\n code: z.string().describe(\"Library code\").nullable().optional(),\n name: z.string().describe(\"Library name\").nullable().optional(),\n language: z.string().describe(\"Language of the library code\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n versionId: z.string().describe(\"Version ID of the library\").nullable().optional(),\n importName: z.string().describe(\"The import name that users can use in their transformation code while importing this library\").nullable().optional(),\n description: z.string().describe(\"Library description\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a library.\");\n\nexport const rudderstackTransformationCreateLibrary = action(\"RUDDERSTACK_TRANSFORMATION_CREATE_LIBRARY\", {\n slug: \"rudderstack_transformation-create-library\",\n name: \"Create Library\",\n description: \"Tool to create a library in RudderStack Transformation. Use when you need to create reusable JavaScript or Python code that can be imported in transformations. Libraries enable code reusability and version maintenance.\",\n input: RudderstackTransformationCreateLibraryInput,\n output: RudderstackTransformationCreateLibraryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;CACrJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,KAAK,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC,SAAS,oFAAoF;CAC5I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,yCAAyCC,eAAAA,OAAO,6CAA6C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-library.d.ts
4
- declare const RudderstackTransformationCreateLibraryInput: z.ZodTypeAny;
5
- declare const RudderstackTransformationCreateLibraryOutput: z.ZodTypeAny;
6
- declare const rudderstackTransformationCreateLibrary: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RudderstackTransformationCreateLibraryInput: z.ZodObject<{
5
+ code: z.ZodString;
6
+ name: z.ZodString;
7
+ publish: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ language: z.ZodEnum<{
9
+ javascript: "javascript";
10
+ pythonfaas: "pythonfaas";
11
+ }>;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const RudderstackTransformationCreateLibraryOutput: z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ importName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>;
25
+ declare const rudderstackTransformationCreateLibrary: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ code: string;
27
+ name: string;
28
+ language: "javascript" | "pythonfaas";
29
+ publish?: boolean | undefined;
30
+ description?: string | undefined;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
32
  //#endregion
8
33
  export { rudderstackTransformationCreateLibrary };
9
34
  //# sourceMappingURL=create-library.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-library.d.cts","names":[],"sources":["../../src/actions/create-library.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAMsB;AAAA,cACrE,4CAAA,EAA8C,CAAA,CAAE,UAUG;AAAA,cAEnD,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-library.d.cts","names":[],"sources":["../../src/actions/create-library.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;cAO3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;cAY5C,sCAAA,gCAAsC,wBAAA"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-library.d.ts
4
- declare const RudderstackTransformationCreateLibraryInput: z.ZodTypeAny;
5
- declare const RudderstackTransformationCreateLibraryOutput: z.ZodTypeAny;
6
- declare const rudderstackTransformationCreateLibrary: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RudderstackTransformationCreateLibraryInput: z.ZodObject<{
5
+ code: z.ZodString;
6
+ name: z.ZodString;
7
+ publish: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ language: z.ZodEnum<{
9
+ javascript: "javascript";
10
+ pythonfaas: "pythonfaas";
11
+ }>;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const RudderstackTransformationCreateLibraryOutput: z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ importName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>;
25
+ declare const rudderstackTransformationCreateLibrary: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ code: string;
27
+ name: string;
28
+ language: "javascript" | "pythonfaas";
29
+ publish?: boolean | undefined;
30
+ description?: string | undefined;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
32
  //#endregion
8
33
  export { rudderstackTransformationCreateLibrary };
9
34
  //# sourceMappingURL=create-library.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-library.d.mts","names":[],"sources":["../../src/actions/create-library.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAMsB;AAAA,cACrE,4CAAA,EAA8C,CAAA,CAAE,UAUG;AAAA,cAEnD,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-library.d.mts","names":[],"sources":["../../src/actions/create-library.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;cAO3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;cAY5C,sCAAA,gCAAsC,wBAAA"}
@@ -21,7 +21,7 @@ const rudderstackTransformationCreateLibrary = action("RUDDERSTACK_TRANSFORMATIO
21
21
  versionId: z.string().describe("Version ID of the library").nullable().optional(),
22
22
  importName: z.string().describe("The import name that users can use in their transformation code while importing this library").nullable().optional(),
23
23
  description: z.string().describe("Library description").nullable().optional()
24
- }).describe("Response model returned after creating a library.")
24
+ }).passthrough().describe("Response model returned after creating a library.")
25
25
  });
26
26
  //#endregion
27
27
  export { rudderstackTransformationCreateLibrary };
@@ -1 +1 @@
1
- {"version":3,"file":"create-library.mjs","names":[],"sources":["../../src/actions/create-library.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationCreateLibraryInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"The library code.\"),\n name: z.string().describe(\"Name of the library that you wish to create. This name is used as modules when it is imported in the transformation code.\"),\n publish: z.boolean().default(false).describe(\"If true, publishes your library to the latest version; code is made live for incoming traffic. Default is false.\").optional(),\n language: z.enum([\"javascript\", \"pythonfaas\"]).describe(\"Language of the library code. Acceptable values are 'javascript' and 'pythonfaas'.\"),\n description: z.string().describe(\"Description of the library.\").optional(),\n}).describe(\"Request model for creating a library in RudderStack Transformation.\");\nexport const RudderstackTransformationCreateLibraryOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Library ID\").nullable().optional(),\n code: z.string().describe(\"Library code\").nullable().optional(),\n name: z.string().describe(\"Library name\").nullable().optional(),\n language: z.string().describe(\"Language of the library code\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n versionId: z.string().describe(\"Version ID of the library\").nullable().optional(),\n importName: z.string().describe(\"The import name that users can use in their transformation code while importing this library\").nullable().optional(),\n description: z.string().describe(\"Library description\").nullable().optional(),\n}).describe(\"Response model returned after creating a library.\");\n\nexport const rudderstackTransformationCreateLibrary = action(\"RUDDERSTACK_TRANSFORMATION_CREATE_LIBRARY\", {\n slug: \"rudderstack_transformation-create-library\",\n name: \"Create Library\",\n description: \"Tool to create a library in RudderStack Transformation. Use when you need to create reusable JavaScript or Python code that can be imported in transformations. Libraries enable code reusability and version maintenance.\",\n input: RudderstackTransformationCreateLibraryInput,\n output: RudderstackTransformationCreateLibraryOutput,\n});\n"],"mappings":";;AAuBA,MAAa,yCAAyC,OAAO,6CAA6C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBuE,EAAE,OAAO;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;EACrJ,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EAC1K,UAAU,EAAE,KAAK,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC,SAAS,oFAAoF;EAC5I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,qEAiBH;CACP,QAjBwE,EAAE,OAAO;EACjF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-library.mjs","names":[],"sources":["../../src/actions/create-library.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationCreateLibraryInput = z.object({\n code: z.string().describe(\"The library code.\"),\n name: z.string().describe(\"Name of the library that you wish to create. This name is used as modules when it is imported in the transformation code.\"),\n publish: z.boolean().default(false).describe(\"If true, publishes your library to the latest version; code is made live for incoming traffic. Default is false.\").optional(),\n language: z.enum([\"javascript\", \"pythonfaas\"]).describe(\"Language of the library code. Acceptable values are 'javascript' and 'pythonfaas'.\"),\n description: z.string().describe(\"Description of the library.\").optional(),\n}).describe(\"Request model for creating a library in RudderStack Transformation.\");\nexport const RudderstackTransformationCreateLibraryOutput = z.object({\n id: z.string().describe(\"Library ID\").nullable().optional(),\n code: z.string().describe(\"Library code\").nullable().optional(),\n name: z.string().describe(\"Library name\").nullable().optional(),\n language: z.string().describe(\"Language of the library code\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n versionId: z.string().describe(\"Version ID of the library\").nullable().optional(),\n importName: z.string().describe(\"The import name that users can use in their transformation code while importing this library\").nullable().optional(),\n description: z.string().describe(\"Library description\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a library.\");\n\nexport const rudderstackTransformationCreateLibrary = action(\"RUDDERSTACK_TRANSFORMATION_CREATE_LIBRARY\", {\n slug: \"rudderstack_transformation-create-library\",\n name: \"Create Library\",\n description: \"Tool to create a library in RudderStack Transformation. Use when you need to create reusable JavaScript or Python code that can be imported in transformations. Libraries enable code reusability and version maintenance.\",\n input: RudderstackTransformationCreateLibraryInput,\n output: RudderstackTransformationCreateLibraryOutput,\n});\n"],"mappings":";;AAuBA,MAAa,yCAAyC,OAAO,6CAA6C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvByD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;EACrJ,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EAC1K,UAAU,EAAE,KAAK,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC,SAAS,oFAAoF;EAC5I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,qEAiBH;CACP,QAjB0D,EAAE,OAAO;EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -4,24 +4,24 @@ let zod = require("zod");
4
4
  const RudderstackTransformationCreateTransformationInput = zod.z.object({
5
5
  code: zod.z.string().describe("The transformation code to execute. For JavaScript, this should export a transformEvent function. For Python, implement the appropriate function signature."),
6
6
  name: zod.z.string().describe("Name of the transformation to create. This is a human-readable identifier for the transformation."),
7
- events: zod.z.array(zod.z.object({})).describe("Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.").optional(),
7
+ events: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.").optional(),
8
8
  publish: zod.z.boolean().default(false).describe("Whether to publish the transformation. When false (default), RudderStack creates revisions but the transformation is not available to incoming event traffic. When true, the transformation can be connected to destinations and its code is made live for incoming traffic.").optional(),
9
9
  language: zod.z.enum(["javascript", "pythonfaas"]).describe("Language of the transformation code. Must be either 'javascript' or 'pythonfaas'."),
10
10
  description: zod.z.string().describe("Description of the transformation. Use this to document what the transformation does."),
11
11
  destination_ids: zod.z.array(zod.z.string()).describe("Array of destination IDs to connect with this transformation. The transformation will apply to events sent to these destinations.").optional()
12
12
  });
13
13
  const RudderstackTransformationCreateTransformationOutput = zod.z.object({
14
- id: zod.z.string().describe("Unique identifier for the transformation. Use this ID for update, retrieve, and delete operations."),
14
+ id: zod.z.string().describe("Unique identifier for the transformation. Use this ID for update, retrieve, and delete operations.").nullable(),
15
15
  code: zod.z.string().describe("The transformation code.").nullable().optional(),
16
16
  name: zod.z.string().describe("Name of the transformation.").nullable().optional(),
17
17
  language: zod.z.string().describe("Programming language used for the transformation (javascript or pythonfaas).").nullable().optional(),
18
18
  created_at: zod.z.string().describe("Timestamp when the transformation was created (ISO 8601 format).").nullable().optional(),
19
19
  updated_at: zod.z.string().describe("Timestamp when the transformation was last updated (ISO 8601 format).").nullable().optional(),
20
- version_id: zod.z.string().describe("Unique identifier for this specific version/revision of the transformation."),
20
+ version_id: zod.z.string().describe("Unique identifier for this specific version/revision of the transformation.").nullable(),
21
21
  description: zod.z.string().describe("Description of the transformation.").nullable().optional(),
22
22
  code_version: zod.z.string().describe("Version number of the transformation code.").nullable().optional(),
23
- destinations: zod.z.array(zod.z.object({})).describe("List of destinations connected to this transformation.").nullable().optional()
24
- });
23
+ destinations: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of destinations connected to this transformation.").nullable().optional()
24
+ }).passthrough();
25
25
  const rudderstackTransformationCreateTransformation = require_action.action("RUDDERSTACK_TRANSFORMATION_CREATE_TRANSFORMATION", {
26
26
  slug: "rudderstack_transformation-create-transformation",
27
27
  name: "Create Transformation",
@@ -1 +1 @@
1
- {"version":3,"file":"create-transformation.cjs","names":["z","action"],"sources":["../../src/actions/create-transformation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationCreateTransformationInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"The transformation code to execute. For JavaScript, this should export a transformEvent function. For Python, implement the appropriate function signature.\"),\n name: z.string().describe(\"Name of the transformation to create. This is a human-readable identifier for the transformation.\"),\n events: z.array(z.object({})).describe(\"Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.\").optional(),\n publish: z.boolean().default(false).describe(\"Whether to publish the transformation. When false (default), RudderStack creates revisions but the transformation is not available to incoming event traffic. When true, the transformation can be connected to destinations and its code is made live for incoming traffic.\").optional(),\n language: z.enum([\"javascript\", \"pythonfaas\"]).describe(\"Language of the transformation code. Must be either 'javascript' or 'pythonfaas'.\"),\n description: z.string().describe(\"Description of the transformation. Use this to document what the transformation does.\"),\n destination_ids: z.array(z.string()).describe(\"Array of destination IDs to connect with this transformation. The transformation will apply to events sent to these destinations.\").optional(),\n});\nexport const RudderstackTransformationCreateTransformationOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the transformation. Use this ID for update, retrieve, and delete operations.\"),\n code: z.string().describe(\"The transformation code.\").nullable().optional(),\n name: z.string().describe(\"Name of the transformation.\").nullable().optional(),\n language: z.string().describe(\"Programming language used for the transformation (javascript or pythonfaas).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the transformation was created (ISO 8601 format).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the transformation was last updated (ISO 8601 format).\").nullable().optional(),\n version_id: z.string().describe(\"Unique identifier for this specific version/revision of the transformation.\"),\n description: z.string().describe(\"Description of the transformation.\").nullable().optional(),\n code_version: z.string().describe(\"Version number of the transformation code.\").nullable().optional(),\n destinations: z.array(z.object({})).describe(\"List of destinations connected to this transformation.\").nullable().optional(),\n});\n\nexport const rudderstackTransformationCreateTransformation = action(\"RUDDERSTACK_TRANSFORMATION_CREATE_TRANSFORMATION\", {\n slug: \"rudderstack_transformation-create-transformation\",\n name: \"Create Transformation\",\n description: \"Tool to create a RudderStack transformation. When publish=false (default), creates an unpublished transformation not available to event traffic. When publish=true, publishes the transformation making it live for incoming events and connectable to destinations.\",\n input: RudderstackTransformationCreateTransformationInput,\n output: RudderstackTransformationCreateTransformationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qDAAmEA,IAAAA,EAAE,OAAO;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CACvL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;CAC7H,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAC1L,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;CACtU,UAAUA,IAAAA,EAAE,KAAK,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC,SAAS,mFAAmF;CAC3I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACxH,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;AAC9L,CAAC;AACD,MAAa,sDAAoEA,IAAAA,EAAE,OAAO;CACxF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CAC5H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC;AAED,MAAa,gDAAgDC,eAAAA,OAAO,oDAAoD;CACtH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-transformation.cjs","names":["z","action"],"sources":["../../src/actions/create-transformation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationCreateTransformationInput = z.object({\n code: z.string().describe(\"The transformation code to execute. For JavaScript, this should export a transformEvent function. For Python, implement the appropriate function signature.\"),\n name: z.string().describe(\"Name of the transformation to create. This is a human-readable identifier for the transformation.\"),\n events: z.array(z.record(z.string(), z.unknown())).describe(\"Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.\").optional(),\n publish: z.boolean().default(false).describe(\"Whether to publish the transformation. When false (default), RudderStack creates revisions but the transformation is not available to incoming event traffic. When true, the transformation can be connected to destinations and its code is made live for incoming traffic.\").optional(),\n language: z.enum([\"javascript\", \"pythonfaas\"]).describe(\"Language of the transformation code. Must be either 'javascript' or 'pythonfaas'.\"),\n description: z.string().describe(\"Description of the transformation. Use this to document what the transformation does.\"),\n destination_ids: z.array(z.string()).describe(\"Array of destination IDs to connect with this transformation. The transformation will apply to events sent to these destinations.\").optional(),\n});\nexport const RudderstackTransformationCreateTransformationOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transformation. Use this ID for update, retrieve, and delete operations.\").nullable(),\n code: z.string().describe(\"The transformation code.\").nullable().optional(),\n name: z.string().describe(\"Name of the transformation.\").nullable().optional(),\n language: z.string().describe(\"Programming language used for the transformation (javascript or pythonfaas).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the transformation was created (ISO 8601 format).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the transformation was last updated (ISO 8601 format).\").nullable().optional(),\n version_id: z.string().describe(\"Unique identifier for this specific version/revision of the transformation.\").nullable(),\n description: z.string().describe(\"Description of the transformation.\").nullable().optional(),\n code_version: z.string().describe(\"Version number of the transformation code.\").nullable().optional(),\n destinations: z.array(z.record(z.string(), z.unknown())).describe(\"List of destinations connected to this transformation.\").nullable().optional(),\n}).passthrough();\n\nexport const rudderstackTransformationCreateTransformation = action(\"RUDDERSTACK_TRANSFORMATION_CREATE_TRANSFORMATION\", {\n slug: \"rudderstack_transformation-create-transformation\",\n name: \"Create Transformation\",\n description: \"Tool to create a RudderStack transformation. When publish=false (default), creates an unpublished transformation not available to event traffic. When publish=true, publishes the transformation making it live for incoming events and connectable to destinations.\",\n input: RudderstackTransformationCreateTransformationInput,\n output: RudderstackTransformationCreateTransformationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qDAAqDA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CACvL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;CAC7H,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAC/M,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;CACtU,UAAUA,IAAAA,EAAE,KAAK,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC,SAAS,mFAAmF;CAC3I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACxH,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;AAC9L,CAAC;AACD,MAAa,sDAAsDA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gDAAgDC,eAAAA,OAAO,oDAAoD;CACtH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-transformation.d.ts
4
- declare const RudderstackTransformationCreateTransformationInput: z.ZodTypeAny;
5
- declare const RudderstackTransformationCreateTransformationOutput: z.ZodTypeAny;
6
- declare const rudderstackTransformationCreateTransformation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RudderstackTransformationCreateTransformationInput: z.ZodObject<{
5
+ code: z.ZodString;
6
+ name: z.ZodString;
7
+ events: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
8
+ publish: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9
+ language: z.ZodEnum<{
10
+ javascript: "javascript";
11
+ pythonfaas: "pythonfaas";
12
+ }>;
13
+ description: z.ZodString;
14
+ destination_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ declare const RudderstackTransformationCreateTransformationOutput: z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ version_id: z.ZodNullable<z.ZodString>;
24
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ code_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ destinations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
27
+ }, z.core.$loose>;
28
+ declare const rudderstackTransformationCreateTransformation: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ code: string;
30
+ name: string;
31
+ language: "javascript" | "pythonfaas";
32
+ description: string;
33
+ events?: Record<string, unknown>[] | undefined;
34
+ publish?: boolean | undefined;
35
+ destination_ids?: string[] | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { rudderstackTransformationCreateTransformation };
9
39
  //# sourceMappingURL=create-transformation.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-transformation.d.cts","names":[],"sources":["../../src/actions/create-transformation.ts"],"mappings":";;;cAIa,kDAAA,EAAoD,CAAA,CAAE,UAQjE;AAAA,cACW,mDAAA,EAAqD,CAAA,CAAE,UAWlE;AAAA,cAEW,6CAAA,gCAA6C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-transformation.d.cts","names":[],"sources":["../../src/actions/create-transformation.ts"],"mappings":";;;cAIa,kDAAA,EAAkD,CAAA,CAAA,SAAA;;;;;;;;;;;;cASlD,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;;;;;;;;;cAanD,6CAAA,gCAA6C,wBAAA;;;;;WAMxD,MAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-transformation.d.ts
4
- declare const RudderstackTransformationCreateTransformationInput: z.ZodTypeAny;
5
- declare const RudderstackTransformationCreateTransformationOutput: z.ZodTypeAny;
6
- declare const rudderstackTransformationCreateTransformation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RudderstackTransformationCreateTransformationInput: z.ZodObject<{
5
+ code: z.ZodString;
6
+ name: z.ZodString;
7
+ events: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
8
+ publish: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9
+ language: z.ZodEnum<{
10
+ javascript: "javascript";
11
+ pythonfaas: "pythonfaas";
12
+ }>;
13
+ description: z.ZodString;
14
+ destination_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ declare const RudderstackTransformationCreateTransformationOutput: z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ version_id: z.ZodNullable<z.ZodString>;
24
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ code_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ destinations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
27
+ }, z.core.$loose>;
28
+ declare const rudderstackTransformationCreateTransformation: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ code: string;
30
+ name: string;
31
+ language: "javascript" | "pythonfaas";
32
+ description: string;
33
+ events?: Record<string, unknown>[] | undefined;
34
+ publish?: boolean | undefined;
35
+ destination_ids?: string[] | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { rudderstackTransformationCreateTransformation };
9
39
  //# sourceMappingURL=create-transformation.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-transformation.d.mts","names":[],"sources":["../../src/actions/create-transformation.ts"],"mappings":";;;cAIa,kDAAA,EAAoD,CAAA,CAAE,UAQjE;AAAA,cACW,mDAAA,EAAqD,CAAA,CAAE,UAWlE;AAAA,cAEW,6CAAA,gCAA6C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-transformation.d.mts","names":[],"sources":["../../src/actions/create-transformation.ts"],"mappings":";;;cAIa,kDAAA,EAAkD,CAAA,CAAA,SAAA;;;;;;;;;;;;cASlD,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;;;;;;;;;cAanD,6CAAA,gCAA6C,wBAAA;;;;;WAMxD,MAAA"}
@@ -7,24 +7,24 @@ const rudderstackTransformationCreateTransformation = action("RUDDERSTACK_TRANSF
7
7
  input: z.object({
8
8
  code: z.string().describe("The transformation code to execute. For JavaScript, this should export a transformEvent function. For Python, implement the appropriate function signature."),
9
9
  name: z.string().describe("Name of the transformation to create. This is a human-readable identifier for the transformation."),
10
- events: z.array(z.object({})).describe("Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.").optional(),
10
+ events: z.array(z.record(z.string(), z.unknown())).describe("Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.").optional(),
11
11
  publish: z.boolean().default(false).describe("Whether to publish the transformation. When false (default), RudderStack creates revisions but the transformation is not available to incoming event traffic. When true, the transformation can be connected to destinations and its code is made live for incoming traffic.").optional(),
12
12
  language: z.enum(["javascript", "pythonfaas"]).describe("Language of the transformation code. Must be either 'javascript' or 'pythonfaas'."),
13
13
  description: z.string().describe("Description of the transformation. Use this to document what the transformation does."),
14
14
  destination_ids: z.array(z.string()).describe("Array of destination IDs to connect with this transformation. The transformation will apply to events sent to these destinations.").optional()
15
15
  }),
16
16
  output: z.object({
17
- id: z.string().describe("Unique identifier for the transformation. Use this ID for update, retrieve, and delete operations."),
17
+ id: z.string().describe("Unique identifier for the transformation. Use this ID for update, retrieve, and delete operations.").nullable(),
18
18
  code: z.string().describe("The transformation code.").nullable().optional(),
19
19
  name: z.string().describe("Name of the transformation.").nullable().optional(),
20
20
  language: z.string().describe("Programming language used for the transformation (javascript or pythonfaas).").nullable().optional(),
21
21
  created_at: z.string().describe("Timestamp when the transformation was created (ISO 8601 format).").nullable().optional(),
22
22
  updated_at: z.string().describe("Timestamp when the transformation was last updated (ISO 8601 format).").nullable().optional(),
23
- version_id: z.string().describe("Unique identifier for this specific version/revision of the transformation."),
23
+ version_id: z.string().describe("Unique identifier for this specific version/revision of the transformation.").nullable(),
24
24
  description: z.string().describe("Description of the transformation.").nullable().optional(),
25
25
  code_version: z.string().describe("Version number of the transformation code.").nullable().optional(),
26
- destinations: z.array(z.object({})).describe("List of destinations connected to this transformation.").nullable().optional()
27
- })
26
+ destinations: z.array(z.record(z.string(), z.unknown())).describe("List of destinations connected to this transformation.").nullable().optional()
27
+ }).passthrough()
28
28
  });
29
29
  //#endregion
30
30
  export { rudderstackTransformationCreateTransformation };
@@ -1 +1 @@
1
- {"version":3,"file":"create-transformation.mjs","names":[],"sources":["../../src/actions/create-transformation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationCreateTransformationInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"The transformation code to execute. For JavaScript, this should export a transformEvent function. For Python, implement the appropriate function signature.\"),\n name: z.string().describe(\"Name of the transformation to create. This is a human-readable identifier for the transformation.\"),\n events: z.array(z.object({})).describe(\"Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.\").optional(),\n publish: z.boolean().default(false).describe(\"Whether to publish the transformation. When false (default), RudderStack creates revisions but the transformation is not available to incoming event traffic. When true, the transformation can be connected to destinations and its code is made live for incoming traffic.\").optional(),\n language: z.enum([\"javascript\", \"pythonfaas\"]).describe(\"Language of the transformation code. Must be either 'javascript' or 'pythonfaas'.\"),\n description: z.string().describe(\"Description of the transformation. Use this to document what the transformation does.\"),\n destination_ids: z.array(z.string()).describe(\"Array of destination IDs to connect with this transformation. The transformation will apply to events sent to these destinations.\").optional(),\n});\nexport const RudderstackTransformationCreateTransformationOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the transformation. Use this ID for update, retrieve, and delete operations.\"),\n code: z.string().describe(\"The transformation code.\").nullable().optional(),\n name: z.string().describe(\"Name of the transformation.\").nullable().optional(),\n language: z.string().describe(\"Programming language used for the transformation (javascript or pythonfaas).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the transformation was created (ISO 8601 format).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the transformation was last updated (ISO 8601 format).\").nullable().optional(),\n version_id: z.string().describe(\"Unique identifier for this specific version/revision of the transformation.\"),\n description: z.string().describe(\"Description of the transformation.\").nullable().optional(),\n code_version: z.string().describe(\"Version number of the transformation code.\").nullable().optional(),\n destinations: z.array(z.object({})).describe(\"List of destinations connected to this transformation.\").nullable().optional(),\n});\n\nexport const rudderstackTransformationCreateTransformation = action(\"RUDDERSTACK_TRANSFORMATION_CREATE_TRANSFORMATION\", {\n slug: \"rudderstack_transformation-create-transformation\",\n name: \"Create Transformation\",\n description: \"Tool to create a RudderStack transformation. When publish=false (default), creates an unpublished transformation not available to event traffic. When publish=true, publishes the transformation making it live for incoming events and connectable to destinations.\",\n input: RudderstackTransformationCreateTransformationInput,\n output: RudderstackTransformationCreateTransformationOutput,\n});\n"],"mappings":";;AA0BA,MAAa,gDAAgD,OAAO,oDAAoD;CACtH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1B8E,EAAE,OAAO;EACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;EACvL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;EAC7H,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;EAC1L,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;EACtU,UAAU,EAAE,KAAK,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC,SAAS,mFAAmF;EAC3I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;EACxH,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC9L,CAkBS;CACP,QAlB+E,EAAE,OAAO;EACxF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;EAC5H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;EAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"create-transformation.mjs","names":[],"sources":["../../src/actions/create-transformation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationCreateTransformationInput = z.object({\n code: z.string().describe(\"The transformation code to execute. For JavaScript, this should export a transformEvent function. For Python, implement the appropriate function signature.\"),\n name: z.string().describe(\"Name of the transformation to create. This is a human-readable identifier for the transformation.\"),\n events: z.array(z.record(z.string(), z.unknown())).describe(\"Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.\").optional(),\n publish: z.boolean().default(false).describe(\"Whether to publish the transformation. When false (default), RudderStack creates revisions but the transformation is not available to incoming event traffic. When true, the transformation can be connected to destinations and its code is made live for incoming traffic.\").optional(),\n language: z.enum([\"javascript\", \"pythonfaas\"]).describe(\"Language of the transformation code. Must be either 'javascript' or 'pythonfaas'.\"),\n description: z.string().describe(\"Description of the transformation. Use this to document what the transformation does.\"),\n destination_ids: z.array(z.string()).describe(\"Array of destination IDs to connect with this transformation. The transformation will apply to events sent to these destinations.\").optional(),\n});\nexport const RudderstackTransformationCreateTransformationOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transformation. Use this ID for update, retrieve, and delete operations.\").nullable(),\n code: z.string().describe(\"The transformation code.\").nullable().optional(),\n name: z.string().describe(\"Name of the transformation.\").nullable().optional(),\n language: z.string().describe(\"Programming language used for the transformation (javascript or pythonfaas).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the transformation was created (ISO 8601 format).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the transformation was last updated (ISO 8601 format).\").nullable().optional(),\n version_id: z.string().describe(\"Unique identifier for this specific version/revision of the transformation.\").nullable(),\n description: z.string().describe(\"Description of the transformation.\").nullable().optional(),\n code_version: z.string().describe(\"Version number of the transformation code.\").nullable().optional(),\n destinations: z.array(z.record(z.string(), z.unknown())).describe(\"List of destinations connected to this transformation.\").nullable().optional(),\n}).passthrough();\n\nexport const rudderstackTransformationCreateTransformation = action(\"RUDDERSTACK_TRANSFORMATION_CREATE_TRANSFORMATION\", {\n slug: \"rudderstack_transformation-create-transformation\",\n name: \"Create Transformation\",\n description: \"Tool to create a RudderStack transformation. When publish=false (default), creates an unpublished transformation not available to event traffic. When publish=true, publishes the transformation making it live for incoming events and connectable to destinations.\",\n input: RudderstackTransformationCreateTransformationInput,\n output: RudderstackTransformationCreateTransformationOutput,\n});\n"],"mappings":";;AA0BA,MAAa,gDAAgD,OAAO,oDAAoD;CACtH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BgE,EAAE,OAAO;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;EACvL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;EAC7H,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;EAC/M,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;EACtU,UAAU,EAAE,KAAK,CAAC,cAAc,YAAY,CAAC,CAAC,CAAC,SAAS,mFAAmF;EAC3I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;EACxH,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC9L,CAkBS;CACP,QAlBiE,EAAE,OAAO;EAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,9 +3,9 @@ let zod = require("zod");
3
3
  //#region src/actions/delete-transformation.ts
4
4
  const RudderstackTransformationDeleteTransformationInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the transformation to delete. This is the transformation ID returned when the transformation was created or listed.") }).describe("Request model for deleting a transformation.");
5
5
  const RudderstackTransformationDeleteTransformationOutput = zod.z.object({
6
- message: zod.z.string().describe("A confirmation message indicating the outcome of the transformation deletion."),
6
+ message: zod.z.string().describe("A confirmation message indicating the outcome of the transformation deletion.").nullable(),
7
7
  success: zod.z.boolean().default(true).describe("Indicates whether the transformation was successfully deleted.").nullable().optional()
8
- }).describe("Response model for transformation deletion.");
8
+ }).passthrough().describe("Response model for transformation deletion.");
9
9
  const rudderstackTransformationDeleteTransformation = require_action.action("RUDDERSTACK_TRANSFORMATION_DELETE_TRANSFORMATION", {
10
10
  slug: "rudderstack_transformation-delete-transformation",
11
11
  name: "Delete Transformation",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-transformation.cjs","names":["z","action"],"sources":["../../src/actions/delete-transformation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationDeleteTransformationInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the transformation to delete. This is the transformation ID returned when the transformation was created or listed.\"),\n}).describe(\"Request model for deleting a transformation.\");\nexport const RudderstackTransformationDeleteTransformationOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"A confirmation message indicating the outcome of the transformation deletion.\"),\n success: z.boolean().default(true).describe(\"Indicates whether the transformation was successfully deleted.\").nullable().optional(),\n}).describe(\"Response model for transformation deletion.\");\n\nexport const rudderstackTransformationDeleteTransformation = action(\"RUDDERSTACK_TRANSFORMATION_DELETE_TRANSFORMATION\", {\n slug: \"rudderstack_transformation-delete-transformation\",\n name: \"Delete Transformation\",\n description: \"Delete a published transformation by ID. Note that RudderStack never deletes a transformation revision. Use this when you need to remove a transformation from the system.\",\n input: RudderstackTransformationDeleteTransformationInput,\n output: RudderstackTransformationDeleteTransformationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qDAAmEA,IAAAA,EAAE,OAAO,EACvF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,EACxK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,sDAAoEA,IAAAA,EAAE,OAAO;CACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,gDAAgDC,eAAAA,OAAO,oDAAoD;CACtH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-transformation.cjs","names":["z","action"],"sources":["../../src/actions/delete-transformation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationDeleteTransformationInput = z.object({\n id: z.string().describe(\"The unique identifier of the transformation to delete. This is the transformation ID returned when the transformation was created or listed.\"),\n}).describe(\"Request model for deleting a transformation.\");\nexport const RudderstackTransformationDeleteTransformationOutput = z.object({\n message: z.string().describe(\"A confirmation message indicating the outcome of the transformation deletion.\").nullable(),\n success: z.boolean().default(true).describe(\"Indicates whether the transformation was successfully deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response model for transformation deletion.\");\n\nexport const rudderstackTransformationDeleteTransformation = action(\"RUDDERSTACK_TRANSFORMATION_DELETE_TRANSFORMATION\", {\n slug: \"rudderstack_transformation-delete-transformation\",\n name: \"Delete Transformation\",\n description: \"Delete a published transformation by ID. Note that RudderStack never deletes a transformation revision. Use this when you need to remove a transformation from the system.\",\n input: RudderstackTransformationDeleteTransformationInput,\n output: RudderstackTransformationDeleteTransformationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qDAAqDA,IAAAA,EAAE,OAAO,EACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,EACxK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,sDAAsDA,IAAAA,EAAE,OAAO;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,gDAAgDC,eAAAA,OAAO,oDAAoD;CACtH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-transformation.d.ts
4
- declare const RudderstackTransformationDeleteTransformationInput: z.ZodTypeAny;
5
- declare const RudderstackTransformationDeleteTransformationOutput: z.ZodTypeAny;
6
- declare const rudderstackTransformationDeleteTransformation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RudderstackTransformationDeleteTransformationInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RudderstackTransformationDeleteTransformationOutput: z.ZodObject<{
8
+ message: z.ZodNullable<z.ZodString>;
9
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
10
+ }, z.core.$loose>;
11
+ declare const rudderstackTransformationDeleteTransformation: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ id: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { rudderstackTransformationDeleteTransformation };
9
16
  //# sourceMappingURL=delete-transformation.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-transformation.d.cts","names":[],"sources":["../../src/actions/delete-transformation.ts"],"mappings":";;;cAIa,kDAAA,EAAoD,CAAA,CAAE,UAER;AAAA,cAC9C,mDAAA,EAAqD,CAAA,CAAE,UAGV;AAAA,cAE7C,6CAAA,gCAA6C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-transformation.d.cts","names":[],"sources":["../../src/actions/delete-transformation.ts"],"mappings":";;;cAIa,kDAAA,EAAkD,CAAA,CAAA,SAAA;;;cAGlD,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;cAKnD,6CAAA,gCAA6C,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-transformation.d.ts
4
- declare const RudderstackTransformationDeleteTransformationInput: z.ZodTypeAny;
5
- declare const RudderstackTransformationDeleteTransformationOutput: z.ZodTypeAny;
6
- declare const rudderstackTransformationDeleteTransformation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RudderstackTransformationDeleteTransformationInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RudderstackTransformationDeleteTransformationOutput: z.ZodObject<{
8
+ message: z.ZodNullable<z.ZodString>;
9
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
10
+ }, z.core.$loose>;
11
+ declare const rudderstackTransformationDeleteTransformation: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ id: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { rudderstackTransformationDeleteTransformation };
9
16
  //# sourceMappingURL=delete-transformation.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-transformation.d.mts","names":[],"sources":["../../src/actions/delete-transformation.ts"],"mappings":";;;cAIa,kDAAA,EAAoD,CAAA,CAAE,UAER;AAAA,cAC9C,mDAAA,EAAqD,CAAA,CAAE,UAGV;AAAA,cAE7C,6CAAA,gCAA6C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-transformation.d.mts","names":[],"sources":["../../src/actions/delete-transformation.ts"],"mappings":";;;cAIa,kDAAA,EAAkD,CAAA,CAAA,SAAA;;;cAGlD,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;cAKnD,6CAAA,gCAA6C,wBAAA"}
@@ -6,9 +6,9 @@ const rudderstackTransformationDeleteTransformation = action("RUDDERSTACK_TRANSF
6
6
  description: "Delete a published transformation by ID. Note that RudderStack never deletes a transformation revision. Use this when you need to remove a transformation from the system.",
7
7
  input: z.object({ id: z.string().describe("The unique identifier of the transformation to delete. This is the transformation ID returned when the transformation was created or listed.") }).describe("Request model for deleting a transformation."),
8
8
  output: z.object({
9
- message: z.string().describe("A confirmation message indicating the outcome of the transformation deletion."),
9
+ message: z.string().describe("A confirmation message indicating the outcome of the transformation deletion.").nullable(),
10
10
  success: z.boolean().default(true).describe("Indicates whether the transformation was successfully deleted.").nullable().optional()
11
- }).describe("Response model for transformation deletion.")
11
+ }).passthrough().describe("Response model for transformation deletion.")
12
12
  });
13
13
  //#endregion
14
14
  export { rudderstackTransformationDeleteTransformation };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-transformation.mjs","names":[],"sources":["../../src/actions/delete-transformation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationDeleteTransformationInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the transformation to delete. This is the transformation ID returned when the transformation was created or listed.\"),\n}).describe(\"Request model for deleting a transformation.\");\nexport const RudderstackTransformationDeleteTransformationOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"A confirmation message indicating the outcome of the transformation deletion.\"),\n success: z.boolean().default(true).describe(\"Indicates whether the transformation was successfully deleted.\").nullable().optional(),\n}).describe(\"Response model for transformation deletion.\");\n\nexport const rudderstackTransformationDeleteTransformation = action(\"RUDDERSTACK_TRANSFORMATION_DELETE_TRANSFORMATION\", {\n slug: \"rudderstack_transformation-delete-transformation\",\n name: \"Delete Transformation\",\n description: \"Delete a published transformation by ID. Note that RudderStack never deletes a transformation revision. Use this when you need to remove a transformation from the system.\",\n input: RudderstackTransformationDeleteTransformationInput,\n output: RudderstackTransformationDeleteTransformationOutput,\n});\n"],"mappings":";;AAYA,MAAa,gDAAgD,OAAO,oDAAoD;CACtH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ8E,EAAE,OAAO,EACvF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,EACxK,CAAC,CAAC,CAAC,SAAS,8CAUH;CACP,QAV+E,EAAE,OAAO;EACxF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC5G,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-transformation.mjs","names":[],"sources":["../../src/actions/delete-transformation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationDeleteTransformationInput = z.object({\n id: z.string().describe(\"The unique identifier of the transformation to delete. This is the transformation ID returned when the transformation was created or listed.\"),\n}).describe(\"Request model for deleting a transformation.\");\nexport const RudderstackTransformationDeleteTransformationOutput = z.object({\n message: z.string().describe(\"A confirmation message indicating the outcome of the transformation deletion.\").nullable(),\n success: z.boolean().default(true).describe(\"Indicates whether the transformation was successfully deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response model for transformation deletion.\");\n\nexport const rudderstackTransformationDeleteTransformation = action(\"RUDDERSTACK_TRANSFORMATION_DELETE_TRANSFORMATION\", {\n slug: \"rudderstack_transformation-delete-transformation\",\n name: \"Delete Transformation\",\n description: \"Delete a published transformation by ID. Note that RudderStack never deletes a transformation revision. Use this when you need to remove a transformation from the system.\",\n input: RudderstackTransformationDeleteTransformationInput,\n output: RudderstackTransformationDeleteTransformationOutput,\n});\n"],"mappings":";;AAYA,MAAa,gDAAgD,OAAO,oDAAoD;CACtH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgE,EAAE,OAAO,EACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,EACxK,CAAC,CAAC,CAAC,SAAS,8CAUH;CACP,QAViE,EAAE,OAAO;EAC1E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACvH,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -15,7 +15,7 @@ const RudderstackTransformationGetLibraryVersionOutput = zod.z.object({
15
15
  versionId: zod.z.string().describe("The version ID of the library").nullable().optional(),
16
16
  description: zod.z.string().describe("The description of the library").nullable().optional(),
17
17
  isPublished: zod.z.boolean().describe("Whether the library version is published").nullable().optional()
18
- }).describe("Response containing library version details.");
18
+ }).passthrough().describe("Response containing library version details.");
19
19
  const rudderstackTransformationGetLibraryVersion = require_action.action("RUDDERSTACK_TRANSFORMATION_GET_LIBRARY_VERSION", {
20
20
  slug: "rudderstack_transformation-get-library-version",
21
21
  name: "Get Library Version",
@@ -1 +1 @@
1
- {"version":3,"file":"get-library-version.cjs","names":["z","action"],"sources":["../../src/actions/get-library-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationGetLibraryVersionInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The library ID\"),\n versionId: z.string().describe(\"The version ID of the library\"),\n}).describe(\"Request parameters for retrieving a single library version.\");\nexport const RudderstackTransformationGetLibraryVersionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The library ID\").nullable().optional(),\n code: z.string().describe(\"The code content of the library\").nullable().optional(),\n name: z.string().describe(\"The name of the library\").nullable().optional(),\n language: z.string().describe(\"The programming language of the library\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the library version was created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the library version was last updated\").nullable().optional(),\n versionId: z.string().describe(\"The version ID of the library\").nullable().optional(),\n description: z.string().describe(\"The description of the library\").nullable().optional(),\n isPublished: z.boolean().describe(\"Whether the library version is published\").nullable().optional(),\n}).describe(\"Response containing library version details.\");\n\nexport const rudderstackTransformationGetLibraryVersion = action(\"RUDDERSTACK_TRANSFORMATION_GET_LIBRARY_VERSION\", {\n slug: \"rudderstack_transformation-get-library-version\",\n name: \"Get Library Version\",\n description: \"Tool to retrieve a single library version by library ID and version ID. Use when you need to fetch details of a specific library revision in RudderStack transformations.\",\n input: RudderstackTransformationGetLibraryVersionInput,\n output: RudderstackTransformationGetLibraryVersionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgEA,IAAAA,EAAE,OAAO;CACpF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CACxC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAChE,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,mDAAiEA,IAAAA,EAAE,OAAO;CACrF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,6CAA6CC,eAAAA,OAAO,kDAAkD;CACjH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-library-version.cjs","names":["z","action"],"sources":["../../src/actions/get-library-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RudderstackTransformationGetLibraryVersionInput = z.object({\n id: z.string().describe(\"The library ID\"),\n versionId: z.string().describe(\"The version ID of the library\"),\n}).describe(\"Request parameters for retrieving a single library version.\");\nexport const RudderstackTransformationGetLibraryVersionOutput = z.object({\n id: z.string().describe(\"The library ID\").nullable().optional(),\n code: z.string().describe(\"The code content of the library\").nullable().optional(),\n name: z.string().describe(\"The name of the library\").nullable().optional(),\n language: z.string().describe(\"The programming language of the library\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the library version was created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the library version was last updated\").nullable().optional(),\n versionId: z.string().describe(\"The version ID of the library\").nullable().optional(),\n description: z.string().describe(\"The description of the library\").nullable().optional(),\n isPublished: z.boolean().describe(\"Whether the library version is published\").nullable().optional(),\n}).passthrough().describe(\"Response containing library version details.\");\n\nexport const rudderstackTransformationGetLibraryVersion = action(\"RUDDERSTACK_TRANSFORMATION_GET_LIBRARY_VERSION\", {\n slug: \"rudderstack_transformation-get-library-version\",\n name: \"Get Library Version\",\n description: \"Tool to retrieve a single library version by library ID and version ID. Use when you need to fetch details of a specific library revision in RudderStack transformations.\",\n input: RudderstackTransformationGetLibraryVersionInput,\n output: RudderstackTransformationGetLibraryVersionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CACxC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAChE,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,mDAAmDA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,6CAA6CC,eAAAA,OAAO,kDAAkD;CACjH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-library-version.d.ts
4
- declare const RudderstackTransformationGetLibraryVersionInput: z.ZodTypeAny;
5
- declare const RudderstackTransformationGetLibraryVersionOutput: z.ZodTypeAny;
6
- declare const rudderstackTransformationGetLibraryVersion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RudderstackTransformationGetLibraryVersionInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ versionId: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const RudderstackTransformationGetLibraryVersionOutput: z.ZodObject<{
9
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ isPublished: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
18
+ }, z.core.$loose>;
19
+ declare const rudderstackTransformationGetLibraryVersion: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ id: string;
21
+ versionId: string;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { rudderstackTransformationGetLibraryVersion };
9
25
  //# sourceMappingURL=get-library-version.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-library-version.d.cts","names":[],"sources":["../../src/actions/get-library-version.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAGU;AAAA,cAC7D,gDAAA,EAAkD,CAAA,CAAE,UAUN;AAAA,cAE9C,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-library-version.d.cts","names":[],"sources":["../../src/actions/get-library-version.ts"],"mappings":";;;cAIa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;cAI/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;cAYhD,0CAAA,gCAA0C,wBAAA"}