@keystrokehq/planly 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/complete-ai-prompt.cjs +2 -2
  4. package/dist/actions/complete-ai-prompt.cjs.map +1 -1
  5. package/dist/actions/complete-ai-prompt.d.cts +18 -3
  6. package/dist/actions/complete-ai-prompt.d.cts.map +1 -1
  7. package/dist/actions/complete-ai-prompt.d.mts +18 -3
  8. package/dist/actions/complete-ai-prompt.d.mts.map +1 -1
  9. package/dist/actions/complete-ai-prompt.mjs +2 -2
  10. package/dist/actions/complete-ai-prompt.mjs.map +1 -1
  11. package/dist/actions/create-team.cjs +1 -1
  12. package/dist/actions/create-team.cjs.map +1 -1
  13. package/dist/actions/create-team.d.cts +12 -3
  14. package/dist/actions/create-team.d.cts.map +1 -1
  15. package/dist/actions/create-team.d.mts +12 -3
  16. package/dist/actions/create-team.d.mts.map +1 -1
  17. package/dist/actions/create-team.mjs +1 -1
  18. package/dist/actions/create-team.mjs.map +1 -1
  19. package/dist/actions/delete-media.cjs +1 -1
  20. package/dist/actions/delete-media.cjs.map +1 -1
  21. package/dist/actions/delete-media.d.cts +10 -3
  22. package/dist/actions/delete-media.d.cts.map +1 -1
  23. package/dist/actions/delete-media.d.mts +10 -3
  24. package/dist/actions/delete-media.d.mts.map +1 -1
  25. package/dist/actions/delete-media.mjs +1 -1
  26. package/dist/actions/delete-media.mjs.map +1 -1
  27. package/dist/actions/delete-team.cjs +1 -1
  28. package/dist/actions/delete-team.cjs.map +1 -1
  29. package/dist/actions/delete-team.d.cts +9 -3
  30. package/dist/actions/delete-team.d.cts.map +1 -1
  31. package/dist/actions/delete-team.d.mts +9 -3
  32. package/dist/actions/delete-team.d.mts.map +1 -1
  33. package/dist/actions/delete-team.mjs +1 -1
  34. package/dist/actions/delete-team.mjs.map +1 -1
  35. package/dist/actions/edit-team.cjs +2 -2
  36. package/dist/actions/edit-team.cjs.map +1 -1
  37. package/dist/actions/edit-team.d.cts +31 -3
  38. package/dist/actions/edit-team.d.cts.map +1 -1
  39. package/dist/actions/edit-team.d.mts +31 -3
  40. package/dist/actions/edit-team.d.mts.map +1 -1
  41. package/dist/actions/edit-team.mjs +2 -2
  42. package/dist/actions/edit-team.mjs.map +1 -1
  43. package/dist/actions/get-ai-credits.cjs +1 -1
  44. package/dist/actions/get-ai-credits.cjs.map +1 -1
  45. package/dist/actions/get-ai-credits.d.cts +9 -3
  46. package/dist/actions/get-ai-credits.d.cts.map +1 -1
  47. package/dist/actions/get-ai-credits.d.mts +9 -3
  48. package/dist/actions/get-ai-credits.d.mts.map +1 -1
  49. package/dist/actions/get-ai-credits.mjs +1 -1
  50. package/dist/actions/get-ai-credits.mjs.map +1 -1
  51. package/dist/actions/get-team.cjs.map +1 -1
  52. package/dist/actions/get-team.d.cts +18 -3
  53. package/dist/actions/get-team.d.cts.map +1 -1
  54. package/dist/actions/get-team.d.mts +18 -3
  55. package/dist/actions/get-team.d.mts.map +1 -1
  56. package/dist/actions/get-team.mjs.map +1 -1
  57. package/dist/actions/import-media-from-url.cjs.map +1 -1
  58. package/dist/actions/import-media-from-url.d.cts +21 -3
  59. package/dist/actions/import-media-from-url.d.cts.map +1 -1
  60. package/dist/actions/import-media-from-url.d.mts +21 -3
  61. package/dist/actions/import-media-from-url.d.mts.map +1 -1
  62. package/dist/actions/import-media-from-url.mjs.map +1 -1
  63. package/dist/actions/list-channels.cjs.map +1 -1
  64. package/dist/actions/list-channels.d.cts +23 -3
  65. package/dist/actions/list-channels.d.cts.map +1 -1
  66. package/dist/actions/list-channels.d.mts +23 -3
  67. package/dist/actions/list-channels.d.mts.map +1 -1
  68. package/dist/actions/list-channels.mjs.map +1 -1
  69. package/dist/actions/list-media.cjs.map +1 -1
  70. package/dist/actions/list-media.d.cts +33 -3
  71. package/dist/actions/list-media.d.cts.map +1 -1
  72. package/dist/actions/list-media.d.mts +33 -3
  73. package/dist/actions/list-media.d.mts.map +1 -1
  74. package/dist/actions/list-media.mjs.map +1 -1
  75. package/dist/actions/list-schedule-groups.cjs +12 -12
  76. package/dist/actions/list-schedule-groups.cjs.map +1 -1
  77. package/dist/actions/list-schedule-groups.d.cts +93 -3
  78. package/dist/actions/list-schedule-groups.d.cts.map +1 -1
  79. package/dist/actions/list-schedule-groups.d.mts +93 -3
  80. package/dist/actions/list-schedule-groups.d.mts.map +1 -1
  81. package/dist/actions/list-schedule-groups.mjs +12 -12
  82. package/dist/actions/list-schedule-groups.mjs.map +1 -1
  83. package/dist/actions/list-schedules.cjs.map +1 -1
  84. package/dist/actions/list-schedules.d.cts +42 -3
  85. package/dist/actions/list-schedules.d.cts.map +1 -1
  86. package/dist/actions/list-schedules.d.mts +42 -3
  87. package/dist/actions/list-schedules.d.mts.map +1 -1
  88. package/dist/actions/list-schedules.mjs.map +1 -1
  89. package/dist/actions/list-team-users.cjs +4 -4
  90. package/dist/actions/list-team-users.cjs.map +1 -1
  91. package/dist/actions/list-team-users.d.cts +15 -3
  92. package/dist/actions/list-team-users.d.cts.map +1 -1
  93. package/dist/actions/list-team-users.d.mts +15 -3
  94. package/dist/actions/list-team-users.d.mts.map +1 -1
  95. package/dist/actions/list-team-users.mjs +4 -4
  96. package/dist/actions/list-team-users.mjs.map +1 -1
  97. package/dist/actions/list-teams.cjs.map +1 -1
  98. package/dist/actions/list-teams.d.cts +12 -3
  99. package/dist/actions/list-teams.d.cts.map +1 -1
  100. package/dist/actions/list-teams.d.mts +12 -3
  101. package/dist/actions/list-teams.d.mts.map +1 -1
  102. package/dist/actions/list-teams.mjs.map +1 -1
  103. package/dist/actions/start-media-upload.cjs +3 -3
  104. package/dist/actions/start-media-upload.cjs.map +1 -1
  105. package/dist/actions/start-media-upload.d.cts +18 -3
  106. package/dist/actions/start-media-upload.d.cts.map +1 -1
  107. package/dist/actions/start-media-upload.d.mts +18 -3
  108. package/dist/actions/start-media-upload.d.mts.map +1 -1
  109. package/dist/actions/start-media-upload.mjs +3 -3
  110. package/dist/actions/start-media-upload.mjs.map +1 -1
  111. package/dist/catalog.cjs +7 -1
  112. package/dist/catalog.cjs.map +1 -1
  113. package/dist/catalog.d.cts +8 -0
  114. package/dist/catalog.d.mts +8 -0
  115. package/dist/catalog.mjs +7 -1
  116. package/dist/catalog.mjs.map +1 -1
  117. package/package.json +2 -2
