@postonus/cli 0.1.27 → 0.1.28

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.
package/dist/index.js CHANGED
@@ -7361,7 +7361,8 @@ var commentsContract = {
7361
7361
  updatePublic: tagged6.route({ method: "PATCH", path: "/share/{token}/comments/{id}", summary: "Edit a comment on a shared post" }).errors(shareAuthedErrors).input(object({ token: string2(), id: Uuid, content: ContentInput })).output(CommentSchema),
7362
7362
  delete: tagged6.route({ method: "DELETE", path: "/comments/{id}", summary: "Delete a comment" }).errors(orgErrors).input(object({ id: Uuid })).output(DeletedSchema),
7363
7363
  deletePublic: tagged6.route({ method: "DELETE", path: "/share/{token}/comments/{id}", summary: "Delete a comment on a shared post" }).errors(shareAuthedErrors).input(object({ token: string2(), id: Uuid })).output(DeletedSchema),
7364
- resolve: tagged6.route({ method: "POST", path: "/comments/{id}/resolve", summary: "Resolve or reopen a comment" }).errors(writableErrors).input(object({ id: Uuid, resolved: boolean2() })).output(CommentSchema)
7364
+ resolve: tagged6.route({ method: "POST", path: "/comments/{id}/resolve", summary: "Resolve or reopen a comment" }).errors(writableErrors).input(object({ id: Uuid, resolved: boolean2() })).output(CommentSchema),
7365
+ resolveMany: tagged6.route({ method: "POST", path: "/comments/resolve-many", summary: "Resolve multiple comments in bulk" }).errors(writableErrors).input(object({ ids: array(Uuid).min(1), resolved: boolean2().default(true) })).output(object({ resolvedCount: number2() }))
7365
7366
  };
7366
7367
 
7367
7368
  // ../../packages/api-contract/src/platforms.ts
@@ -8179,6 +8180,17 @@ var BulkScheduleInWindowsOutputSchema = object({
8179
8180
  placed: array(object({ scheduleId: string2(), scheduledAt: Timestamp })),
8180
8181
  deferred: array(string2())
8181
8182
  });
8183
+ var ApplyReviewCommentsInputSchema = object({
8184
+ id: Uuid,
8185
+ postScheduleId: Uuid.optional(),
8186
+ customInstructions: string2().max(1e3).optional()
8187
+ });
8188
+ var ApplyReviewCommentsOutputSchema = object({
8189
+ originalContent: string2(),
8190
+ revisedContent: string2(),
8191
+ appliedCommentIds: array(string2()),
8192
+ changesSummary: string2()
8193
+ });
8182
8194
  var DeletePostInputSchema = object({ id: Uuid, deleteRemote: boolean2().default(false) });
8183
8195
  var postDomainErrors = {
8184
8196
  POST_QUOTA_EXCEEDED: { status: 403, message: "Post limit reached.", data: ErrorDataSchema },
@@ -8207,7 +8219,12 @@ var postDomainErrors = {
8207
8219
  data: ErrorDataSchema
8208
8220
  },
8209
8221
  NOT_A_DRAFT: { status: 409, message: "That post is not a draft." },
8210
- DRAFT_HAS_NO_CHANNELS: { status: 400, message: "Choose the channels to schedule this draft on." }
8222
+ DRAFT_HAS_NO_CHANNELS: { status: 400, message: "Choose the channels to schedule this draft on." },
8223
+ NO_OPEN_COMMENTS: { status: 400, message: "There are no unresolved comments to apply." },
8224
+ AI_CREDITS_EXHAUSTED: {
8225
+ status: 402,
8226
+ message: "AI credits exhausted. Upgrade your plan or wait for your credits to renew."
8227
+ }
8211
8228
  };
8212
8229
  var tagged13 = base.route({ tags: ["Posts"] });
8213
8230
  var idempotent = tagged13.route({
@@ -8252,7 +8269,12 @@ var postsContract = {
8252
8269
  method: "POST",
8253
8270
  path: "/posts/{id}/channels",
8254
8271
  summary: "Schedule an existing post to more channels"
8255
- }).errors({ ...publishErrors, ...postDomainErrors }).input(AddChannelsInputSchema).output(AddChannelsOutputSchema)
8272
+ }).errors({ ...publishErrors, ...postDomainErrors }).input(AddChannelsInputSchema).output(AddChannelsOutputSchema),
8273
+ applyReviewComments: internal4.route({
8274
+ method: "POST",
8275
+ path: "/posts/{id}/apply-review-comments",
8276
+ summary: "Rewrite post or variant from unresolved review and client comments"
8277
+ }).errors({ ...writableErrors, ...postDomainErrors }).input(ApplyReviewCommentsInputSchema).output(ApplyReviewCommentsOutputSchema)
8256
8278
  };
8257
8279
 
8258
8280
  // ../../packages/api-contract/src/public-calendar.ts
@@ -12231,7 +12253,7 @@ function formatTable(headers, rows) {
12231
12253
  }
12232
12254
 
12233
12255
  // src/version.ts
12234
- var CLI_VERSION = "0.1.27";
12256
+ var CLI_VERSION = "0.1.28";
12235
12257
 
12236
12258
  // src/client.ts
12237
12259
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";