@keystrokehq/planly 0.1.0

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 (154) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/complete-ai-prompt.cjs +25 -0
  7. package/dist/actions/complete-ai-prompt.cjs.map +1 -0
  8. package/dist/actions/complete-ai-prompt.d.cts +9 -0
  9. package/dist/actions/complete-ai-prompt.d.cts.map +1 -0
  10. package/dist/actions/complete-ai-prompt.d.mts +9 -0
  11. package/dist/actions/complete-ai-prompt.d.mts.map +1 -0
  12. package/dist/actions/complete-ai-prompt.mjs +24 -0
  13. package/dist/actions/complete-ai-prompt.mjs.map +1 -0
  14. package/dist/actions/create-team.cjs +20 -0
  15. package/dist/actions/create-team.cjs.map +1 -0
  16. package/dist/actions/create-team.d.cts +9 -0
  17. package/dist/actions/create-team.d.cts.map +1 -0
  18. package/dist/actions/create-team.d.mts +9 -0
  19. package/dist/actions/create-team.d.mts.map +1 -0
  20. package/dist/actions/create-team.mjs +19 -0
  21. package/dist/actions/create-team.mjs.map +1 -0
  22. package/dist/actions/delete-media.cjs +19 -0
  23. package/dist/actions/delete-media.cjs.map +1 -0
  24. package/dist/actions/delete-media.d.cts +9 -0
  25. package/dist/actions/delete-media.d.cts.map +1 -0
  26. package/dist/actions/delete-media.d.mts +9 -0
  27. package/dist/actions/delete-media.d.mts.map +1 -0
  28. package/dist/actions/delete-media.mjs +16 -0
  29. package/dist/actions/delete-media.mjs.map +1 -0
  30. package/dist/actions/delete-team.cjs +16 -0
  31. package/dist/actions/delete-team.cjs.map +1 -0
  32. package/dist/actions/delete-team.d.cts +9 -0
  33. package/dist/actions/delete-team.d.cts.map +1 -0
  34. package/dist/actions/delete-team.d.mts +9 -0
  35. package/dist/actions/delete-team.d.mts.map +1 -0
  36. package/dist/actions/delete-team.mjs +13 -0
  37. package/dist/actions/delete-team.mjs.map +1 -0
  38. package/dist/actions/edit-team.cjs +42 -0
  39. package/dist/actions/edit-team.cjs.map +1 -0
  40. package/dist/actions/edit-team.d.cts +9 -0
  41. package/dist/actions/edit-team.d.cts.map +1 -0
  42. package/dist/actions/edit-team.d.mts +9 -0
  43. package/dist/actions/edit-team.d.mts.map +1 -0
  44. package/dist/actions/edit-team.mjs +41 -0
  45. package/dist/actions/edit-team.mjs.map +1 -0
  46. package/dist/actions/get-ai-credits.cjs +16 -0
  47. package/dist/actions/get-ai-credits.cjs.map +1 -0
  48. package/dist/actions/get-ai-credits.d.cts +9 -0
  49. package/dist/actions/get-ai-credits.d.cts.map +1 -0
  50. package/dist/actions/get-ai-credits.d.mts +9 -0
  51. package/dist/actions/get-ai-credits.d.mts.map +1 -0
  52. package/dist/actions/get-ai-credits.mjs +13 -0
  53. package/dist/actions/get-ai-credits.mjs.map +1 -0
  54. package/dist/actions/get-team.cjs +27 -0
  55. package/dist/actions/get-team.cjs.map +1 -0
  56. package/dist/actions/get-team.d.cts +9 -0
  57. package/dist/actions/get-team.d.cts.map +1 -0
  58. package/dist/actions/get-team.d.mts +9 -0
  59. package/dist/actions/get-team.d.mts.map +1 -0
  60. package/dist/actions/get-team.mjs +24 -0
  61. package/dist/actions/get-team.mjs.map +1 -0
  62. package/dist/actions/import-media-from-url.cjs +33 -0
  63. package/dist/actions/import-media-from-url.cjs.map +1 -0
  64. package/dist/actions/import-media-from-url.d.cts +9 -0
  65. package/dist/actions/import-media-from-url.d.cts.map +1 -0
  66. package/dist/actions/import-media-from-url.d.mts +9 -0
  67. package/dist/actions/import-media-from-url.d.mts.map +1 -0
  68. package/dist/actions/import-media-from-url.mjs +32 -0
  69. package/dist/actions/import-media-from-url.mjs.map +1 -0
  70. package/dist/actions/index.cjs +31 -0
  71. package/dist/actions/index.d.cts +16 -0
  72. package/dist/actions/index.d.mts +16 -0
  73. package/dist/actions/index.mjs +16 -0
  74. package/dist/actions/list-channels.cjs +33 -0
  75. package/dist/actions/list-channels.cjs.map +1 -0
  76. package/dist/actions/list-channels.d.cts +9 -0
  77. package/dist/actions/list-channels.d.cts.map +1 -0
  78. package/dist/actions/list-channels.d.mts +9 -0
  79. package/dist/actions/list-channels.d.mts.map +1 -0
  80. package/dist/actions/list-channels.mjs +32 -0
  81. package/dist/actions/list-channels.mjs.map +1 -0
  82. package/dist/actions/list-media.cjs +41 -0
  83. package/dist/actions/list-media.cjs.map +1 -0
  84. package/dist/actions/list-media.d.cts +9 -0
  85. package/dist/actions/list-media.d.cts.map +1 -0
  86. package/dist/actions/list-media.d.mts +9 -0
  87. package/dist/actions/list-media.d.mts.map +1 -0
  88. package/dist/actions/list-media.mjs +40 -0
  89. package/dist/actions/list-media.mjs.map +1 -0
  90. package/dist/actions/list-schedule-groups.cjs +93 -0
  91. package/dist/actions/list-schedule-groups.cjs.map +1 -0
  92. package/dist/actions/list-schedule-groups.d.cts +9 -0
  93. package/dist/actions/list-schedule-groups.d.cts.map +1 -0
  94. package/dist/actions/list-schedule-groups.d.mts +9 -0
  95. package/dist/actions/list-schedule-groups.d.mts.map +1 -0
  96. package/dist/actions/list-schedule-groups.mjs +92 -0
  97. package/dist/actions/list-schedule-groups.mjs.map +1 -0
  98. package/dist/actions/list-schedules.cjs +51 -0
  99. package/dist/actions/list-schedules.cjs.map +1 -0
  100. package/dist/actions/list-schedules.d.cts +9 -0
  101. package/dist/actions/list-schedules.d.cts.map +1 -0
  102. package/dist/actions/list-schedules.d.mts +9 -0
  103. package/dist/actions/list-schedules.d.mts.map +1 -0
  104. package/dist/actions/list-schedules.mjs +50 -0
  105. package/dist/actions/list-schedules.mjs.map +1 -0
  106. package/dist/actions/list-team-users.cjs +23 -0
  107. package/dist/actions/list-team-users.cjs.map +1 -0
  108. package/dist/actions/list-team-users.d.cts +9 -0
  109. package/dist/actions/list-team-users.d.cts.map +1 -0
  110. package/dist/actions/list-team-users.d.mts +9 -0
  111. package/dist/actions/list-team-users.d.mts.map +1 -0
  112. package/dist/actions/list-team-users.mjs +22 -0
  113. package/dist/actions/list-team-users.mjs.map +1 -0
  114. package/dist/actions/list-teams.cjs +24 -0
  115. package/dist/actions/list-teams.cjs.map +1 -0
  116. package/dist/actions/list-teams.d.cts +9 -0
  117. package/dist/actions/list-teams.d.cts.map +1 -0
  118. package/dist/actions/list-teams.d.mts +9 -0
  119. package/dist/actions/list-teams.d.mts.map +1 -0
  120. package/dist/actions/list-teams.mjs +23 -0
  121. package/dist/actions/list-teams.mjs.map +1 -0
  122. package/dist/actions/start-media-upload.cjs +26 -0
  123. package/dist/actions/start-media-upload.cjs.map +1 -0
  124. package/dist/actions/start-media-upload.d.cts +9 -0
  125. package/dist/actions/start-media-upload.d.cts.map +1 -0
  126. package/dist/actions/start-media-upload.d.mts +9 -0
  127. package/dist/actions/start-media-upload.d.mts.map +1 -0
  128. package/dist/actions/start-media-upload.mjs +23 -0
  129. package/dist/actions/start-media-upload.mjs.map +1 -0
  130. package/dist/app.cjs +9 -0
  131. package/dist/app.cjs.map +1 -0
  132. package/dist/app.d.cts +5 -0
  133. package/dist/app.d.cts.map +1 -0
  134. package/dist/app.d.mts +5 -0
  135. package/dist/app.d.mts.map +1 -0
  136. package/dist/app.mjs +10 -0
  137. package/dist/app.mjs.map +1 -0
  138. package/dist/catalog.cjs +15 -0
  139. package/dist/catalog.cjs.map +1 -0
  140. package/dist/catalog.d.cts +14 -0
  141. package/dist/catalog.d.cts.map +1 -0
  142. package/dist/catalog.d.mts +14 -0
  143. package/dist/catalog.d.mts.map +1 -0
  144. package/dist/catalog.mjs +15 -0
  145. package/dist/catalog.mjs.map +1 -0
  146. package/dist/execute.cjs +18 -0
  147. package/dist/execute.cjs.map +1 -0
  148. package/dist/execute.mjs +18 -0
  149. package/dist/execute.mjs.map +1 -0
  150. package/dist/index.cjs +36 -0
  151. package/dist/index.d.cts +18 -0
  152. package/dist/index.d.mts +18 -0
  153. package/dist/index.mjs +19 -0
  154. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-ai-credits.d.mts","names":[],"sources":["../../src/actions/get-ai-credits.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE0B;AAAA,cACrD,wBAAA,EAA0B,CAAA,CAAE,UAEqB;AAAA,cAEjD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,13 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const planlyGetAiCredits = action("PLANLY_GET_AI_CREDITS", {
4
+ slug: "planly-get-ai-credits",
5
+ name: "Get AI Credits",
6
+ description: "Tool to retrieve available AI credits left in a team. Use when you need to check the remaining AI credits for a specific team.",
7
+ input: z.object({ teamId: z.string().describe("Id of team to retrieve AI credits for.") }).describe("Request model for retrieving AI credits for a team."),
8
+ output: z.object({ data: z.number().int().describe("Number of AI credits available for the team.") }).describe("Response model containing available AI credits.")
9
+ });
10
+ //#endregion
11
+ export { planlyGetAiCredits };
12
+
13
+ //# sourceMappingURL=get-ai-credits.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-ai-credits.mjs","names":[],"sources":["../../src/actions/get-ai-credits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyGetAiCreditsInput: z.ZodTypeAny = z.object({\n teamId: z.string().describe(\"Id of team to retrieve AI credits for.\"),\n}).describe(\"Request model for retrieving AI credits for a team.\");\nexport const PlanlyGetAiCreditsOutput: z.ZodTypeAny = z.object({\n data: z.number().int().describe(\"Number of AI credits available for the team.\"),\n}).describe(\"Response model containing available AI credits.\");\n\nexport const planlyGetAiCredits = action(\"PLANLY_GET_AI_CREDITS\", {\n slug: \"planly-get-ai-credits\",\n name: \"Get AI Credits\",\n description: \"Tool to retrieve available AI credits left in a team. Use when you need to check the remaining AI credits for a specific team.\",\n input: PlanlyGetAiCreditsInput,\n output: PlanlyGetAiCreditsOutput,\n});\n"],"mappings":";;AAWA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXmD,EAAE,OAAO,EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACtE,CAAC,CAAC,CAAC,SAAS,qDASH;CACP,QAToD,EAAE,OAAO,EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EAChF,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -0,0 +1,27 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-team.ts
4
+ const PlanlyGetTeamInput = zod.z.object({ id: zod.z.string().describe("Team ID to retrieve information for.") }).describe("Request model for retrieving detailed information about a specific team.");
5
+ const PlanlyGetTeamOutput = zod.z.object({
6
+ id: zod.z.string().describe("Unique identifier for the team.").nullable().optional(),
7
+ name: zod.z.string().describe("Name of the team.").nullable().optional(),
8
+ role: zod.z.number().int().describe("User's role identifier within the team.").nullable().optional(),
9
+ limits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Team limits object containing usage quotas and restrictions.").nullable().optional(),
10
+ picture: zod.z.string().describe("URL or path to the team's profile picture.").nullable().optional(),
11
+ permissions: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Team permissions object containing access control settings.").nullable().optional(),
12
+ integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Team integrations object containing connected service configurations.").nullable().optional(),
13
+ members_count: zod.z.number().int().describe("Total number of members in the team.").nullable().optional(),
14
+ channels_count: zod.z.number().int().describe("Total number of connected channels for the team.").nullable().optional(),
15
+ disconnected_channels_count: zod.z.number().int().describe("Number of disconnected channels for the team.").nullable().optional()
16
+ }).describe("Response model containing detailed team information including permissions, limits, and integrations.");
17
+ const planlyGetTeam = require_action.action("PLANLY_GET_TEAM", {
18
+ slug: "planly-get-team",
19
+ name: "Get Team",
20
+ description: "Tool to retrieve detailed information about a specific team including permissions, limits, and integrations. Use when you need to access team configuration, member counts, channel status, or integration details.",
21
+ input: PlanlyGetTeamInput,
22
+ output: PlanlyGetTeamOutput
23
+ });
24
+ //#endregion
25
+ exports.planlyGetTeam = planlyGetTeam;
26
+
27
+ //# sourceMappingURL=get-team.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-team.cjs","names":["z","action"],"sources":["../../src/actions/get-team.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyGetTeamInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Team ID to retrieve information for.\"),\n}).describe(\"Request model for retrieving detailed information about a specific team.\");\nexport const PlanlyGetTeamOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the team.\").nullable().optional(),\n name: z.string().describe(\"Name of the team.\").nullable().optional(),\n role: z.number().int().describe(\"User's role identifier within the team.\").nullable().optional(),\n limits: z.record(z.string(), z.unknown()).describe(\"Team limits object containing usage quotas and restrictions.\").nullable().optional(),\n picture: z.string().describe(\"URL or path to the team's profile picture.\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Team permissions object containing access control settings.\").nullable().optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Team integrations object containing connected service configurations.\").nullable().optional(),\n members_count: z.number().int().describe(\"Total number of members in the team.\").nullable().optional(),\n channels_count: z.number().int().describe(\"Total number of connected channels for the team.\").nullable().optional(),\n disconnected_channels_count: z.number().int().describe(\"Number of disconnected channels for the team.\").nullable().optional(),\n}).describe(\"Response model containing detailed team information including permissions, limits, and integrations.\");\n\nexport const planlyGetTeam = action(\"PLANLY_GET_TEAM\", {\n slug: \"planly-get-team\",\n name: \"Get Team\",\n description: \"Tool to retrieve detailed information about a specific team including permissions, limits, and integrations. Use when you need to access team configuration, member counts, channel status, or integration details.\",\n input: PlanlyGetTeamInput,\n output: PlanlyGetTeamOutput,\n});\n"],"mappings":";;;AAI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AAS,CAAC,CAAC,SAAS;CAClH,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,sGAAsG;AAElH,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-team.d.ts
4
+ declare const PlanlyGetTeamInput: z.ZodTypeAny;
5
+ declare const PlanlyGetTeamOutput: z.ZodTypeAny;
6
+ declare const planlyGetTeam: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { planlyGetTeam };
9
+ //# sourceMappingURL=get-team.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-team.d.cts","names":[],"sources":["../../src/actions/get-team.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAEoD;AAAA,cAC1E,mBAAA,EAAqB,CAAA,CAAE,UAW+E;AAAA,cAEtG,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-team.d.ts
4
+ declare const PlanlyGetTeamInput: z.ZodTypeAny;
5
+ declare const PlanlyGetTeamOutput: z.ZodTypeAny;
6
+ declare const planlyGetTeam: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { planlyGetTeam };
9
+ //# sourceMappingURL=get-team.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-team.d.mts","names":[],"sources":["../../src/actions/get-team.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAEoD;AAAA,cAC1E,mBAAA,EAAqB,CAAA,CAAE,UAW+E;AAAA,cAEtG,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,24 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const planlyGetTeam = action("PLANLY_GET_TEAM", {
4
+ slug: "planly-get-team",
5
+ name: "Get Team",
6
+ description: "Tool to retrieve detailed information about a specific team including permissions, limits, and integrations. Use when you need to access team configuration, member counts, channel status, or integration details.",
7
+ input: z.object({ id: z.string().describe("Team ID to retrieve information for.") }).describe("Request model for retrieving detailed information about a specific team."),
8
+ output: z.object({
9
+ id: z.string().describe("Unique identifier for the team.").nullable().optional(),
10
+ name: z.string().describe("Name of the team.").nullable().optional(),
11
+ role: z.number().int().describe("User's role identifier within the team.").nullable().optional(),
12
+ limits: z.record(z.string(), z.unknown()).describe("Team limits object containing usage quotas and restrictions.").nullable().optional(),
13
+ picture: z.string().describe("URL or path to the team's profile picture.").nullable().optional(),
14
+ permissions: z.record(z.string(), z.unknown()).describe("Team permissions object containing access control settings.").nullable().optional(),
15
+ integrations: z.record(z.string(), z.unknown()).describe("Team integrations object containing connected service configurations.").nullable().optional(),
16
+ members_count: z.number().int().describe("Total number of members in the team.").nullable().optional(),
17
+ channels_count: z.number().int().describe("Total number of connected channels for the team.").nullable().optional(),
18
+ disconnected_channels_count: z.number().int().describe("Number of disconnected channels for the team.").nullable().optional()
19
+ }).describe("Response model containing detailed team information including permissions, limits, and integrations.")
20
+ });
21
+ //#endregion
22
+ export { planlyGetTeam };
23
+
24
+ //# sourceMappingURL=get-team.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-team.mjs","names":[],"sources":["../../src/actions/get-team.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyGetTeamInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Team ID to retrieve information for.\"),\n}).describe(\"Request model for retrieving detailed information about a specific team.\");\nexport const PlanlyGetTeamOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the team.\").nullable().optional(),\n name: z.string().describe(\"Name of the team.\").nullable().optional(),\n role: z.number().int().describe(\"User's role identifier within the team.\").nullable().optional(),\n limits: z.record(z.string(), z.unknown()).describe(\"Team limits object containing usage quotas and restrictions.\").nullable().optional(),\n picture: z.string().describe(\"URL or path to the team's profile picture.\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Team permissions object containing access control settings.\").nullable().optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Team integrations object containing connected service configurations.\").nullable().optional(),\n members_count: z.number().int().describe(\"Total number of members in the team.\").nullable().optional(),\n channels_count: z.number().int().describe(\"Total number of connected channels for the team.\").nullable().optional(),\n disconnected_channels_count: z.number().int().describe(\"Number of disconnected channels for the team.\").nullable().optional(),\n}).describe(\"Response model containing detailed team information including permissions, limits, and integrations.\");\n\nexport const planlyGetTeam = action(\"PLANLY_GET_TEAM\", {\n slug: \"planly-get-team\",\n name: \"Get Team\",\n description: \"Tool to retrieve detailed information about a specific team including permissions, limits, and integrations. Use when you need to access team configuration, member counts, channel status, or integration details.\",\n input: PlanlyGetTeamInput,\n output: PlanlyGetTeamOutput,\n});\n"],"mappings":";;AAoBA,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB8C,EAAE,OAAO,EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,0EAkBH;CACP,QAlB+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,6BAA6B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,sGAOF;AACV,CAAC"}
@@ -0,0 +1,33 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/import-media-from-url.ts
4
+ const PlanlyImportMediaFromUrlInput = zod.z.object({
5
+ url: zod.z.string().describe("URL of the media to import. Supported media content types are video/mp4, image/png, image/jpeg, image/webp."),
6
+ teamId: zod.z.string().describe("ID of the team to import media to")
7
+ }).describe("Request model for importing media from a URL.");
8
+ const PlanlyImportMediaFromUrl_ResolutionSchema = zod.z.object({
9
+ width: zod.z.number().int().describe("Width of the media in pixels").nullable().optional(),
10
+ height: zod.z.number().int().describe("Height of the media in pixels").nullable().optional()
11
+ }).describe("Resolution information for the imported media.");
12
+ const PlanlyImportMediaFromUrl_MediaDataSchema = zod.z.object({
13
+ id: zod.z.string().describe("Unique identifier of the imported media").nullable().optional(),
14
+ contentUri: zod.z.string().describe("URI of the imported media content").nullable().optional(),
15
+ resolution: PlanlyImportMediaFromUrl_ResolutionSchema.nullable().optional(),
16
+ contentType: zod.z.number().int().describe("Content type code of the media").nullable().optional(),
17
+ thumbnailUri: zod.z.string().describe("URI of the media thumbnail").nullable().optional()
18
+ }).describe("Media data returned from the import operation.");
19
+ const PlanlyImportMediaFromUrlOutput = zod.z.object({
20
+ data: PlanlyImportMediaFromUrl_MediaDataSchema.nullable().optional(),
21
+ error: zod.z.string().describe("Error message if the operation failed").nullable().optional()
22
+ }).describe("Response model returned after importing media from URL.");
23
+ const planlyImportMediaFromUrl = require_action.action("PLANLY_IMPORT_MEDIA_FROM_URL", {
24
+ slug: "planly-import-media-from-url",
25
+ name: "Import Media From URL",
26
+ description: "Tool to import media from a URL to your team. Use when you need to add external media (video/mp4, image/png, image/jpeg, image/webp) to a team's media library.",
27
+ input: PlanlyImportMediaFromUrlInput,
28
+ output: PlanlyImportMediaFromUrlOutput
29
+ });
30
+ //#endregion
31
+ exports.planlyImportMediaFromUrl = planlyImportMediaFromUrl;
32
+
33
+ //# sourceMappingURL=import-media-from-url.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-media-from-url.cjs","names":["z","action"],"sources":["../../src/actions/import-media-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyImportMediaFromUrlInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the media to import. Supported media content types are video/mp4, image/png, image/jpeg, image/webp.\"),\n teamId: z.string().describe(\"ID of the team to import media to\"),\n}).describe(\"Request model for importing media from a URL.\");\nconst PlanlyImportMediaFromUrl_ResolutionSchema: z.ZodTypeAny = z.object({\n width: z.number().int().describe(\"Width of the media in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Height of the media in pixels\").nullable().optional(),\n}).describe(\"Resolution information for the imported media.\");\nconst PlanlyImportMediaFromUrl_MediaDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the imported media\").nullable().optional(),\n contentUri: z.string().describe(\"URI of the imported media content\").nullable().optional(),\n resolution: PlanlyImportMediaFromUrl_ResolutionSchema.nullable().optional(),\n contentType: z.number().int().describe(\"Content type code of the media\").nullable().optional(),\n thumbnailUri: z.string().describe(\"URI of the media thumbnail\").nullable().optional(),\n}).describe(\"Media data returned from the import operation.\");\nexport const PlanlyImportMediaFromUrlOutput: z.ZodTypeAny = z.object({\n data: PlanlyImportMediaFromUrl_MediaDataSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the operation failed\").nullable().optional(),\n}).describe(\"Response model returned after importing media from URL.\");\n\nexport const planlyImportMediaFromUrl = action(\"PLANLY_IMPORT_MEDIA_FROM_URL\", {\n slug: \"planly-import-media-from-url\",\n name: \"Import Media From URL\",\n description: \"Tool to import media from a URL to your team. Use when you need to add external media (video/mp4, image/png, image/jpeg, image/webp) to a team's media library.\",\n input: PlanlyImportMediaFromUrlInput,\n output: PlanlyImportMediaFromUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CACtI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AACjE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAM,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/import-media-from-url.d.ts
4
+ declare const PlanlyImportMediaFromUrlInput: z.ZodTypeAny;
5
+ declare const PlanlyImportMediaFromUrlOutput: z.ZodTypeAny;
6
+ declare const planlyImportMediaFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { planlyImportMediaFromUrl };
9
+ //# sourceMappingURL=import-media-from-url.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-media-from-url.d.cts","names":[],"sources":["../../src/actions/import-media-from-url.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGc;AAAA,cAY/C,8BAAA,EAAgC,CAAA,CAAE,UAGuB;AAAA,cAEzD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/import-media-from-url.d.ts
4
+ declare const PlanlyImportMediaFromUrlInput: z.ZodTypeAny;
5
+ declare const PlanlyImportMediaFromUrlOutput: z.ZodTypeAny;
6
+ declare const planlyImportMediaFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { planlyImportMediaFromUrl };
9
+ //# sourceMappingURL=import-media-from-url.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-media-from-url.d.mts","names":[],"sources":["../../src/actions/import-media-from-url.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGc;AAAA,cAY/C,8BAAA,EAAgC,CAAA,CAAE,UAGuB;AAAA,cAEzD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,32 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/import-media-from-url.ts
4
+ const PlanlyImportMediaFromUrlInput = z.object({
5
+ url: z.string().describe("URL of the media to import. Supported media content types are video/mp4, image/png, image/jpeg, image/webp."),
6
+ teamId: z.string().describe("ID of the team to import media to")
7
+ }).describe("Request model for importing media from a URL.");
8
+ const PlanlyImportMediaFromUrl_ResolutionSchema = z.object({
9
+ width: z.number().int().describe("Width of the media in pixels").nullable().optional(),
10
+ height: z.number().int().describe("Height of the media in pixels").nullable().optional()
11
+ }).describe("Resolution information for the imported media.");
12
+ const PlanlyImportMediaFromUrl_MediaDataSchema = z.object({
13
+ id: z.string().describe("Unique identifier of the imported media").nullable().optional(),
14
+ contentUri: z.string().describe("URI of the imported media content").nullable().optional(),
15
+ resolution: PlanlyImportMediaFromUrl_ResolutionSchema.nullable().optional(),
16
+ contentType: z.number().int().describe("Content type code of the media").nullable().optional(),
17
+ thumbnailUri: z.string().describe("URI of the media thumbnail").nullable().optional()
18
+ }).describe("Media data returned from the import operation.");
19
+ const planlyImportMediaFromUrl = action("PLANLY_IMPORT_MEDIA_FROM_URL", {
20
+ slug: "planly-import-media-from-url",
21
+ name: "Import Media From URL",
22
+ description: "Tool to import media from a URL to your team. Use when you need to add external media (video/mp4, image/png, image/jpeg, image/webp) to a team's media library.",
23
+ input: PlanlyImportMediaFromUrlInput,
24
+ output: z.object({
25
+ data: PlanlyImportMediaFromUrl_MediaDataSchema.nullable().optional(),
26
+ error: z.string().describe("Error message if the operation failed").nullable().optional()
27
+ }).describe("Response model returned after importing media from URL.")
28
+ });
29
+ //#endregion
30
+ export { planlyImportMediaFromUrl };
31
+
32
+ //# sourceMappingURL=import-media-from-url.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-media-from-url.mjs","names":[],"sources":["../../src/actions/import-media-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyImportMediaFromUrlInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the media to import. Supported media content types are video/mp4, image/png, image/jpeg, image/webp.\"),\n teamId: z.string().describe(\"ID of the team to import media to\"),\n}).describe(\"Request model for importing media from a URL.\");\nconst PlanlyImportMediaFromUrl_ResolutionSchema: z.ZodTypeAny = z.object({\n width: z.number().int().describe(\"Width of the media in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Height of the media in pixels\").nullable().optional(),\n}).describe(\"Resolution information for the imported media.\");\nconst PlanlyImportMediaFromUrl_MediaDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the imported media\").nullable().optional(),\n contentUri: z.string().describe(\"URI of the imported media content\").nullable().optional(),\n resolution: PlanlyImportMediaFromUrl_ResolutionSchema.nullable().optional(),\n contentType: z.number().int().describe(\"Content type code of the media\").nullable().optional(),\n thumbnailUri: z.string().describe(\"URI of the media thumbnail\").nullable().optional(),\n}).describe(\"Media data returned from the import operation.\");\nexport const PlanlyImportMediaFromUrlOutput: z.ZodTypeAny = z.object({\n data: PlanlyImportMediaFromUrl_MediaDataSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the operation failed\").nullable().optional(),\n}).describe(\"Response model returned after importing media from URL.\");\n\nexport const planlyImportMediaFromUrl = action(\"PLANLY_IMPORT_MEDIA_FROM_URL\", {\n slug: \"planly-import-media-from-url\",\n name: \"Import Media From URL\",\n description: \"Tool to import media from a URL to your team. Use when you need to add external media (video/mp4, image/png, image/jpeg, image/webp) to a team's media library.\",\n input: PlanlyImportMediaFromUrlInput,\n output: PlanlyImportMediaFromUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CACtI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AACjE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,4CAA0D,EAAE,OAAO;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAM5D,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0D,EAAE,OAAO;EACnE,MAAM,yCAAyC,SAAS,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
@@ -0,0 +1,31 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_complete_ai_prompt = require("./complete-ai-prompt.cjs");
3
+ const require_create_team = require("./create-team.cjs");
4
+ const require_delete_media = require("./delete-media.cjs");
5
+ const require_delete_team = require("./delete-team.cjs");
6
+ const require_edit_team = require("./edit-team.cjs");
7
+ const require_get_ai_credits = require("./get-ai-credits.cjs");
8
+ const require_get_team = require("./get-team.cjs");
9
+ const require_import_media_from_url = require("./import-media-from-url.cjs");
10
+ const require_list_channels = require("./list-channels.cjs");
11
+ const require_list_media = require("./list-media.cjs");
12
+ const require_list_schedule_groups = require("./list-schedule-groups.cjs");
13
+ const require_list_schedules = require("./list-schedules.cjs");
14
+ const require_list_team_users = require("./list-team-users.cjs");
15
+ const require_list_teams = require("./list-teams.cjs");
16
+ const require_start_media_upload = require("./start-media-upload.cjs");
17
+ exports.planlyCompleteAiPrompt = require_complete_ai_prompt.planlyCompleteAiPrompt;
18
+ exports.planlyCreateTeam = require_create_team.planlyCreateTeam;
19
+ exports.planlyDeleteMedia = require_delete_media.planlyDeleteMedia;
20
+ exports.planlyDeleteTeam = require_delete_team.planlyDeleteTeam;
21
+ exports.planlyEditTeam = require_edit_team.planlyEditTeam;
22
+ exports.planlyGetAiCredits = require_get_ai_credits.planlyGetAiCredits;
23
+ exports.planlyGetTeam = require_get_team.planlyGetTeam;
24
+ exports.planlyImportMediaFromUrl = require_import_media_from_url.planlyImportMediaFromUrl;
25
+ exports.planlyListChannels = require_list_channels.planlyListChannels;
26
+ exports.planlyListMedia = require_list_media.planlyListMedia;
27
+ exports.planlyListScheduleGroups = require_list_schedule_groups.planlyListScheduleGroups;
28
+ exports.planlyListSchedules = require_list_schedules.planlyListSchedules;
29
+ exports.planlyListTeamUsers = require_list_team_users.planlyListTeamUsers;
30
+ exports.planlyListTeams = require_list_teams.planlyListTeams;
31
+ exports.planlyStartMediaUpload = require_start_media_upload.planlyStartMediaUpload;
@@ -0,0 +1,16 @@
1
+ import { planlyCompleteAiPrompt } from "./complete-ai-prompt.cjs";
2
+ import { planlyCreateTeam } from "./create-team.cjs";
3
+ import { planlyDeleteMedia } from "./delete-media.cjs";
4
+ import { planlyDeleteTeam } from "./delete-team.cjs";
5
+ import { planlyEditTeam } from "./edit-team.cjs";
6
+ import { planlyGetAiCredits } from "./get-ai-credits.cjs";
7
+ import { planlyGetTeam } from "./get-team.cjs";
8
+ import { planlyImportMediaFromUrl } from "./import-media-from-url.cjs";
9
+ import { planlyListChannels } from "./list-channels.cjs";
10
+ import { planlyListMedia } from "./list-media.cjs";
11
+ import { planlyListScheduleGroups } from "./list-schedule-groups.cjs";
12
+ import { planlyListSchedules } from "./list-schedules.cjs";
13
+ import { planlyListTeamUsers } from "./list-team-users.cjs";
14
+ import { planlyListTeams } from "./list-teams.cjs";
15
+ import { planlyStartMediaUpload } from "./start-media-upload.cjs";
16
+ export { planlyCompleteAiPrompt, planlyCreateTeam, planlyDeleteMedia, planlyDeleteTeam, planlyEditTeam, planlyGetAiCredits, planlyGetTeam, planlyImportMediaFromUrl, planlyListChannels, planlyListMedia, planlyListScheduleGroups, planlyListSchedules, planlyListTeamUsers, planlyListTeams, planlyStartMediaUpload };
@@ -0,0 +1,16 @@
1
+ import { planlyCompleteAiPrompt } from "./complete-ai-prompt.mjs";
2
+ import { planlyCreateTeam } from "./create-team.mjs";
3
+ import { planlyDeleteMedia } from "./delete-media.mjs";
4
+ import { planlyDeleteTeam } from "./delete-team.mjs";
5
+ import { planlyEditTeam } from "./edit-team.mjs";
6
+ import { planlyGetAiCredits } from "./get-ai-credits.mjs";
7
+ import { planlyGetTeam } from "./get-team.mjs";
8
+ import { planlyImportMediaFromUrl } from "./import-media-from-url.mjs";
9
+ import { planlyListChannels } from "./list-channels.mjs";
10
+ import { planlyListMedia } from "./list-media.mjs";
11
+ import { planlyListScheduleGroups } from "./list-schedule-groups.mjs";
12
+ import { planlyListSchedules } from "./list-schedules.mjs";
13
+ import { planlyListTeamUsers } from "./list-team-users.mjs";
14
+ import { planlyListTeams } from "./list-teams.mjs";
15
+ import { planlyStartMediaUpload } from "./start-media-upload.mjs";
16
+ export { planlyCompleteAiPrompt, planlyCreateTeam, planlyDeleteMedia, planlyDeleteTeam, planlyEditTeam, planlyGetAiCredits, planlyGetTeam, planlyImportMediaFromUrl, planlyListChannels, planlyListMedia, planlyListScheduleGroups, planlyListSchedules, planlyListTeamUsers, planlyListTeams, planlyStartMediaUpload };
@@ -0,0 +1,16 @@
1
+ import { planlyCompleteAiPrompt } from "./complete-ai-prompt.mjs";
2
+ import { planlyCreateTeam } from "./create-team.mjs";
3
+ import { planlyDeleteMedia } from "./delete-media.mjs";
4
+ import { planlyDeleteTeam } from "./delete-team.mjs";
5
+ import { planlyEditTeam } from "./edit-team.mjs";
6
+ import { planlyGetAiCredits } from "./get-ai-credits.mjs";
7
+ import { planlyGetTeam } from "./get-team.mjs";
8
+ import { planlyImportMediaFromUrl } from "./import-media-from-url.mjs";
9
+ import { planlyListChannels } from "./list-channels.mjs";
10
+ import { planlyListMedia } from "./list-media.mjs";
11
+ import { planlyListScheduleGroups } from "./list-schedule-groups.mjs";
12
+ import { planlyListSchedules } from "./list-schedules.mjs";
13
+ import { planlyListTeamUsers } from "./list-team-users.mjs";
14
+ import { planlyListTeams } from "./list-teams.mjs";
15
+ import { planlyStartMediaUpload } from "./start-media-upload.mjs";
16
+ export { planlyCompleteAiPrompt, planlyCreateTeam, planlyDeleteMedia, planlyDeleteTeam, planlyEditTeam, planlyGetAiCredits, planlyGetTeam, planlyImportMediaFromUrl, planlyListChannels, planlyListMedia, planlyListScheduleGroups, planlyListSchedules, planlyListTeamUsers, planlyListTeams, planlyStartMediaUpload };
@@ -0,0 +1,33 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-channels.ts
4
+ const PlanlyListChannelsInput = zod.z.object({ team_id: zod.z.string().describe("ID of the team to retrieve its channels") }).describe("Request model for listing all social media channels connected to a team.");
5
+ const PlanlyListChannels_ChannelResponseSchema = zod.z.object({
6
+ id: zod.z.string().describe("Unique identifier of the channel").nullable().optional(),
7
+ url: zod.z.string().describe("URL of the channel").nullable().optional(),
8
+ name: zod.z.string().describe("Name of the channel").nullable().optional(),
9
+ method: zod.z.string().describe("Connection method used for the channel").nullable().optional(),
10
+ status: zod.z.number().int().describe("Status code of the channel").nullable().optional(),
11
+ picture: zod.z.string().describe("Profile picture URL of the channel").nullable().optional(),
12
+ is_group: zod.z.boolean().describe("Whether the channel is a group").nullable().optional(),
13
+ schedules: zod.z.number().int().describe("Number of schedules associated with the channel").nullable().optional(),
14
+ external_id: zod.z.string().describe("External ID from the social network").nullable().optional(),
15
+ granted_scopes: zod.z.array(zod.z.string()).describe("List of granted permission scopes for the channel").nullable().optional(),
16
+ social_network: zod.z.string().describe("Type of social network (e.g., facebook, twitter, instagram)").nullable().optional(),
17
+ declined_scopes: zod.z.array(zod.z.string()).describe("List of declined permission scopes for the channel").nullable().optional()
18
+ }).describe("Model representing a single social media channel.");
19
+ const PlanlyListChannelsOutput = zod.z.object({
20
+ data: zod.z.array(PlanlyListChannels_ChannelResponseSchema).describe("List of social media channels connected to the team"),
21
+ error: zod.z.unknown().describe("Error information if the request failed").nullable().optional()
22
+ }).describe("Response model containing the list of channels.");
23
+ const planlyListChannels = require_action.action("PLANLY_LIST_CHANNELS", {
24
+ slug: "planly-list-channels",
25
+ name: "List Channels",
26
+ description: "Tool to list all social media channels connected to a team. Use when you need to retrieve channel details including name, picture, social network type, status, and scopes.",
27
+ input: PlanlyListChannelsInput,
28
+ output: PlanlyListChannelsOutput
29
+ });
30
+ //#endregion
31
+ exports.planlyListChannels = planlyListChannels;
32
+
33
+ //# sourceMappingURL=list-channels.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-channels.cjs","names":["z","action"],"sources":["../../src/actions/list-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListChannelsInput: z.ZodTypeAny = z.object({\n team_id: z.string().describe(\"ID of the team to retrieve its channels\"),\n}).describe(\"Request model for listing all social media channels connected to a team.\");\nconst PlanlyListChannels_ChannelResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the channel\").nullable().optional(),\n url: z.string().describe(\"URL of the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n method: z.string().describe(\"Connection method used for the channel\").nullable().optional(),\n status: z.number().int().describe(\"Status code of the channel\").nullable().optional(),\n picture: z.string().describe(\"Profile picture URL of the channel\").nullable().optional(),\n is_group: z.boolean().describe(\"Whether the channel is a group\").nullable().optional(),\n schedules: z.number().int().describe(\"Number of schedules associated with the channel\").nullable().optional(),\n external_id: z.string().describe(\"External ID from the social network\").nullable().optional(),\n granted_scopes: z.array(z.string()).describe(\"List of granted permission scopes for the channel\").nullable().optional(),\n social_network: z.string().describe(\"Type of social network (e.g., facebook, twitter, instagram)\").nullable().optional(),\n declined_scopes: z.array(z.string()).describe(\"List of declined permission scopes for the channel\").nullable().optional(),\n}).describe(\"Model representing a single social media channel.\");\nexport const PlanlyListChannelsOutput: z.ZodTypeAny = z.object({\n data: z.array(PlanlyListChannels_ChannelResponseSchema).describe(\"List of social media channels connected to the team\"),\n error: z.unknown().describe(\"Error information if the request failed\").nullable().optional(),\n}).describe(\"Response model containing the list of channels.\");\n\nexport const planlyListChannels = action(\"PLANLY_LIST_CHANNELS\", {\n slug: \"planly-list-channels\",\n name: \"List Channels\",\n description: \"Tool to list all social media channels connected to a team. Use when you need to retrieve channel details including name, picture, social network type, status, and scopes.\",\n input: PlanlyListChannelsInput,\n output: PlanlyListChannelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACxE,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE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AAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-channels.d.ts
4
+ declare const PlanlyListChannelsInput: z.ZodTypeAny;
5
+ declare const PlanlyListChannelsOutput: z.ZodTypeAny;
6
+ declare const planlyListChannels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { planlyListChannels };
9
+ //# sourceMappingURL=list-channels.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-channels.d.cts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE+C;AAAA,cAe1E,wBAAA,EAA0B,CAAA,CAAE,UAGqB;AAAA,cAEjD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-channels.d.ts
4
+ declare const PlanlyListChannelsInput: z.ZodTypeAny;
5
+ declare const PlanlyListChannelsOutput: z.ZodTypeAny;
6
+ declare const planlyListChannels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { planlyListChannels };
9
+ //# sourceMappingURL=list-channels.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-channels.d.mts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE+C;AAAA,cAe1E,wBAAA,EAA0B,CAAA,CAAE,UAGqB;AAAA,cAEjD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,32 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-channels.ts
4
+ const PlanlyListChannelsInput = z.object({ team_id: z.string().describe("ID of the team to retrieve its channels") }).describe("Request model for listing all social media channels connected to a team.");
5
+ const PlanlyListChannels_ChannelResponseSchema = z.object({
6
+ id: z.string().describe("Unique identifier of the channel").nullable().optional(),
7
+ url: z.string().describe("URL of the channel").nullable().optional(),
8
+ name: z.string().describe("Name of the channel").nullable().optional(),
9
+ method: z.string().describe("Connection method used for the channel").nullable().optional(),
10
+ status: z.number().int().describe("Status code of the channel").nullable().optional(),
11
+ picture: z.string().describe("Profile picture URL of the channel").nullable().optional(),
12
+ is_group: z.boolean().describe("Whether the channel is a group").nullable().optional(),
13
+ schedules: z.number().int().describe("Number of schedules associated with the channel").nullable().optional(),
14
+ external_id: z.string().describe("External ID from the social network").nullable().optional(),
15
+ granted_scopes: z.array(z.string()).describe("List of granted permission scopes for the channel").nullable().optional(),
16
+ social_network: z.string().describe("Type of social network (e.g., facebook, twitter, instagram)").nullable().optional(),
17
+ declined_scopes: z.array(z.string()).describe("List of declined permission scopes for the channel").nullable().optional()
18
+ }).describe("Model representing a single social media channel.");
19
+ const planlyListChannels = action("PLANLY_LIST_CHANNELS", {
20
+ slug: "planly-list-channels",
21
+ name: "List Channels",
22
+ description: "Tool to list all social media channels connected to a team. Use when you need to retrieve channel details including name, picture, social network type, status, and scopes.",
23
+ input: PlanlyListChannelsInput,
24
+ output: z.object({
25
+ data: z.array(PlanlyListChannels_ChannelResponseSchema).describe("List of social media channels connected to the team"),
26
+ error: z.unknown().describe("Error information if the request failed").nullable().optional()
27
+ }).describe("Response model containing the list of channels.")
28
+ });
29
+ //#endregion
30
+ export { planlyListChannels };
31
+
32
+ //# sourceMappingURL=list-channels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-channels.mjs","names":[],"sources":["../../src/actions/list-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListChannelsInput: z.ZodTypeAny = z.object({\n team_id: z.string().describe(\"ID of the team to retrieve its channels\"),\n}).describe(\"Request model for listing all social media channels connected to a team.\");\nconst PlanlyListChannels_ChannelResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the channel\").nullable().optional(),\n url: z.string().describe(\"URL of the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n method: z.string().describe(\"Connection method used for the channel\").nullable().optional(),\n status: z.number().int().describe(\"Status code of the channel\").nullable().optional(),\n picture: z.string().describe(\"Profile picture URL of the channel\").nullable().optional(),\n is_group: z.boolean().describe(\"Whether the channel is a group\").nullable().optional(),\n schedules: z.number().int().describe(\"Number of schedules associated with the channel\").nullable().optional(),\n external_id: z.string().describe(\"External ID from the social network\").nullable().optional(),\n granted_scopes: z.array(z.string()).describe(\"List of granted permission scopes for the channel\").nullable().optional(),\n social_network: z.string().describe(\"Type of social network (e.g., facebook, twitter, instagram)\").nullable().optional(),\n declined_scopes: z.array(z.string()).describe(\"List of declined permission scopes for the channel\").nullable().optional(),\n}).describe(\"Model representing a single social media channel.\");\nexport const PlanlyListChannelsOutput: z.ZodTypeAny = z.object({\n data: z.array(PlanlyListChannels_ChannelResponseSchema).describe(\"List of social media channels connected to the team\"),\n error: z.unknown().describe(\"Error information if the request failed\").nullable().optional(),\n}).describe(\"Response model containing the list of channels.\");\n\nexport const planlyListChannels = action(\"PLANLY_LIST_CHANNELS\", {\n slug: \"planly-list-channels\",\n name: \"List Channels\",\n description: \"Tool to list all social media channels connected to a team. Use when you need to retrieve channel details including name, picture, social network type, status, and scopes.\",\n input: PlanlyListChannelsInput,\n output: PlanlyListChannelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,SAAS,EAAE,OAAO,CAAC,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AAC,CAAC,SAAS,mDAAmD;AAM/D,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,qDAAqD;EACtH,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -0,0 +1,41 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-media.ts
4
+ const PlanlyListMediaInput = zod.z.object({
5
+ team_id: zod.z.string().describe("ID of the team to retrieve media files for"),
6
+ pagination: zod.z.object({
7
+ cursor: zod.z.string().describe("Pagination cursor from the previous response's 'next' field. Use to fetch the next page of results.").optional(),
8
+ order_by: zod.z.array(zod.z.string()).describe("Sorting array with exactly 2 elements: [field, direction]. Field must be 'CreatedAt' or 'ContentLength', direction must be 'asc' or 'desc'. Example: ['CreatedAt', 'desc']").optional(),
9
+ page_size: zod.z.number().int().default(50).describe("Number of media items to return per page. Defaults to 50.").optional()
10
+ }).describe("Pagination configuration for listing media.").optional()
11
+ }).describe("Request model for listing media files.");
12
+ const PlanlyListMedia_MediaItemSchema = zod.z.object({
13
+ id: zod.z.string().describe("Media ID").nullable().optional(),
14
+ url: zod.z.string().describe("Media URL").nullable().optional(),
15
+ team_id: zod.z.string().describe("Team ID").nullable().optional(),
16
+ created_at: zod.z.string().describe("Creation timestamp").nullable().optional(),
17
+ updated_at: zod.z.string().describe("Last update timestamp").nullable().optional(),
18
+ content_type: zod.z.string().describe("Content type of the media").nullable().optional(),
19
+ thumbnail_url: zod.z.string().describe("Thumbnail URL").nullable().optional(),
20
+ content_length: zod.z.number().int().describe("Size of the media in bytes").nullable().optional()
21
+ }).describe("Individual media item information.");
22
+ const PlanlyListMedia_MediaDataSchema = zod.z.object({
23
+ next: zod.z.string().describe("Cursor for fetching the next page of results. Pass this value in the next request's pagination.cursor field.").nullable().optional(),
24
+ rows: zod.z.array(PlanlyListMedia_MediaItemSchema).describe("List of media items").nullable().optional(),
25
+ total_number_of_rows: zod.z.number().int().describe("Total number of media items available").nullable().optional()
26
+ }).describe("Media data response wrapper.");
27
+ const PlanlyListMediaOutput = zod.z.object({
28
+ data: PlanlyListMedia_MediaDataSchema.nullable(),
29
+ error: zod.z.unknown().describe("Error information if request failed").nullable().optional()
30
+ }).describe("Response model for list media action.");
31
+ const planlyListMedia = require_action.action("PLANLY_LIST_MEDIA", {
32
+ slug: "planly-list-media",
33
+ name: "List media files",
34
+ description: "Tool to retrieve a paginated list of media files in a team. Use when you need to fetch media assets, browse uploaded files, or implement media management features with cursor-based pagination.",
35
+ input: PlanlyListMediaInput,
36
+ output: PlanlyListMediaOutput
37
+ });
38
+ //#endregion
39
+ exports.planlyListMedia = planlyListMedia;
40
+
41
+ //# sourceMappingURL=list-media.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-media.cjs","names":["z","action"],"sources":["../../src/actions/list-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListMediaInput: z.ZodTypeAny = z.object({\n team_id: z.string().describe(\"ID of the team to retrieve media files for\"),\n pagination: z.object({\n cursor: z.string().describe(\"Pagination cursor from the previous response's 'next' field. Use to fetch the next page of results.\").optional(),\n order_by: z.array(z.string()).describe(\"Sorting array with exactly 2 elements: [field, direction]. Field must be 'CreatedAt' or 'ContentLength', direction must be 'asc' or 'desc'. Example: ['CreatedAt', 'desc']\").optional(),\n page_size: z.number().int().default(50).describe(\"Number of media items to return per page. Defaults to 50.\").optional(),\n}).describe(\"Pagination configuration for listing media.\").optional(),\n}).describe(\"Request model for listing media files.\");\nconst PlanlyListMedia_MediaItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Media ID\").nullable().optional(),\n url: z.string().describe(\"Media URL\").nullable().optional(),\n team_id: z.string().describe(\"Team ID\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable().optional(),\n content_type: z.string().describe(\"Content type of the media\").nullable().optional(),\n thumbnail_url: z.string().describe(\"Thumbnail URL\").nullable().optional(),\n content_length: z.number().int().describe(\"Size of the media in bytes\").nullable().optional(),\n}).describe(\"Individual media item information.\");\nconst PlanlyListMedia_MediaDataSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"Cursor for fetching the next page of results. Pass this value in the next request's pagination.cursor field.\").nullable().optional(),\n rows: z.array(PlanlyListMedia_MediaItemSchema).describe(\"List of media items\").nullable().optional(),\n total_number_of_rows: z.number().int().describe(\"Total number of media items available\").nullable().optional(),\n}).describe(\"Media data response wrapper.\");\nexport const PlanlyListMediaOutput: z.ZodTypeAny = z.object({\n data: PlanlyListMedia_MediaDataSchema.nullable(),\n error: z.unknown().describe(\"Error information if request failed\").nullable().optional(),\n}).describe(\"Response model for list media action.\");\n\nexport const planlyListMedia = action(\"PLANLY_LIST_MEDIA\", {\n slug: \"planly-list-media\",\n name: \"List media files\",\n description: \"Tool to retrieve a paginated list of media files in a team. Use when you need to fetch media assets, browse uploaded files, or implement media management features with cursor-based pagination.\",\n input: PlanlyListMediaInput,\n output: PlanlyListMediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACzE,YAAYA,IAAAA,EAAE,OAAO;EACrB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC5I,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EAC9N,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,C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CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,gCAAgC,SAAS;CAC/C,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-media.d.ts
4
+ declare const PlanlyListMediaInput: z.ZodTypeAny;
5
+ declare const PlanlyListMediaOutput: z.ZodTypeAny;
6
+ declare const planlyListMedia: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { planlyListMedia };
9
+ //# sourceMappingURL=list-media.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-media.d.cts","names":[],"sources":["../../src/actions/list-media.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAOgB;AAAA,cAgBxC,qBAAA,EAAuB,CAAA,CAAE,UAGc;AAAA,cAEvC,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-media.d.ts
4
+ declare const PlanlyListMediaInput: z.ZodTypeAny;
5
+ declare const PlanlyListMediaOutput: z.ZodTypeAny;
6
+ declare const planlyListMedia: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { planlyListMedia };
9
+ //# sourceMappingURL=list-media.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-media.d.mts","names":[],"sources":["../../src/actions/list-media.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAOgB;AAAA,cAgBxC,qBAAA,EAAuB,CAAA,CAAE,UAGc;AAAA,cAEvC,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,40 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-media.ts
4
+ const PlanlyListMediaInput = z.object({
5
+ team_id: z.string().describe("ID of the team to retrieve media files for"),
6
+ pagination: z.object({
7
+ cursor: z.string().describe("Pagination cursor from the previous response's 'next' field. Use to fetch the next page of results.").optional(),
8
+ order_by: z.array(z.string()).describe("Sorting array with exactly 2 elements: [field, direction]. Field must be 'CreatedAt' or 'ContentLength', direction must be 'asc' or 'desc'. Example: ['CreatedAt', 'desc']").optional(),
9
+ page_size: z.number().int().default(50).describe("Number of media items to return per page. Defaults to 50.").optional()
10
+ }).describe("Pagination configuration for listing media.").optional()
11
+ }).describe("Request model for listing media files.");
12
+ const PlanlyListMedia_MediaItemSchema = z.object({
13
+ id: z.string().describe("Media ID").nullable().optional(),
14
+ url: z.string().describe("Media URL").nullable().optional(),
15
+ team_id: z.string().describe("Team ID").nullable().optional(),
16
+ created_at: z.string().describe("Creation timestamp").nullable().optional(),
17
+ updated_at: z.string().describe("Last update timestamp").nullable().optional(),
18
+ content_type: z.string().describe("Content type of the media").nullable().optional(),
19
+ thumbnail_url: z.string().describe("Thumbnail URL").nullable().optional(),
20
+ content_length: z.number().int().describe("Size of the media in bytes").nullable().optional()
21
+ }).describe("Individual media item information.");
22
+ const PlanlyListMedia_MediaDataSchema = z.object({
23
+ next: z.string().describe("Cursor for fetching the next page of results. Pass this value in the next request's pagination.cursor field.").nullable().optional(),
24
+ rows: z.array(PlanlyListMedia_MediaItemSchema).describe("List of media items").nullable().optional(),
25
+ total_number_of_rows: z.number().int().describe("Total number of media items available").nullable().optional()
26
+ }).describe("Media data response wrapper.");
27
+ const planlyListMedia = action("PLANLY_LIST_MEDIA", {
28
+ slug: "planly-list-media",
29
+ name: "List media files",
30
+ description: "Tool to retrieve a paginated list of media files in a team. Use when you need to fetch media assets, browse uploaded files, or implement media management features with cursor-based pagination.",
31
+ input: PlanlyListMediaInput,
32
+ output: z.object({
33
+ data: PlanlyListMedia_MediaDataSchema.nullable(),
34
+ error: z.unknown().describe("Error information if request failed").nullable().optional()
35
+ }).describe("Response model for list media action.")
36
+ });
37
+ //#endregion
38
+ export { planlyListMedia };
39
+
40
+ //# sourceMappingURL=list-media.mjs.map