@@ -1 +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"}
1
+ {"version":3,"file":"list-media.d.mts","names":[],"sources":["../../src/actions/list-media.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cAuBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-media.mjs","names":[],"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,uBAAqC,EAAE,OAAO;CACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACzE,YAAY,EAAE,OAAO;EACrB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC5I,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EAC9N,WAAW,EAAE,OAAO,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CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAM1C,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,gCAAgC,SAAS;EAC/C,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-media.mjs","names":[],"sources":["../../src/actions/list-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListMediaInput = 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.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.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.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,uBAAuB,EAAE,OAAO;CAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACzE,YAAY,EAAE,OAAO;EACrB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC5I,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EAC9N,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,SAAS,EAAE,OAAO,CAAC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object({
38
38
  }).describe("Pagination options for schedule groups listing.").optional()
39
39
  }).describe("Request model for listing schedule groups with filtering and pagination.");
40
40
  const PlanlyListScheduleGroups_MediaObjectSchema = zod.z.object({
41
- id: zod.z.string().describe("Media file identifier."),
41
+ id: zod.z.string().describe("Media file identifier.").nullable(),
42
42
  options: zod.z.object({}).describe("Platform-specific media configuration options.").nullable().optional()
43
43
  }).describe("Media object attached to a schedule.");
44
44
  const PlanlyListScheduleGroups_ChannelSchema = zod.z.object({
45
- id: zod.z.string().describe("Unique identifier for the channel."),
46
- name: zod.z.string().describe("Name of the social media channel."),
45
+ id: zod.z.string().describe("Unique identifier for the channel.").nullable(),
46
+ name: zod.z.string().describe("Name of the social media channel.").nullable(),
47
47
  method: zod.z.string().describe("Posting method used for the channel.").nullable().optional(),
48
48
  picture: zod.z.string().describe("Profile picture URL for the channel.").nullable().optional(),
49
- social_network: zod.z.string().describe("Social network type (e.g., instagram, twitter, linkedin).")
49
+ social_network: zod.z.string().describe("Social network type (e.g., instagram, twitter, linkedin).").nullable()
50
50
  }).describe("Channel information within a schedule.");
51
51
  const PlanlyListScheduleGroups_ScheduleSchema = zod.z.object({
52
- id: zod.z.string().describe("Unique identifier for the schedule."),
52
+ id: zod.z.string().describe("Unique identifier for the schedule.").nullable(),
53
53
  url: zod.z.string().describe("URL of the published post, if available.").nullable().optional(),
54
54
  media: zod.z.array(PlanlyListScheduleGroups_MediaObjectSchema).describe("Array of media objects attached to the schedule.").nullable().optional(),
55
55
  status: zod.z.number().int().describe("Status code of the schedule (0=Draft, 1=Scheduled, 3=Published, 4=Failed).").nullable().optional(),
@@ -60,21 +60,21 @@ const PlanlyListScheduleGroups_ScheduleSchema = zod.z.object({
60
60
  errorMessage: zod.z.string().describe("Error message if the schedule failed.").nullable().optional()
61
61
  }).describe("Individual schedule information within a schedule group.");
62
62
  const PlanlyListScheduleGroups_ScheduleGroupSchema = zod.z.object({
63
- id: zod.z.string().describe("Unique identifier for the schedule group (UUID)."),
64
- status: zod.z.string().describe("Overall status of the schedule group (scheduled, draft, published, or failed)."),
65
- createdAt: zod.z.string().describe("Creation date and time in ISO 8601 format."),
66
- publishOn: zod.z.string().describe("Scheduled publication date and time in ISO 8601 format."),
63
+ id: zod.z.string().describe("Unique identifier for the schedule group (UUID).").nullable(),
64
+ status: zod.z.string().describe("Overall status of the schedule group (scheduled, draft, published, or failed).").nullable(),
65
+ createdAt: zod.z.string().describe("Creation date and time in ISO 8601 format.").nullable(),
66
+ publishOn: zod.z.string().describe("Scheduled publication date and time in ISO 8601 format.").nullable(),
67
67
  schedules: zod.z.array(PlanlyListScheduleGroups_ScheduleSchema).describe("Array of individual schedules in this group."),
68
- syncEnabled: zod.z.boolean().describe("Whether synchronization is enabled for this schedule group.")
68
+ syncEnabled: zod.z.boolean().describe("Whether synchronization is enabled for this schedule group.").nullable()
69
69
  }).describe("Schedule group containing multiple schedules.");
70
70
  const PlanlyListScheduleGroups_ScheduleGroupDataSchema = zod.z.object({
71
71
  next: zod.z.string().describe("Pagination cursor for retrieving the next page of results. Null if no more pages.").nullable().optional(),
72
72
  rows: zod.z.array(PlanlyListScheduleGroups_ScheduleGroupSchema).describe("Array of schedule group objects."),
73
- totalNumberOfRows: zod.z.number().int().describe("Total number of schedule groups matching the query.")
73
+ totalNumberOfRows: zod.z.number().int().describe("Total number of schedule groups matching the query.").nullable()
74
74
  }).describe("Data container for schedule groups response.");
75
75
  const PlanlyListScheduleGroups_ErrorObjectSchema = zod.z.object({
76
76
  code: zod.z.string().describe("Error code if available.").nullable().optional(),
77
- message: zod.z.string().describe("Error message.")
77
+ message: zod.z.string().describe("Error message.").nullable()
78
78
  }).describe("Error object in API response.");
79
79
  const PlanlyListScheduleGroupsOutput = zod.z.object({
80
80
  data: PlanlyListScheduleGroups_ScheduleGroupDataSchema.nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"list-schedule-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-schedule-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListScheduleGroupsInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"Array of specific schedule group IDs to retrieve. Use when you need to fetch specific schedule groups by their IDs.\").optional(),\n filter: z.object({\n status: z.array(z.union([z.literal(0), z.literal(1), z.literal(3), z.literal(4)]).describe(\"Schedule status enum mapping API integer codes to human-readable names.\")).describe(\"Array of schedule status values to filter by. Use to find schedules in specific states.\").optional(),\n channels: z.array(z.string()).describe(\"Array of channel IDs to filter schedule groups by specific channels. Use to limit results to specific social media channels.\").optional(),\n mediaType: z.array(z.union([z.literal(0), z.literal(1)]).describe(\"Media type enum for filtering schedule groups.\")).describe(\"Array of media types to filter schedule groups. Use to find schedules with specific content types.\").optional(),\n socialNetworks: z.array(z.enum([\"threads\", \"youtube\", \"instagram\", \"tiktok\", \"tiktok_business\", \"twitter\", \"pinterest\", \"facebook\", \"linkedin\", \"mastodon\", \"bluesky\"]).describe(\"Available social network values for filtering.\")).describe(\"Array of social network names to filter schedule groups. Use to limit results to specific social platforms.\").optional(),\n}).describe(\"Filter options for schedule groups.\").optional(),\n teamId: z.string().describe(\"ID of the team to retrieve schedule groups for. Required to scope the request to a specific team.\"),\n dateRange: z.object({\n since: z.string().describe(\"Start date for filtering schedule groups. Use ISO 8601 format (e.g., '2024-01-01T00:00:00Z') or simple date format.\").optional(),\n until: z.string().describe(\"End date for filtering schedule groups. Use ISO 8601 format (e.g., '2024-12-31T23:59:59Z') or simple date format.\").optional(),\n}).describe(\"Date range filter for schedule groups.\").optional(),\n pagination: z.object({\n cursor: z.string().describe(\"A cursor string for pagination from previous response's next field. Use to retrieve the next page of results.\").optional(),\n orderBy: z.array(z.union([z.enum([\"CreatedAt\", \"ContentLength\"]).describe(\"Available fields for ordering results.\"), z.enum([\"asc\", \"desc\"]).describe(\"Order direction for sorting.\")])).describe(\"Array specifying sort order with field and direction. First element is the field (CreatedAt or ContentLength), second is direction (asc or desc).\").optional(),\n pageSize: z.number().int().describe(\"Maximum number of results to return per page. Defaults to 50 if not specified. Maximum allowed is 100.\").optional(),\n}).describe(\"Pagination options for schedule groups listing.\").optional(),\n}).describe(\"Request model for listing schedule groups with filtering and pagination.\");\nconst PlanlyListScheduleGroups_MediaObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Media file identifier.\"),\n options: z.object({}).describe(\"Platform-specific media configuration options.\").nullable().optional(),\n}).describe(\"Media object attached to a schedule.\");\nconst PlanlyListScheduleGroups_ChannelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the channel.\"),\n name: z.string().describe(\"Name of the social media channel.\"),\n method: z.string().describe(\"Posting method used for the channel.\").nullable().optional(),\n picture: z.string().describe(\"Profile picture URL for the channel.\").nullable().optional(),\n social_network: z.string().describe(\"Social network type (e.g., instagram, twitter, linkedin).\"),\n}).describe(\"Channel information within a schedule.\");\nconst PlanlyListScheduleGroups_ScheduleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the schedule.\"),\n url: z.string().describe(\"URL of the published post, if available.\").nullable().optional(),\n media: z.array(PlanlyListScheduleGroups_MediaObjectSchema).describe(\"Array of media objects attached to the schedule.\").nullable().optional(),\n status: z.number().int().describe(\"Status code of the schedule (0=Draft, 1=Scheduled, 3=Published, 4=Failed).\").nullable().optional(),\n channel: PlanlyListScheduleGroups_ChannelSchema.nullable(),\n content: z.string().describe(\"Text content for the scheduled post.\").nullable().optional(),\n options: z.object({}).describe(\"Platform-specific options for the schedule (varies by social network: Instagram, YouTube, TikTok, etc.).\").nullable().optional(),\n externalId: z.string().describe(\"External ID from the social network platform.\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if the schedule failed.\").nullable().optional(),\n}).describe(\"Individual schedule information within a schedule group.\");\nconst PlanlyListScheduleGroups_ScheduleGroupSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the schedule group (UUID).\"),\n status: z.string().describe(\"Overall status of the schedule group (scheduled, draft, published, or failed).\"),\n createdAt: z.string().describe(\"Creation date and time in ISO 8601 format.\"),\n publishOn: z.string().describe(\"Scheduled publication date and time in ISO 8601 format.\"),\n schedules: z.array(PlanlyListScheduleGroups_ScheduleSchema).describe(\"Array of individual schedules in this group.\"),\n syncEnabled: z.boolean().describe(\"Whether synchronization is enabled for this schedule group.\"),\n}).describe(\"Schedule group containing multiple schedules.\");\nconst PlanlyListScheduleGroups_ScheduleGroupDataSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"Pagination cursor for retrieving the next page of results. Null if no more pages.\").nullable().optional(),\n rows: z.array(PlanlyListScheduleGroups_ScheduleGroupSchema).describe(\"Array of schedule group objects.\"),\n totalNumberOfRows: z.number().int().describe(\"Total number of schedule groups matching the query.\"),\n}).describe(\"Data container for schedule groups response.\");\nconst PlanlyListScheduleGroups_ErrorObjectSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code if available.\").nullable().optional(),\n message: z.string().describe(\"Error message.\"),\n}).describe(\"Error object in API response.\");\nexport const PlanlyListScheduleGroupsOutput: z.ZodTypeAny = z.object({\n data: PlanlyListScheduleGroups_ScheduleGroupDataSchema.nullable(),\n error: PlanlyListScheduleGroups_ErrorObjectSchema.nullable().optional(),\n}).describe(\"Response model for listing schedule groups.\");\n\nexport const planlyListScheduleGroups = action(\"PLANLY_LIST_SCHEDULE_GROUPS\", {\n slug: \"planly-list-schedule-groups\",\n name: \"List Schedule Groups\",\n description: \"Tool to retrieve a list of schedule groups for a team with comprehensive filtering and pagination. Use when you need to view scheduled posts, filter by channels, status, social networks, media type, or date range. Returns detailed information about each schedule group including individual schedules and their status.\",\n input: PlanlyListScheduleGroupsInput,\n output: PlanlyListScheduleGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAClK,QAA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,QAAQ,CAAC,CAAC,SAAS,6DAA6D;AACjG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,MAAMA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kCAAkC;CACvG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;AACpG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;AAC/C,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAM,iDAAiD,SAAS;CAChE,OAAO,2CAA2C,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-schedule-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-schedule-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListScheduleGroupsInput = z.object({\n ids: z.array(z.string()).describe(\"Array of specific schedule group IDs to retrieve. Use when you need to fetch specific schedule groups by their IDs.\").optional(),\n filter: z.object({\n status: z.array(z.union([z.literal(0), z.literal(1), z.literal(3), z.literal(4)]).describe(\"Schedule status enum mapping API integer codes to human-readable names.\")).describe(\"Array of schedule status values to filter by. Use to find schedules in specific states.\").optional(),\n channels: z.array(z.string()).describe(\"Array of channel IDs to filter schedule groups by specific channels. Use to limit results to specific social media channels.\").optional(),\n mediaType: z.array(z.union([z.literal(0), z.literal(1)]).describe(\"Media type enum for filtering schedule groups.\")).describe(\"Array of media types to filter schedule groups. Use to find schedules with specific content types.\").optional(),\n socialNetworks: z.array(z.enum([\"threads\", \"youtube\", \"instagram\", \"tiktok\", \"tiktok_business\", \"twitter\", \"pinterest\", \"facebook\", \"linkedin\", \"mastodon\", \"bluesky\"]).describe(\"Available social network values for filtering.\")).describe(\"Array of social network names to filter schedule groups. Use to limit results to specific social platforms.\").optional(),\n}).describe(\"Filter options for schedule groups.\").optional(),\n teamId: z.string().describe(\"ID of the team to retrieve schedule groups for. Required to scope the request to a specific team.\"),\n dateRange: z.object({\n since: z.string().describe(\"Start date for filtering schedule groups. Use ISO 8601 format (e.g., '2024-01-01T00:00:00Z') or simple date format.\").optional(),\n until: z.string().describe(\"End date for filtering schedule groups. Use ISO 8601 format (e.g., '2024-12-31T23:59:59Z') or simple date format.\").optional(),\n}).describe(\"Date range filter for schedule groups.\").optional(),\n pagination: z.object({\n cursor: z.string().describe(\"A cursor string for pagination from previous response's next field. Use to retrieve the next page of results.\").optional(),\n orderBy: z.array(z.union([z.enum([\"CreatedAt\", \"ContentLength\"]).describe(\"Available fields for ordering results.\"), z.enum([\"asc\", \"desc\"]).describe(\"Order direction for sorting.\")])).describe(\"Array specifying sort order with field and direction. First element is the field (CreatedAt or ContentLength), second is direction (asc or desc).\").optional(),\n pageSize: z.number().int().describe(\"Maximum number of results to return per page. Defaults to 50 if not specified. Maximum allowed is 100.\").optional(),\n}).describe(\"Pagination options for schedule groups listing.\").optional(),\n}).describe(\"Request model for listing schedule groups with filtering and pagination.\");\nconst PlanlyListScheduleGroups_MediaObjectSchema = z.object({\n id: z.string().describe(\"Media file identifier.\").nullable(),\n options: z.object({}).describe(\"Platform-specific media configuration options.\").nullable().optional(),\n}).describe(\"Media object attached to a schedule.\");\nconst PlanlyListScheduleGroups_ChannelSchema = z.object({\n id: z.string().describe(\"Unique identifier for the channel.\").nullable(),\n name: z.string().describe(\"Name of the social media channel.\").nullable(),\n method: z.string().describe(\"Posting method used for the channel.\").nullable().optional(),\n picture: z.string().describe(\"Profile picture URL for the channel.\").nullable().optional(),\n social_network: z.string().describe(\"Social network type (e.g., instagram, twitter, linkedin).\").nullable(),\n}).describe(\"Channel information within a schedule.\");\nconst PlanlyListScheduleGroups_ScheduleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the schedule.\").nullable(),\n url: z.string().describe(\"URL of the published post, if available.\").nullable().optional(),\n media: z.array(PlanlyListScheduleGroups_MediaObjectSchema).describe(\"Array of media objects attached to the schedule.\").nullable().optional(),\n status: z.number().int().describe(\"Status code of the schedule (0=Draft, 1=Scheduled, 3=Published, 4=Failed).\").nullable().optional(),\n channel: PlanlyListScheduleGroups_ChannelSchema.nullable(),\n content: z.string().describe(\"Text content for the scheduled post.\").nullable().optional(),\n options: z.object({}).describe(\"Platform-specific options for the schedule (varies by social network: Instagram, YouTube, TikTok, etc.).\").nullable().optional(),\n externalId: z.string().describe(\"External ID from the social network platform.\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if the schedule failed.\").nullable().optional(),\n}).describe(\"Individual schedule information within a schedule group.\");\nconst PlanlyListScheduleGroups_ScheduleGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the schedule group (UUID).\").nullable(),\n status: z.string().describe(\"Overall status of the schedule group (scheduled, draft, published, or failed).\").nullable(),\n createdAt: z.string().describe(\"Creation date and time in ISO 8601 format.\").nullable(),\n publishOn: z.string().describe(\"Scheduled publication date and time in ISO 8601 format.\").nullable(),\n schedules: z.array(PlanlyListScheduleGroups_ScheduleSchema).describe(\"Array of individual schedules in this group.\"),\n syncEnabled: z.boolean().describe(\"Whether synchronization is enabled for this schedule group.\").nullable(),\n}).describe(\"Schedule group containing multiple schedules.\");\nconst PlanlyListScheduleGroups_ScheduleGroupDataSchema = z.object({\n next: z.string().describe(\"Pagination cursor for retrieving the next page of results. Null if no more pages.\").nullable().optional(),\n rows: z.array(PlanlyListScheduleGroups_ScheduleGroupSchema).describe(\"Array of schedule group objects.\"),\n totalNumberOfRows: z.number().int().describe(\"Total number of schedule groups matching the query.\").nullable(),\n}).describe(\"Data container for schedule groups response.\");\nconst PlanlyListScheduleGroups_ErrorObjectSchema = z.object({\n code: z.string().describe(\"Error code if available.\").nullable().optional(),\n message: z.string().describe(\"Error message.\").nullable(),\n}).describe(\"Error object in API response.\");\nexport const PlanlyListScheduleGroupsOutput = z.object({\n data: PlanlyListScheduleGroups_ScheduleGroupDataSchema.nullable(),\n error: PlanlyListScheduleGroups_ErrorObjectSchema.nullable().optional(),\n}).describe(\"Response model for listing schedule groups.\");\n\nexport const planlyListScheduleGroups = action(\"PLANLY_LIST_SCHEDULE_GROUPS\", {\n slug: \"planly-list-schedule-groups\",\n name: \"List Schedule Groups\",\n description: \"Tool to retrieve a list of schedule groups for a team with comprehensive filtering and pagination. Use when you need to view scheduled posts, filter by channels, status, social networks, media type, or date range. Returns detailed information about each schedule group including individual schedules and their status.\",\n input: PlanlyListScheduleGroupsInput,\n output: PlanlyListScheduleGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAClK,QAAQA,IAAAA,EAAE,OAAO;EACjB,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,QAAQ,CAAC;GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC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E,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,MAAMA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kCAAkC;CACvG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,iDAAiD,SAAS;CAChE,OAAO,2CAA2C,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,99 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-schedule-groups.d.ts
4
- declare const PlanlyListScheduleGroupsInput: z.ZodTypeAny;
5
- declare const PlanlyListScheduleGroupsOutput: z.ZodTypeAny;
6
- declare const planlyListScheduleGroups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlanlyListScheduleGroupsInput: z.ZodObject<{
5
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filter: z.ZodOptional<z.ZodObject<{
7
+ status: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>>;
8
+ channels: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ mediaType: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
10
+ socialNetworks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11
+ threads: "threads";
12
+ youtube: "youtube";
13
+ instagram: "instagram";
14
+ tiktok: "tiktok";
15
+ tiktok_business: "tiktok_business";
16
+ twitter: "twitter";
17
+ pinterest: "pinterest";
18
+ facebook: "facebook";
19
+ linkedin: "linkedin";
20
+ mastodon: "mastodon";
21
+ bluesky: "bluesky";
22
+ }>>>;
23
+ }, z.core.$strip>>;
24
+ teamId: z.ZodString;
25
+ dateRange: z.ZodOptional<z.ZodObject<{
26
+ since: z.ZodOptional<z.ZodString>;
27
+ until: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>>;
29
+ pagination: z.ZodOptional<z.ZodObject<{
30
+ cursor: z.ZodOptional<z.ZodString>;
31
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
32
+ CreatedAt: "CreatedAt";
33
+ ContentLength: "ContentLength";
34
+ }>, z.ZodEnum<{
35
+ asc: "asc";
36
+ desc: "desc";
37
+ }>]>>>;
38
+ pageSize: z.ZodOptional<z.ZodNumber>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ declare const PlanlyListScheduleGroupsOutput: z.ZodObject<{
42
+ data: z.ZodNullable<z.ZodObject<{
43
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ rows: z.ZodArray<z.ZodObject<{
45
+ id: z.ZodNullable<z.ZodString>;
46
+ status: z.ZodNullable<z.ZodString>;
47
+ createdAt: z.ZodNullable<z.ZodString>;
48
+ publishOn: z.ZodNullable<z.ZodString>;
49
+ schedules: z.ZodArray<z.ZodObject<{
50
+ id: z.ZodNullable<z.ZodString>;
51
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ media: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
+ id: z.ZodNullable<z.ZodString>;
54
+ options: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
55
+ }, z.core.$strip>>>>;
56
+ status: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
57
+ channel: z.ZodNullable<z.ZodObject<{
58
+ id: z.ZodNullable<z.ZodString>;
59
+ name: z.ZodNullable<z.ZodString>;
60
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ social_network: z.ZodNullable<z.ZodString>;
63
+ }, z.core.$strip>>;
64
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ options: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
66
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ }, z.core.$strip>>;
69
+ syncEnabled: z.ZodNullable<z.ZodBoolean>;
70
+ }, z.core.$strip>>;
71
+ totalNumberOfRows: z.ZodNullable<z.ZodNumber>;
72
+ }, z.core.$strip>>;
73
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
74
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ message: z.ZodNullable<z.ZodString>;
76
+ }, z.core.$strip>>>;
77
+ }, z.core.$strip>;
78
+ declare const planlyListScheduleGroups: import("@keystrokehq/action").WorkflowActionDefinition<{
79
+ teamId: string;
80
+ ids?: string[] | undefined;
81
+ filter?: {
82
+ status?: (0 | 1 | 3 | 4)[] | undefined;
83
+ channels?: string[] | undefined;
84
+ mediaType?: (0 | 1)[] | undefined;
85
+ socialNetworks?: ("threads" | "youtube" | "instagram" | "tiktok" | "tiktok_business" | "twitter" | "pinterest" | "facebook" | "linkedin" | "mastodon" | "bluesky")[] | undefined;
86
+ } | undefined;
87
+ dateRange?: {
88
+ since?: string | undefined;
89
+ until?: string | undefined;
90
+ } | undefined;
91
+ pagination?: {
92
+ cursor?: string | undefined;
93
+ orderBy?: ("CreatedAt" | "ContentLength" | "asc" | "desc")[] | undefined;
94
+ pageSize?: number | undefined;
95
+ } | undefined;
96
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
97
  //#endregion
8
98
  export { planlyListScheduleGroups };
9
99
  //# sourceMappingURL=list-schedule-groups.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-schedule-groups.d.cts","names":[],"sources":["../../src/actions/list-schedule-groups.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAkByC;AAAA,cAwC1E,8BAAA,EAAgC,CAAA,CAAE,UAGW;AAAA,cAE7C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-schedule-groups.d.cts","names":[],"sources":["../../src/actions/list-schedule-groups.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0D7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,99 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-schedule-groups.d.ts
4
- declare const PlanlyListScheduleGroupsInput: z.ZodTypeAny;
5
- declare const PlanlyListScheduleGroupsOutput: z.ZodTypeAny;
6
- declare const planlyListScheduleGroups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlanlyListScheduleGroupsInput: z.ZodObject<{
5
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filter: z.ZodOptional<z.ZodObject<{
7
+ status: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>>;
8
+ channels: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ mediaType: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
10
+ socialNetworks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11
+ threads: "threads";
12
+ youtube: "youtube";
13
+ instagram: "instagram";
14
+ tiktok: "tiktok";
15
+ tiktok_business: "tiktok_business";
16
+ twitter: "twitter";
17
+ pinterest: "pinterest";
18
+ facebook: "facebook";
19
+ linkedin: "linkedin";
20
+ mastodon: "mastodon";
21
+ bluesky: "bluesky";
22
+ }>>>;
23
+ }, z.core.$strip>>;
24
+ teamId: z.ZodString;
25
+ dateRange: z.ZodOptional<z.ZodObject<{
26
+ since: z.ZodOptional<z.ZodString>;
27
+ until: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>>;
29
+ pagination: z.ZodOptional<z.ZodObject<{
30
+ cursor: z.ZodOptional<z.ZodString>;
31
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
32
+ CreatedAt: "CreatedAt";
33
+ ContentLength: "ContentLength";
34
+ }>, z.ZodEnum<{
35
+ asc: "asc";
36
+ desc: "desc";
37
+ }>]>>>;
38
+ pageSize: z.ZodOptional<z.ZodNumber>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ declare const PlanlyListScheduleGroupsOutput: z.ZodObject<{
42
+ data: z.ZodNullable<z.ZodObject<{
43
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ rows: z.ZodArray<z.ZodObject<{
45
+ id: z.ZodNullable<z.ZodString>;
46
+ status: z.ZodNullable<z.ZodString>;
47
+ createdAt: z.ZodNullable<z.ZodString>;
48
+ publishOn: z.ZodNullable<z.ZodString>;
49
+ schedules: z.ZodArray<z.ZodObject<{
50
+ id: z.ZodNullable<z.ZodString>;
51
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ media: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
+ id: z.ZodNullable<z.ZodString>;
54
+ options: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
55
+ }, z.core.$strip>>>>;
56
+ status: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
57
+ channel: z.ZodNullable<z.ZodObject<{
58
+ id: z.ZodNullable<z.ZodString>;
59
+ name: z.ZodNullable<z.ZodString>;
60
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ social_network: z.ZodNullable<z.ZodString>;
63
+ }, z.core.$strip>>;
64
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ options: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
66
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ }, z.core.$strip>>;
69
+ syncEnabled: z.ZodNullable<z.ZodBoolean>;
70
+ }, z.core.$strip>>;
71
+ totalNumberOfRows: z.ZodNullable<z.ZodNumber>;
72
+ }, z.core.$strip>>;
73
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
74
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ message: z.ZodNullable<z.ZodString>;
76
+ }, z.core.$strip>>>;
77
+ }, z.core.$strip>;
78
+ declare const planlyListScheduleGroups: import("@keystrokehq/action").WorkflowActionDefinition<{
79
+ teamId: string;
80
+ ids?: string[] | undefined;
81
+ filter?: {
82
+ status?: (0 | 1 | 3 | 4)[] | undefined;
83
+ channels?: string[] | undefined;
84
+ mediaType?: (0 | 1)[] | undefined;
85
+ socialNetworks?: ("threads" | "youtube" | "instagram" | "tiktok" | "tiktok_business" | "twitter" | "pinterest" | "facebook" | "linkedin" | "mastodon" | "bluesky")[] | undefined;
86
+ } | undefined;
87
+ dateRange?: {
88
+ since?: string | undefined;
89
+ until?: string | undefined;
90
+ } | undefined;
91
+ pagination?: {
92
+ cursor?: string | undefined;
93
+ orderBy?: ("CreatedAt" | "ContentLength" | "asc" | "desc")[] | undefined;
94
+ pageSize?: number | undefined;
95
+ } | undefined;
96
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
97
  //#endregion
8
98
  export { planlyListScheduleGroups };
9
99
  //# sourceMappingURL=list-schedule-groups.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-schedule-groups.d.mts","names":[],"sources":["../../src/actions/list-schedule-groups.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAkByC;AAAA,cAwC1E,8BAAA,EAAgC,CAAA,CAAE,UAGW;AAAA,cAE7C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-schedule-groups.d.mts","names":[],"sources":["../../src/actions/list-schedule-groups.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0D7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
@@ -38,18 +38,18 @@ const PlanlyListScheduleGroupsInput = z.object({
38
38
  }).describe("Pagination options for schedule groups listing.").optional()
39
39
  }).describe("Request model for listing schedule groups with filtering and pagination.");
40
40
  const PlanlyListScheduleGroups_MediaObjectSchema = z.object({
41
- id: z.string().describe("Media file identifier."),
41
+ id: z.string().describe("Media file identifier.").nullable(),
42
42
  options: z.object({}).describe("Platform-specific media configuration options.").nullable().optional()
43
43
  }).describe("Media object attached to a schedule.");
44
44
  const PlanlyListScheduleGroups_ChannelSchema = z.object({
45
- id: z.string().describe("Unique identifier for the channel."),
46
- name: z.string().describe("Name of the social media channel."),
45
+ id: z.string().describe("Unique identifier for the channel.").nullable(),
46
+ name: z.string().describe("Name of the social media channel.").nullable(),
47
47
  method: z.string().describe("Posting method used for the channel.").nullable().optional(),
48
48
  picture: z.string().describe("Profile picture URL for the channel.").nullable().optional(),
49
- social_network: z.string().describe("Social network type (e.g., instagram, twitter, linkedin).")
49
+ social_network: z.string().describe("Social network type (e.g., instagram, twitter, linkedin).").nullable()
50
50
  }).describe("Channel information within a schedule.");
51
51
  const PlanlyListScheduleGroups_ScheduleSchema = z.object({
52
- id: z.string().describe("Unique identifier for the schedule."),
52
+ id: z.string().describe("Unique identifier for the schedule.").nullable(),
53
53
  url: z.string().describe("URL of the published post, if available.").nullable().optional(),
54
54
  media: z.array(PlanlyListScheduleGroups_MediaObjectSchema).describe("Array of media objects attached to the schedule.").nullable().optional(),
55
55
  status: z.number().int().describe("Status code of the schedule (0=Draft, 1=Scheduled, 3=Published, 4=Failed).").nullable().optional(),
@@ -60,21 +60,21 @@ const PlanlyListScheduleGroups_ScheduleSchema = z.object({
60
60
  errorMessage: z.string().describe("Error message if the schedule failed.").nullable().optional()
61
61
  }).describe("Individual schedule information within a schedule group.");
62
62
  const PlanlyListScheduleGroups_ScheduleGroupSchema = z.object({
63
- id: z.string().describe("Unique identifier for the schedule group (UUID)."),
64
- status: z.string().describe("Overall status of the schedule group (scheduled, draft, published, or failed)."),
65
- createdAt: z.string().describe("Creation date and time in ISO 8601 format."),
66
- publishOn: z.string().describe("Scheduled publication date and time in ISO 8601 format."),
63
+ id: z.string().describe("Unique identifier for the schedule group (UUID).").nullable(),
64
+ status: z.string().describe("Overall status of the schedule group (scheduled, draft, published, or failed).").nullable(),
65
+ createdAt: z.string().describe("Creation date and time in ISO 8601 format.").nullable(),
66
+ publishOn: z.string().describe("Scheduled publication date and time in ISO 8601 format.").nullable(),
67
67
  schedules: z.array(PlanlyListScheduleGroups_ScheduleSchema).describe("Array of individual schedules in this group."),
68
- syncEnabled: z.boolean().describe("Whether synchronization is enabled for this schedule group.")
68
+ syncEnabled: z.boolean().describe("Whether synchronization is enabled for this schedule group.").nullable()
69
69
  }).describe("Schedule group containing multiple schedules.");
70
70
  const PlanlyListScheduleGroups_ScheduleGroupDataSchema = z.object({
71
71
  next: z.string().describe("Pagination cursor for retrieving the next page of results. Null if no more pages.").nullable().optional(),
72
72
  rows: z.array(PlanlyListScheduleGroups_ScheduleGroupSchema).describe("Array of schedule group objects."),
73
- totalNumberOfRows: z.number().int().describe("Total number of schedule groups matching the query.")
73
+ totalNumberOfRows: z.number().int().describe("Total number of schedule groups matching the query.").nullable()
74
74
  }).describe("Data container for schedule groups response.");
75
75
  const PlanlyListScheduleGroups_ErrorObjectSchema = z.object({
76
76
  code: z.string().describe("Error code if available.").nullable().optional(),
77
- message: z.string().describe("Error message.")
77
+ message: z.string().describe("Error message.").nullable()
78
78
  }).describe("Error object in API response.");
79
79
  const planlyListScheduleGroups = action("PLANLY_LIST_SCHEDULE_GROUPS", {
80
80
  slug: "planly-list-schedule-groups",
@@ -1 +1 @@
1
- {"version":3,"file":"list-schedule-groups.mjs","names":[],"sources":["../../src/actions/list-schedule-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListScheduleGroupsInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"Array of specific schedule group IDs to retrieve. Use when you need to fetch specific schedule groups by their IDs.\").optional(),\n filter: z.object({\n status: z.array(z.union([z.literal(0), z.literal(1), z.literal(3), z.literal(4)]).describe(\"Schedule status enum mapping API integer codes to human-readable names.\")).describe(\"Array of schedule status values to filter by. Use to find schedules in specific states.\").optional(),\n channels: z.array(z.string()).describe(\"Array of channel IDs to filter schedule groups by specific channels. Use to limit results to specific social media channels.\").optional(),\n mediaType: z.array(z.union([z.literal(0), z.literal(1)]).describe(\"Media type enum for filtering schedule groups.\")).describe(\"Array of media types to filter schedule groups. Use to find schedules with specific content types.\").optional(),\n socialNetworks: z.array(z.enum([\"threads\", \"youtube\", \"instagram\", \"tiktok\", \"tiktok_business\", \"twitter\", \"pinterest\", \"facebook\", \"linkedin\", \"mastodon\", \"bluesky\"]).describe(\"Available social network values for filtering.\")).describe(\"Array of social network names to filter schedule groups. Use to limit results to specific social platforms.\").optional(),\n}).describe(\"Filter options for schedule groups.\").optional(),\n teamId: z.string().describe(\"ID of the team to retrieve schedule groups for. Required to scope the request to a specific team.\"),\n dateRange: z.object({\n since: z.string().describe(\"Start date for filtering schedule groups. Use ISO 8601 format (e.g., '2024-01-01T00:00:00Z') or simple date format.\").optional(),\n until: z.string().describe(\"End date for filtering schedule groups. Use ISO 8601 format (e.g., '2024-12-31T23:59:59Z') or simple date format.\").optional(),\n}).describe(\"Date range filter for schedule groups.\").optional(),\n pagination: z.object({\n cursor: z.string().describe(\"A cursor string for pagination from previous response's next field. Use to retrieve the next page of results.\").optional(),\n orderBy: z.array(z.union([z.enum([\"CreatedAt\", \"ContentLength\"]).describe(\"Available fields for ordering results.\"), z.enum([\"asc\", \"desc\"]).describe(\"Order direction for sorting.\")])).describe(\"Array specifying sort order with field and direction. First element is the field (CreatedAt or ContentLength), second is direction (asc or desc).\").optional(),\n pageSize: z.number().int().describe(\"Maximum number of results to return per page. Defaults to 50 if not specified. Maximum allowed is 100.\").optional(),\n}).describe(\"Pagination options for schedule groups listing.\").optional(),\n}).describe(\"Request model for listing schedule groups with filtering and pagination.\");\nconst PlanlyListScheduleGroups_MediaObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Media file identifier.\"),\n options: z.object({}).describe(\"Platform-specific media configuration options.\").nullable().optional(),\n}).describe(\"Media object attached to a schedule.\");\nconst PlanlyListScheduleGroups_ChannelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the channel.\"),\n name: z.string().describe(\"Name of the social media channel.\"),\n method: z.string().describe(\"Posting method used for the channel.\").nullable().optional(),\n picture: z.string().describe(\"Profile picture URL for the channel.\").nullable().optional(),\n social_network: z.string().describe(\"Social network type (e.g., instagram, twitter, linkedin).\"),\n}).describe(\"Channel information within a schedule.\");\nconst PlanlyListScheduleGroups_ScheduleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the schedule.\"),\n url: z.string().describe(\"URL of the published post, if available.\").nullable().optional(),\n media: z.array(PlanlyListScheduleGroups_MediaObjectSchema).describe(\"Array of media objects attached to the schedule.\").nullable().optional(),\n status: z.number().int().describe(\"Status code of the schedule (0=Draft, 1=Scheduled, 3=Published, 4=Failed).\").nullable().optional(),\n channel: PlanlyListScheduleGroups_ChannelSchema.nullable(),\n content: z.string().describe(\"Text content for the scheduled post.\").nullable().optional(),\n options: z.object({}).describe(\"Platform-specific options for the schedule (varies by social network: Instagram, YouTube, TikTok, etc.).\").nullable().optional(),\n externalId: z.string().describe(\"External ID from the social network platform.\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if the schedule failed.\").nullable().optional(),\n}).describe(\"Individual schedule information within a schedule group.\");\nconst PlanlyListScheduleGroups_ScheduleGroupSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the schedule group (UUID).\"),\n status: z.string().describe(\"Overall status of the schedule group (scheduled, draft, published, or failed).\"),\n createdAt: z.string().describe(\"Creation date and time in ISO 8601 format.\"),\n publishOn: z.string().describe(\"Scheduled publication date and time in ISO 8601 format.\"),\n schedules: z.array(PlanlyListScheduleGroups_ScheduleSchema).describe(\"Array of individual schedules in this group.\"),\n syncEnabled: z.boolean().describe(\"Whether synchronization is enabled for this schedule group.\"),\n}).describe(\"Schedule group containing multiple schedules.\");\nconst PlanlyListScheduleGroups_ScheduleGroupDataSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"Pagination cursor for retrieving the next page of results. Null if no more pages.\").nullable().optional(),\n rows: z.array(PlanlyListScheduleGroups_ScheduleGroupSchema).describe(\"Array of schedule group objects.\"),\n totalNumberOfRows: z.number().int().describe(\"Total number of schedule groups matching the query.\"),\n}).describe(\"Data container for schedule groups response.\");\nconst PlanlyListScheduleGroups_ErrorObjectSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code if available.\").nullable().optional(),\n message: z.string().describe(\"Error message.\"),\n}).describe(\"Error object in API response.\");\nexport const PlanlyListScheduleGroupsOutput: z.ZodTypeAny = z.object({\n data: PlanlyListScheduleGroups_ScheduleGroupDataSchema.nullable(),\n error: PlanlyListScheduleGroups_ErrorObjectSchema.nullable().optional(),\n}).describe(\"Response model for listing schedule groups.\");\n\nexport const planlyListScheduleGroups = action(\"PLANLY_LIST_SCHEDULE_GROUPS\", {\n slug: \"planly-list-schedule-groups\",\n name: \"List Schedule Groups\",\n description: \"Tool to retrieve a list of schedule groups for a team with comprehensive filtering and pagination. Use when you need to view scheduled posts, filter by channels, status, social networks, media type, or date range. Returns detailed information about each schedule group including individual schedules and their status.\",\n input: PlanlyListScheduleGroupsInput,\n output: PlanlyListScheduleGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAClK,QAAQ,EAAE,OAAO;EACjB,QAAQ,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,S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,OAAO;CACP,QAV0D,EAAE,OAAO;EACnE,MAAM,iDAAiD,SAAS;EAChE,OAAO,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-schedule-groups.mjs","names":[],"sources":["../../src/actions/list-schedule-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListScheduleGroupsInput = z.object({\n ids: z.array(z.string()).describe(\"Array of specific schedule group IDs to retrieve. Use when you need to fetch specific schedule groups by their IDs.\").optional(),\n filter: z.object({\n status: z.array(z.union([z.literal(0), z.literal(1), z.literal(3), z.literal(4)]).describe(\"Schedule status enum mapping API integer codes to human-readable names.\")).describe(\"Array of schedule status values to filter by. Use to find schedules in specific states.\").optional(),\n channels: z.array(z.string()).describe(\"Array of channel IDs to filter schedule groups by specific channels. Use to limit results to specific social media channels.\").optional(),\n mediaType: z.array(z.union([z.literal(0), z.literal(1)]).describe(\"Media type enum for filtering schedule groups.\")).describe(\"Array of media types to filter schedule groups. Use to find schedules with specific content types.\").optional(),\n socialNetworks: z.array(z.enum([\"threads\", \"youtube\", \"instagram\", \"tiktok\", \"tiktok_business\", \"twitter\", \"pinterest\", \"facebook\", \"linkedin\", \"mastodon\", \"bluesky\"]).describe(\"Available social network values for filtering.\")).describe(\"Array of social network names to filter schedule groups. Use to limit results to specific social platforms.\").optional(),\n}).describe(\"Filter options for schedule groups.\").optional(),\n teamId: z.string().describe(\"ID of the team to retrieve schedule groups for. Required to scope the request to a specific team.\"),\n dateRange: z.object({\n since: z.string().describe(\"Start date for filtering schedule groups. Use ISO 8601 format (e.g., '2024-01-01T00:00:00Z') or simple date format.\").optional(),\n until: z.string().describe(\"End date for filtering schedule groups. Use ISO 8601 format (e.g., '2024-12-31T23:59:59Z') or simple date format.\").optional(),\n}).describe(\"Date range filter for schedule groups.\").optional(),\n pagination: z.object({\n cursor: z.string().describe(\"A cursor string for pagination from previous response's next field. Use to retrieve the next page of results.\").optional(),\n orderBy: z.array(z.union([z.enum([\"CreatedAt\", \"ContentLength\"]).describe(\"Available fields for ordering results.\"), z.enum([\"asc\", \"desc\"]).describe(\"Order direction for sorting.\")])).describe(\"Array specifying sort order with field and direction. First element is the field (CreatedAt or ContentLength), second is direction (asc or desc).\").optional(),\n pageSize: z.number().int().describe(\"Maximum number of results to return per page. Defaults to 50 if not specified. Maximum allowed is 100.\").optional(),\n}).describe(\"Pagination options for schedule groups listing.\").optional(),\n}).describe(\"Request model for listing schedule groups with filtering and pagination.\");\nconst PlanlyListScheduleGroups_MediaObjectSchema = z.object({\n id: z.string().describe(\"Media file identifier.\").nullable(),\n options: z.object({}).describe(\"Platform-specific media configuration options.\").nullable().optional(),\n}).describe(\"Media object attached to a schedule.\");\nconst PlanlyListScheduleGroups_ChannelSchema = z.object({\n id: z.string().describe(\"Unique identifier for the channel.\").nullable(),\n name: z.string().describe(\"Name of the social media channel.\").nullable(),\n method: z.string().describe(\"Posting method used for the channel.\").nullable().optional(),\n picture: z.string().describe(\"Profile picture URL for the channel.\").nullable().optional(),\n social_network: z.string().describe(\"Social network type (e.g., instagram, twitter, linkedin).\").nullable(),\n}).describe(\"Channel information within a schedule.\");\nconst PlanlyListScheduleGroups_ScheduleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the schedule.\").nullable(),\n url: z.string().describe(\"URL of the published post, if available.\").nullable().optional(),\n media: z.array(PlanlyListScheduleGroups_MediaObjectSchema).describe(\"Array of media objects attached to the schedule.\").nullable().optional(),\n status: z.number().int().describe(\"Status code of the schedule (0=Draft, 1=Scheduled, 3=Published, 4=Failed).\").nullable().optional(),\n channel: PlanlyListScheduleGroups_ChannelSchema.nullable(),\n content: z.string().describe(\"Text content for the scheduled post.\").nullable().optional(),\n options: z.object({}).describe(\"Platform-specific options for the schedule (varies by social network: Instagram, YouTube, TikTok, etc.).\").nullable().optional(),\n externalId: z.string().describe(\"External ID from the social network platform.\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if the schedule failed.\").nullable().optional(),\n}).describe(\"Individual schedule information within a schedule group.\");\nconst PlanlyListScheduleGroups_ScheduleGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the schedule group (UUID).\").nullable(),\n status: z.string().describe(\"Overall status of the schedule group (scheduled, draft, published, or failed).\").nullable(),\n createdAt: z.string().describe(\"Creation date and time in ISO 8601 format.\").nullable(),\n publishOn: z.string().describe(\"Scheduled publication date and time in ISO 8601 format.\").nullable(),\n schedules: z.array(PlanlyListScheduleGroups_ScheduleSchema).describe(\"Array of individual schedules in this group.\"),\n syncEnabled: z.boolean().describe(\"Whether synchronization is enabled for this schedule group.\").nullable(),\n}).describe(\"Schedule group containing multiple schedules.\");\nconst PlanlyListScheduleGroups_ScheduleGroupDataSchema = z.object({\n next: z.string().describe(\"Pagination cursor for retrieving the next page of results. Null if no more pages.\").nullable().optional(),\n rows: z.array(PlanlyListScheduleGroups_ScheduleGroupSchema).describe(\"Array of schedule group objects.\"),\n totalNumberOfRows: z.number().int().describe(\"Total number of schedule groups matching the query.\").nullable(),\n}).describe(\"Data container for schedule groups response.\");\nconst PlanlyListScheduleGroups_ErrorObjectSchema = z.object({\n code: z.string().describe(\"Error code if available.\").nullable().optional(),\n message: z.string().describe(\"Error message.\").nullable(),\n}).describe(\"Error object in API response.\");\nexport const PlanlyListScheduleGroupsOutput = z.object({\n data: PlanlyListScheduleGroups_ScheduleGroupDataSchema.nullable(),\n error: PlanlyListScheduleGroups_ErrorObjectSchema.nullable().optional(),\n}).describe(\"Response model for listing schedule groups.\");\n\nexport const planlyListScheduleGroups = action(\"PLANLY_LIST_SCHEDULE_GROUPS\", {\n slug: \"planly-list-schedule-groups\",\n name: \"List Schedule Groups\",\n description: \"Tool to retrieve a list of schedule groups for a team with comprehensive filtering and pagination. Use when you need to view scheduled posts, filter by channels, status, social networks, media type, or date range. Returns detailed information about each schedule group including individual schedules and their status.\",\n input: PlanlyListScheduleGroupsInput,\n output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,+CAA+C;AAC3D,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,MAAM,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kCAAkC;CACvG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAM3C,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,iDAAiD,SAAS;EAChE,OAAO,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-schedules.cjs","names":["z","action"],"sources":["../../src/actions/list-schedules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListSchedulesInput: z.ZodTypeAny = z.object({\n teamId: z.string().describe(\"ID of the team to retrieve its schedules\"),\n pagination: z.object({\n cursor: z.string().describe(\"Cursor string for pagination from previous response's next field\").optional(),\n orderBy: z.array(z.string()).describe(\"Array specifying sort order: [field, direction]. Field can be CreatedAt or ContentLength, direction can be asc or desc\").optional(),\n pageSize: z.number().int().describe(\"Maximum number of results to return. Defaults to 50\").optional(),\n}).describe(\"Pagination configuration for list schedules request.\").optional(),\n}).describe(\"Request model for listing schedules in a team.\");\nconst PlanlyListSchedules_ChannelInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Channel ID\").nullable().optional(),\n name: z.string().describe(\"Channel name\").nullable().optional(),\n method: z.string().describe(\"Channel method\").nullable().optional(),\n picture: z.string().describe(\"Channel picture URL\").nullable().optional(),\n social_network: z.string().describe(\"Social network type\").nullable().optional(),\n}).describe(\"Channel information within a schedule.\");\nconst PlanlyListSchedules_ScheduleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Schedule ID (UUID)\").nullable().optional(),\n url: z.string().describe(\"Associated URL\").nullable().optional(),\n media: z.array(z.string()).describe(\"Array of media items or URLs\").nullable().optional(),\n status: z.number().int().describe(\"Schedule status code\").nullable().optional(),\n channel: PlanlyListSchedules_ChannelInfoSchema.nullable().optional(),\n content: z.string().describe(\"Schedule content text\").nullable().optional(),\n options: z.object({}).describe(\"Platform-specific settings as key-value pairs\").nullable().optional(),\n created_at: z.string().describe(\"Creation time (ISO 8601 timestamp)\").nullable().optional(),\n publish_on: z.string().describe(\"Scheduled publish time (ISO 8601 timestamp)\").nullable().optional(),\n external_id: z.string().describe(\"External ID reference\").nullable().optional(),\n error_message: z.string().describe(\"Error message if failed\").nullable().optional(),\n content_headline: z.string().describe(\"Content headline\").nullable().optional(),\n}).describe(\"Individual schedule object.\");\nconst PlanlyListSchedules_ScheduleDataSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"Cursor for the next page of results. Null if no more pages\").nullable().optional(),\n rows: z.array(PlanlyListSchedules_ScheduleSchema).describe(\"Array of schedule objects\").nullable().optional(),\n}).describe(\"Data container for schedules list response.\");\nexport const PlanlyListSchedulesOutput: z.ZodTypeAny = z.object({\n data: PlanlyListSchedules_ScheduleDataSchema.nullable(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n}).describe(\"Response model for list schedules endpoint.\");\n\nexport const planlyListSchedules = action(\"PLANLY_LIST_SCHEDULES\", {\n slug: \"planly-list-schedules\",\n name: \"List Schedules\",\n description: \"Tool to retrieve a paginated list of schedules in a specified team. Use when you need to fetch schedules with support for pagination, custom ordering, and configurable page size. Returns schedule data with a cursor for fetching additional pages.\",\n input: PlanlyListSchedulesInput,\n output: PlanlyListSchedulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACtE,YAAYA,IAAAA,EAAE,OAAO;EACrB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACzG,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;EACzK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,wCAAsDA,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,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,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yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,MAAMA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAM,uCAAuC,SAAS;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-schedules.cjs","names":["z","action"],"sources":["../../src/actions/list-schedules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanlyListSchedulesInput = z.object({\n teamId: z.string().describe(\"ID of the team to retrieve its schedules\"),\n pagination: z.object({\n cursor: z.string().describe(\"Cursor string for pagination from previous response's next field\").optional(),\n orderBy: z.array(z.string()).describe(\"Array specifying sort order: [field, direction]. Field can be CreatedAt or ContentLength, direction can be asc or desc\").optional(),\n pageSize: z.number().int().describe(\"Maximum number of results to return. Defaults to 50\").optional(),\n}).describe(\"Pagination configuration for list schedules request.\").optional(),\n}).describe(\"Request model for listing schedules in a team.\");\nconst PlanlyListSchedules_ChannelInfoSchema = z.object({\n id: z.string().describe(\"Channel ID\").nullable().optional(),\n name: z.string().describe(\"Channel name\").nullable().optional(),\n method: z.string().describe(\"Channel method\").nullable().optional(),\n picture: z.string().describe(\"Channel picture URL\").nullable().optional(),\n social_network: z.string().describe(\"Social network type\").nullable().optional(),\n}).describe(\"Channel information within a schedule.\");\nconst PlanlyListSchedules_ScheduleSchema = z.object({\n id: z.string().describe(\"Schedule ID (UUID)\").nullable().optional(),\n url: z.string().describe(\"Associated URL\").nullable().optional(),\n media: z.array(z.string()).describe(\"Array of media items or URLs\").nullable().optional(),\n status: z.number().int().describe(\"Schedule status code\").nullable().optional(),\n channel: PlanlyListSchedules_ChannelInfoSchema.nullable().optional(),\n content: z.string().describe(\"Schedule content text\").nullable().optional(),\n options: z.object({}).describe(\"Platform-specific settings as key-value pairs\").nullable().optional(),\n created_at: z.string().describe(\"Creation time (ISO 8601 timestamp)\").nullable().optional(),\n publish_on: z.string().describe(\"Scheduled publish time (ISO 8601 timestamp)\").nullable().optional(),\n external_id: z.string().describe(\"External ID reference\").nullable().optional(),\n error_message: z.string().describe(\"Error message if failed\").nullable().optional(),\n content_headline: z.string().describe(\"Content headline\").nullable().optional(),\n}).describe(\"Individual schedule object.\");\nconst PlanlyListSchedules_ScheduleDataSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results. Null if no more pages\").nullable().optional(),\n rows: z.array(PlanlyListSchedules_ScheduleSchema).describe(\"Array of schedule objects\").nullable().optional(),\n}).describe(\"Data container for schedules list response.\");\nexport const PlanlyListSchedulesOutput = z.object({\n data: PlanlyListSchedules_ScheduleDataSchema.nullable(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n}).describe(\"Response model for list schedules endpoint.\");\n\nexport const planlyListSchedules = action(\"PLANLY_LIST_SCHEDULES\", {\n slug: \"planly-list-schedules\",\n name: \"List Schedules\",\n description: \"Tool to retrieve a paginated list of schedules in a specified team. Use when you need to fetch schedules with support for pagination, custom ordering, and configurable page size. Returns schedule data with a cursor for fetching additional pages.\",\n input: PlanlyListSchedulesInput,\n output: PlanlyListSchedulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACtE,YA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zD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAM,uCAAuC,SAAS;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,48 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-schedules.d.ts
4
- declare const PlanlyListSchedulesInput: z.ZodTypeAny;
5
- declare const PlanlyListSchedulesOutput: z.ZodTypeAny;
6
- declare const planlyListSchedules: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlanlyListSchedulesInput: z.ZodObject<{
5
+ teamId: z.ZodString;
6
+ pagination: z.ZodOptional<z.ZodObject<{
7
+ cursor: z.ZodOptional<z.ZodString>;
8
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ pageSize: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strip>>;
11
+ }, z.core.$strip>;
12
+ declare const PlanlyListSchedulesOutput: z.ZodObject<{
13
+ data: z.ZodNullable<z.ZodObject<{
14
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ rows: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ media: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
19
+ status: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ social_network: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$strip>>>;
27
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ options: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
29
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ publish_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ content_headline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ }, z.core.$strip>>>>;
35
+ }, z.core.$strip>>;
36
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$strip>;
38
+ declare const planlyListSchedules: import("@keystrokehq/action").WorkflowActionDefinition<{
39
+ teamId: string;
40
+ pagination?: {
41
+ cursor?: string | undefined;
42
+ orderBy?: string[] | undefined;
43
+ pageSize?: number | undefined;
44
+ } | undefined;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
46
  //#endregion
8
47
  export { planlyListSchedules };
9
48
  //# sourceMappingURL=list-schedules.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-schedules.d.cts","names":[],"sources":["../../src/actions/list-schedules.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAOoB;AAAA,cA0BhD,yBAAA,EAA2B,CAAA,CAAE,UAGgB;AAAA,cAE7C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-schedules.d.cts","names":[],"sources":["../../src/actions/list-schedules.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAiCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}