@postonus/cli 0.1.58 → 0.1.59
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 +42 -43
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6919,7 +6919,6 @@ var orgErrors = {
|
|
|
6919
6919
|
NOT_FOUND: { message: "Not found." },
|
|
6920
6920
|
FORBIDDEN: { message: "This action is not allowed." }
|
|
6921
6921
|
};
|
|
6922
|
-
var writableErrors = orgErrors;
|
|
6923
6922
|
var publishErrors = {
|
|
6924
6923
|
...orgErrors,
|
|
6925
6924
|
PAYMENT_REQUIRED: {
|
|
@@ -7504,7 +7503,7 @@ var TrackEventOutputSchema = object({
|
|
|
7504
7503
|
var publicTagged = base.route({ tags: ["Analytics"] });
|
|
7505
7504
|
var internal3 = publicTagged.meta({ internal: true });
|
|
7506
7505
|
var analyticsTakeawayErrors = {
|
|
7507
|
-
...
|
|
7506
|
+
...orgErrors,
|
|
7508
7507
|
AI_CREDITS_EXHAUSTED: {
|
|
7509
7508
|
status: 402,
|
|
7510
7509
|
message: "AI credits exhausted. Upgrade your plan or wait for your credits to renew."
|
|
@@ -7555,7 +7554,7 @@ var tagged2 = base.route({ tags: ["ApiKeys"] }).meta({ internal: true });
|
|
|
7555
7554
|
var apiKeysContract = {
|
|
7556
7555
|
list: tagged2.route({ method: "GET", path: "/api-keys", summary: "List the caller\u2019s API keys" }).errors(orgErrors).output(array(ApiKeySchema)),
|
|
7557
7556
|
usage: tagged2.route({ method: "GET", path: "/api-keys/usage", summary: "Get the org-wide API key cap usage" }).errors(orgErrors).output(ApiKeyUsageSchema),
|
|
7558
|
-
create: tagged2.route({ method: "POST", path: "/api-keys", summary: "Create an API key", successStatus: 201 }).errors(
|
|
7557
|
+
create: tagged2.route({ method: "POST", path: "/api-keys", summary: "Create an API key", successStatus: 201 }).errors(orgErrors).input(CreateApiKeyInputSchema).output(CreatedApiKeySchema),
|
|
7559
7558
|
revoke: tagged2.route({ method: "DELETE", path: "/api-keys/{id}", summary: "Revoke an API key" }).errors(orgErrors).input(IdPathParam).output(object({ id: string2() }))
|
|
7560
7559
|
};
|
|
7561
7560
|
|
|
@@ -7833,7 +7832,7 @@ var ListClipsOutputSchema = object({
|
|
|
7833
7832
|
items: array(ClipJobSchema)
|
|
7834
7833
|
});
|
|
7835
7834
|
var clipErrors = {
|
|
7836
|
-
...
|
|
7835
|
+
...orgErrors,
|
|
7837
7836
|
CONFLICT: { status: 409, message: "A clip job is already running for this workspace." },
|
|
7838
7837
|
AI_CREDITS_EXHAUSTED: {
|
|
7839
7838
|
status: 403,
|
|
@@ -7879,19 +7878,19 @@ var tagged6 = base.route({ tags: ["Comments"] }).meta({ internal: true });
|
|
|
7879
7878
|
var commentsContract = {
|
|
7880
7879
|
list: tagged6.route({ method: "GET", path: "/posts/{postId}/comments", summary: "List a post's comments" }).errors(orgErrors).input(object({ postId: Uuid, postScheduleId: CommentScheduleFilter })).output(array(CommentWithAuthorSchema)),
|
|
7881
7880
|
listPublic: tagged6.route({ method: "GET", path: "/share/{token}/comments", summary: "List a shared post's comments" }).errors(shareErrors).input(object({ token: string2(), postScheduleId: CommentScheduleFilter })).output(array(CommentWithAuthorSchema)),
|
|
7882
|
-
create: tagged6.route({ method: "POST", path: "/posts/{postId}/comments", summary: "Add a comment", successStatus: 201 }).errors(
|
|
7881
|
+
create: tagged6.route({ method: "POST", path: "/posts/{postId}/comments", summary: "Add a comment", successStatus: 201 }).errors(orgErrors).input(object({ postId: Uuid, postScheduleId: Uuid.nullable().optional(), content: ContentInput })).output(CommentWithAuthorSchema),
|
|
7883
7882
|
createPublic: tagged6.route({
|
|
7884
7883
|
method: "POST",
|
|
7885
7884
|
path: "/share/{token}/comments",
|
|
7886
7885
|
summary: "Add a comment on a shared post",
|
|
7887
7886
|
successStatus: 201
|
|
7888
7887
|
}).errors(shareAuthedErrors).input(object({ token: string2(), postScheduleId: Uuid.nullable().optional(), content: ContentInput })).output(CommentWithAuthorSchema),
|
|
7889
|
-
update: tagged6.route({ method: "PATCH", path: "/comments/{id}", summary: "Edit a comment" }).errors(
|
|
7888
|
+
update: tagged6.route({ method: "PATCH", path: "/comments/{id}", summary: "Edit a comment" }).errors(orgErrors).input(object({ id: Uuid, content: ContentInput })).output(CommentSchema),
|
|
7890
7889
|
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),
|
|
7891
7890
|
delete: tagged6.route({ method: "DELETE", path: "/comments/{id}", summary: "Delete a comment" }).errors(orgErrors).input(object({ id: Uuid })).output(DeletedSchema),
|
|
7892
7891
|
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),
|
|
7893
|
-
resolve: tagged6.route({ method: "POST", path: "/comments/{id}/resolve", summary: "Resolve or reopen a comment" }).errors(
|
|
7894
|
-
resolveMany: tagged6.route({ method: "POST", path: "/comments/resolve-many", summary: "Resolve multiple comments in bulk" }).errors(
|
|
7892
|
+
resolve: tagged6.route({ method: "POST", path: "/comments/{id}/resolve", summary: "Resolve or reopen a comment" }).errors(orgErrors).input(object({ id: Uuid, resolved: boolean2() })).output(CommentSchema),
|
|
7893
|
+
resolveMany: tagged6.route({ method: "POST", path: "/comments/resolve-many", summary: "Resolve multiple comments in bulk" }).errors(orgErrors).input(object({ ids: array(Uuid).min(1), resolved: boolean2().default(true) })).output(object({ resolvedCount: number2() }))
|
|
7895
7894
|
};
|
|
7896
7895
|
|
|
7897
7896
|
// ../../packages/api-contract/src/platforms.ts
|
|
@@ -8060,18 +8059,18 @@ var integrationsContract = {
|
|
|
8060
8059
|
summary: "Scheduled posts whose channel cannot currently publish"
|
|
8061
8060
|
}).errors(orgErrors).output(array(AtRiskScheduleSchema)),
|
|
8062
8061
|
listPendingSelection: internal5.route({ method: "GET", path: "/integrations/pending-selection", summary: "Channels stuck at the account picker" }).errors(orgErrors).output(array(PendingSelectionIntegrationSchema)),
|
|
8063
|
-
connectIntegration: tagged8.route({ method: "POST", path: "/integrations/connect", summary: "Start an OAuth connect" }).errors(
|
|
8062
|
+
connectIntegration: tagged8.route({ method: "POST", path: "/integrations/connect", summary: "Start an OAuth connect" }).errors(orgErrors).input(ConnectIntegrationInputSchema).output(object({ redirectUrl: string2() })),
|
|
8064
8063
|
connectCredentialIntegration: internal5.route({
|
|
8065
8064
|
method: "POST",
|
|
8066
8065
|
path: "/integrations/connect-with-credentials",
|
|
8067
8066
|
summary: "Connect a platform with an app password or bot token"
|
|
8068
|
-
}).errors(
|
|
8067
|
+
}).errors(orgErrors).input(ConnectCredentialIntegrationInputSchema).output(ConnectCredentialResultSchema),
|
|
8069
8068
|
listConnectAccounts: internal5.route({ method: "GET", path: "/integrations/{id}/accounts", summary: "Accounts a pending connect may select" }).errors(orgErrors).input(IdPathParam).output(array(SelectableAccountSchema)),
|
|
8070
|
-
finalizeConnect: internal5.route({ method: "POST", path: "/integrations/{id}/select", summary: "Finalize a picked account" }).errors(
|
|
8069
|
+
finalizeConnect: internal5.route({ method: "POST", path: "/integrations/{id}/select", summary: "Finalize a picked account" }).errors(orgErrors).input(FinalizeConnectInputSchema).output(FinalizeConnectResultSchema),
|
|
8071
8070
|
disconnectIntegration: internal5.route({ method: "DELETE", path: "/integrations/{id}", summary: "Disconnect an integration" }).errors(orgErrors).input(IdPathParam).output(DisconnectResultSchema),
|
|
8072
8071
|
disconnectImpact: internal5.route({ method: "GET", path: "/integrations/{id}/disconnect-impact", summary: "What a disconnect would cost" }).errors(orgErrors).input(IdPathParam).output(DisconnectImpactSchema),
|
|
8073
|
-
cancelPendingSelection: internal5.route({ method: "POST", path: "/integrations/{id}/cancel-selection", summary: "Abandon a half-finished connect" }).errors(
|
|
8074
|
-
refreshIntegration: internal5.route({ method: "POST", path: "/integrations/{id}/refresh", summary: "Manually refresh a credential" }).errors(
|
|
8072
|
+
cancelPendingSelection: internal5.route({ method: "POST", path: "/integrations/{id}/cancel-selection", summary: "Abandon a half-finished connect" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema),
|
|
8073
|
+
refreshIntegration: internal5.route({ method: "POST", path: "/integrations/{id}/refresh", summary: "Manually refresh a credential" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
|
|
8075
8074
|
};
|
|
8076
8075
|
|
|
8077
8076
|
// ../../packages/api-contract/src/upload.ts
|
|
@@ -8093,7 +8092,7 @@ var MediaVariantsSchema = object({
|
|
|
8093
8092
|
var MediaVariantsStatusSchema = _enum(["pending", "processing", "ready", "failed", "not_applicable"]);
|
|
8094
8093
|
var MediaTypeSchema = _enum(["IMAGE", "GIF", "VIDEO"]);
|
|
8095
8094
|
var uploadErrors = {
|
|
8096
|
-
...
|
|
8095
|
+
...orgErrors,
|
|
8097
8096
|
CONFLICT: { message: "Upload is not in a state that allows this operation." },
|
|
8098
8097
|
PAYLOAD_TOO_LARGE: { status: 413, message: "File is too large." }
|
|
8099
8098
|
};
|
|
@@ -8242,19 +8241,19 @@ var DeleteMediaOutputSchema = object({
|
|
|
8242
8241
|
var tagged10 = base.route({ tags: ["Media library"] });
|
|
8243
8242
|
var internal6 = tagged10.meta({ internal: true });
|
|
8244
8243
|
var folderErrors = {
|
|
8245
|
-
...
|
|
8244
|
+
...orgErrors,
|
|
8246
8245
|
FOLDER_CYCLE: { status: 422, message: "A folder cannot be moved inside itself." }
|
|
8247
8246
|
};
|
|
8248
8247
|
var mediaContract = {
|
|
8249
8248
|
list: internal6.route({ method: "GET", path: "/media", summary: "List library media" }).errors(orgErrors).input(ListMediaInputSchema).output(ListMediaOutputSchema),
|
|
8250
8249
|
listFolders: internal6.route({ method: "GET", path: "/media/folders", summary: "List media folders with counts" }).errors(orgErrors).output(ListMediaFoldersOutputSchema),
|
|
8251
|
-
createFolder: internal6.route({ method: "POST", path: "/media/folders", summary: "Create a media folder", successStatus: 201 }).errors({ ...
|
|
8250
|
+
createFolder: internal6.route({ method: "POST", path: "/media/folders", summary: "Create a media folder", successStatus: 201 }).errors({ ...orgErrors, CONFLICT: { message: "A folder with that name already exists here." } }).input(CreateMediaFolderInputSchema).output(MediaFolderSchema),
|
|
8252
8251
|
updateFolder: internal6.route({ method: "PATCH", path: "/media/folders/{id}", summary: "Rename or move a media folder" }).errors({ ...folderErrors, CONFLICT: { message: "A folder with that name already exists here." } }).input(UpdateMediaFolderInputSchema).output(MediaFolderSchema),
|
|
8253
|
-
deleteFolder: internal6.route({ method: "DELETE", path: "/media/folders/{id}", summary: "Delete a media folder" }).errors(
|
|
8252
|
+
deleteFolder: internal6.route({ method: "DELETE", path: "/media/folders/{id}", summary: "Delete a media folder" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema),
|
|
8254
8253
|
getById: internal6.route({ method: "GET", path: "/media/{id}", summary: "Get a library asset" }).errors(orgErrors).input(IdPathParam).output(LibraryMediaSchema),
|
|
8255
|
-
update: internal6.route({ method: "PATCH", path: "/media/{id}", summary: "Rename or refile a library asset" }).errors(
|
|
8256
|
-
move: internal6.route({ method: "POST", path: "/media/move", summary: "File assets into a folder" }).errors(
|
|
8257
|
-
delete: internal6.route({ method: "POST", path: "/media/delete", summary: "Delete library assets" }).errors(
|
|
8254
|
+
update: internal6.route({ method: "PATCH", path: "/media/{id}", summary: "Rename or refile a library asset" }).errors(orgErrors).input(UpdateMediaInputSchema).output(LibraryMediaSchema),
|
|
8255
|
+
move: internal6.route({ method: "POST", path: "/media/move", summary: "File assets into a folder" }).errors(orgErrors).input(MoveMediaInputSchema).output(object({ movedIds: array(Uuid) })),
|
|
8256
|
+
delete: internal6.route({ method: "POST", path: "/media/delete", summary: "Delete library assets" }).errors(orgErrors).input(DeleteMediaInputSchema).output(DeleteMediaOutputSchema)
|
|
8258
8257
|
};
|
|
8259
8258
|
|
|
8260
8259
|
// ../../packages/api-contract/src/media-sources.ts
|
|
@@ -8319,7 +8318,7 @@ var unsplashErrors = {
|
|
|
8319
8318
|
NOT_CONFIGURED: { status: 412, message: "Unsplash integration is not configured on the server." }
|
|
8320
8319
|
};
|
|
8321
8320
|
var enableSourceErrors = {
|
|
8322
|
-
...
|
|
8321
|
+
...orgErrors,
|
|
8323
8322
|
NOT_CONFIGURED: { status: 412, message: "Source is not configured on this deployment." }
|
|
8324
8323
|
};
|
|
8325
8324
|
var tagged11 = base.route({ tags: ["Media sources"] }).meta({ internal: true });
|
|
@@ -8330,9 +8329,9 @@ var mediaSourcesContract = {
|
|
|
8330
8329
|
method: "POST",
|
|
8331
8330
|
path: "/media-sources/{sourceId}/disable",
|
|
8332
8331
|
summary: "Disable a media source for this org"
|
|
8333
|
-
}).errors(
|
|
8332
|
+
}).errors(orgErrors).input(SourceIdInputSchema).output(DeletedSchema),
|
|
8334
8333
|
suggestSource: tagged11.route({ method: "POST", path: "/media-sources/suggestions", summary: "Suggest a media source not yet supported" }).errors(orgErrors).input(SuggestSourceInputSchema).output(DeletedSchema),
|
|
8335
|
-
importAsset: tagged11.route({ method: "POST", path: "/media-sources/import", summary: "Import an asset picked from a media source" }).errors(
|
|
8334
|
+
importAsset: tagged11.route({ method: "POST", path: "/media-sources/import", summary: "Import an asset picked from a media source" }).errors(orgErrors).input(ImportAssetInputSchema).output(ImportAssetOutputSchema),
|
|
8336
8335
|
unsplashTrending: tagged11.route({ method: "GET", path: "/media-sources/unsplash/trending", summary: "Unsplash curated/trending photos" }).errors(unsplashErrors).input(UnsplashPageInputSchema).output(UnsplashTrendingOutputSchema),
|
|
8337
8336
|
unsplashSearch: tagged11.route({ method: "GET", path: "/media-sources/unsplash/search", summary: "Search Unsplash photos" }).errors(unsplashErrors).input(UnsplashSearchInputSchema).output(UnsplashSearchOutputSchema)
|
|
8338
8337
|
};
|
|
@@ -8740,26 +8739,26 @@ var postsContract = {
|
|
|
8740
8739
|
counts: internal7.route({ method: "GET", path: "/posts/counts", summary: "Count posts per status" }).errors(orgErrors).input(CountPostsInputSchema).output(CountPostsOutputSchema),
|
|
8741
8740
|
getById: tagged13.route({ method: "GET", path: "/posts/{id}", summary: "Get a post" }).errors(orgErrors).input(IdPathParam).output(PostWithRelationsSchema),
|
|
8742
8741
|
mediaById: internal7.route({ method: "GET", path: "/posts/media/{id}", summary: "Get post media metadata" }).errors(orgErrors).input(IdPathParam).output(MediaMetadataSchema),
|
|
8743
|
-
create: idempotent.route({ method: "POST", path: "/posts", summary: "Create posts in bulk", successStatus: 201 }).errors({ ...
|
|
8744
|
-
update: idempotent.route({ method: "PATCH", path: "/posts/{id}", summary: "Update a post" }).errors({ ...
|
|
8745
|
-
scheduleDraft: idempotent.route({ method: "POST", path: "/posts/{id}/schedule", summary: "Schedule a draft" }).errors({ ...
|
|
8746
|
-
delete: idempotent.route({ method: "DELETE", path: "/posts/{id}", summary: "Delete a post" }).errors({ ...
|
|
8742
|
+
create: idempotent.route({ method: "POST", path: "/posts", summary: "Create posts in bulk", successStatus: 201 }).errors({ ...orgErrors, ...postDomainErrors }).input(CreatePostsInputSchema).output(CreatePostsOutputSchema),
|
|
8743
|
+
update: idempotent.route({ method: "PATCH", path: "/posts/{id}", summary: "Update a post" }).errors({ ...orgErrors, ...postDomainErrors }).input(UpdatePostInputSchema).output(PostStateSchema),
|
|
8744
|
+
scheduleDraft: idempotent.route({ method: "POST", path: "/posts/{id}/schedule", summary: "Schedule a draft" }).errors({ ...orgErrors, ...postDomainErrors }).input(ScheduleDraftInputSchema).output(PostStateSchema),
|
|
8745
|
+
delete: idempotent.route({ method: "DELETE", path: "/posts/{id}", summary: "Delete a post" }).errors({ ...orgErrors, ...postDomainErrors }).input(DeletePostInputSchema).output(DeletePostOutputSchema),
|
|
8747
8746
|
retrySchedule: idempotent.route({ method: "POST", path: "/posts/schedules/{scheduleId}/retry", summary: "Retry a failed schedule" }).errors({ ...publishErrors, ...postDomainErrors }).input(RetryScheduleInputSchema).output(PostStateSchema),
|
|
8748
8747
|
rescheduleSchedule: idempotent.route({
|
|
8749
8748
|
method: "POST",
|
|
8750
8749
|
path: "/posts/schedules/{scheduleId}/reschedule",
|
|
8751
8750
|
summary: "Move a schedule to a new time"
|
|
8752
|
-
}).errors({ ...
|
|
8751
|
+
}).errors({ ...orgErrors, ...postDomainErrors }).input(RescheduleInputSchema).output(PostStateSchema),
|
|
8753
8752
|
markPosted: idempotent.route({
|
|
8754
8753
|
method: "POST",
|
|
8755
8754
|
path: "/posts/schedules/{scheduleId}/mark-posted",
|
|
8756
8755
|
summary: "Mark a ready schedule as posted"
|
|
8757
|
-
}).errors({ ...
|
|
8756
|
+
}).errors({ ...orgErrors, ...postDomainErrors }).input(object({ scheduleId: Uuid })).output(PostStateSchema),
|
|
8758
8757
|
bulkScheduleInWindows: internal7.route({
|
|
8759
8758
|
method: "POST",
|
|
8760
8759
|
path: "/posts/schedules/bulk-schedule-windows",
|
|
8761
8760
|
summary: "Spread schedules across optimal windows"
|
|
8762
|
-
}).errors({ ...
|
|
8761
|
+
}).errors({ ...orgErrors, ...postDomainErrors }).input(BulkScheduleInWindowsInputSchema).output(BulkScheduleInWindowsOutputSchema),
|
|
8763
8762
|
addChannels: internal7.route({
|
|
8764
8763
|
method: "POST",
|
|
8765
8764
|
path: "/posts/{id}/channels",
|
|
@@ -8769,7 +8768,7 @@ var postsContract = {
|
|
|
8769
8768
|
method: "POST",
|
|
8770
8769
|
path: "/posts/{id}/apply-review-comments",
|
|
8771
8770
|
summary: "Rewrite post or variant from unresolved review and client comments"
|
|
8772
|
-
}).errors({ ...
|
|
8771
|
+
}).errors({ ...orgErrors, ...postDomainErrors }).input(ApplyReviewCommentsInputSchema).output(ApplyReviewCommentsOutputSchema)
|
|
8773
8772
|
};
|
|
8774
8773
|
|
|
8775
8774
|
// ../../packages/api-contract/src/public-calendar.ts
|
|
@@ -9206,20 +9205,20 @@ var sourcesContract = {
|
|
|
9206
9205
|
})
|
|
9207
9206
|
),
|
|
9208
9207
|
delete: tagged14.route({ method: "DELETE", path: "/repurpose/sources/{id}", summary: "Delete a source post" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema),
|
|
9209
|
-
update: tagged14.route({ method: "PATCH", path: "/repurpose/sources/{id}", summary: "Edit a source post's raw content" }).errors(
|
|
9208
|
+
update: tagged14.route({ method: "PATCH", path: "/repurpose/sources/{id}", summary: "Edit a source post's raw content" }).errors(orgErrors).input(object({ id: Uuid, rawContent: string2().min(1) })).output(object({ success: literal(true), id: Uuid })),
|
|
9210
9209
|
createDraft: tagged14.route({
|
|
9211
9210
|
method: "POST",
|
|
9212
9211
|
path: "/repurpose/sources/{id}/draft",
|
|
9213
9212
|
summary: "Create a draft post from a source post, unadapted",
|
|
9214
9213
|
successStatus: 201
|
|
9215
|
-
}).errors(
|
|
9214
|
+
}).errors(orgErrors).input(IdPathParam).output(object({ success: literal(true), postId: Uuid }))
|
|
9216
9215
|
};
|
|
9217
9216
|
var adaptContract = {
|
|
9218
9217
|
preview: tagged14.route({
|
|
9219
9218
|
method: "POST",
|
|
9220
9219
|
path: "/repurpose/adapt/preview",
|
|
9221
9220
|
summary: "Adapt a source post for a target platform synchronously and create a draft"
|
|
9222
|
-
}).errors(
|
|
9221
|
+
}).errors(orgErrors).input(object({ sourcePostId: Uuid, targetPlatform: PlatformSchema })).output(
|
|
9223
9222
|
object({
|
|
9224
9223
|
postId: Uuid,
|
|
9225
9224
|
content: string2(),
|
|
@@ -9321,7 +9320,7 @@ var workflowsContract = {
|
|
|
9321
9320
|
list: tagged14.route({ method: "GET", path: "/repurpose/workflows", summary: "List growth workflows" }).errors(orgErrors).output(array(GrowthWorkflowSchema)),
|
|
9322
9321
|
get: tagged14.route({ method: "GET", path: "/repurpose/workflows/{id}", summary: "Get a growth workflow" }).errors(orgErrors).input(IdPathParam).output(GrowthWorkflowSchema),
|
|
9323
9322
|
update: tagged14.route({ method: "PATCH", path: "/repurpose/workflows/{id}", summary: "Update a growth workflow" }).errors({ ...publishErrors, ...quotaErrors }).input(UpdateWorkflowInputSchema).output(GrowthWorkflowSchema),
|
|
9324
|
-
pause: tagged14.route({ method: "POST", path: "/repurpose/workflows/{id}/pause", summary: "Pause a growth workflow" }).errors({ ...
|
|
9323
|
+
pause: tagged14.route({ method: "POST", path: "/repurpose/workflows/{id}/pause", summary: "Pause a growth workflow" }).errors({ ...orgErrors, ...stateConflict }).input(object({ id: Uuid, reason: string2().optional() })).output(GrowthWorkflowSchema),
|
|
9325
9324
|
resume: tagged14.route({ method: "POST", path: "/repurpose/workflows/{id}/resume", summary: "Resume a paused growth workflow" }).errors({ ...publishErrors, ...quotaErrors, ...stateConflict }).input(object({ id: Uuid, resumeFromCursor: _enum(["old", "now"]) })).output(GrowthWorkflowSchema),
|
|
9326
9325
|
delete: tagged14.route({ method: "DELETE", path: "/repurpose/workflows/{id}", summary: "Delete a growth workflow" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema),
|
|
9327
9326
|
runNow: tagged14.route({
|
|
@@ -9412,7 +9411,7 @@ var reviewsContract = {
|
|
|
9412
9411
|
requiredApproverIds: array(string2()).optional()
|
|
9413
9412
|
})
|
|
9414
9413
|
).output(SuccessSchema),
|
|
9415
|
-
submitDecision: tagged15.route({ method: "POST", path: "/posts/{postId}/reviews/decision", summary: "Approve, reject, or request changes" }).errors(
|
|
9414
|
+
submitDecision: tagged15.route({ method: "POST", path: "/posts/{postId}/reviews/decision", summary: "Approve, reject, or request changes" }).errors(orgErrors).input(
|
|
9416
9415
|
object({
|
|
9417
9416
|
postId: Uuid,
|
|
9418
9417
|
postScheduleId: Uuid.nullable().optional(),
|
|
@@ -9420,7 +9419,7 @@ var reviewsContract = {
|
|
|
9420
9419
|
comment: string2().trim().max(2e3).optional()
|
|
9421
9420
|
})
|
|
9422
9421
|
).output(SuccessSchema),
|
|
9423
|
-
cancelReview: tagged15.route({ method: "POST", path: "/posts/{postId}/reviews/cancel", summary: "Cancel a pending review" }).errors(
|
|
9422
|
+
cancelReview: tagged15.route({ method: "POST", path: "/posts/{postId}/reviews/cancel", summary: "Cancel a pending review" }).errors(orgErrors).input(object({ postId: Uuid })).output(SuccessSchema)
|
|
9424
9423
|
};
|
|
9425
9424
|
|
|
9426
9425
|
// ../../packages/api-contract/src/schedules.ts
|
|
@@ -9546,7 +9545,7 @@ var schedulesContract = {
|
|
|
9546
9545
|
list: tagged16.route({ method: "GET", path: "/schedules", summary: "List schedules (calendar view)" }).errors(orgErrors).input(ListSchedulesInputSchema).output(ListSchedulesOutputSchema),
|
|
9547
9546
|
counts: tagged16.route({ method: "GET", path: "/schedules/counts", summary: "Count schedules per status" }).meta({ internal: true }).errors(orgErrors).input(CountSchedulesInputSchema).output(CountSchedulesOutputSchema),
|
|
9548
9547
|
getById: tagged16.route({ method: "GET", path: "/schedules/{id}", summary: "Get a schedule" }).errors(orgErrors).input(GetScheduleByIdInputSchema).output(ScheduleWithPostSchema),
|
|
9549
|
-
delete: tagged16.route({ method: "DELETE", path: "/schedules/{id}", summary: "Delete a schedule" }).errors({ ...
|
|
9548
|
+
delete: tagged16.route({ method: "DELETE", path: "/schedules/{id}", summary: "Delete a schedule" }).errors({ ...orgErrors, ...postDomainErrors }).input(DeleteScheduleInputSchema).output(DeletedSchema)
|
|
9550
9549
|
};
|
|
9551
9550
|
|
|
9552
9551
|
// ../../packages/api-contract/src/snippets.ts
|
|
@@ -9573,8 +9572,8 @@ var internal8 = publicTagged3.meta({ internal: true });
|
|
|
9573
9572
|
var snippetsContract = {
|
|
9574
9573
|
list: publicTagged3.route({ method: "GET", path: "/snippets", summary: "List saved snippets and hashtag groups" }).errors(orgErrors).output(array(SnippetSchema)),
|
|
9575
9574
|
getById: publicTagged3.route({ method: "GET", path: "/snippets/{id}", summary: "Get a snippet" }).errors(orgErrors).input(IdPathParam).output(SnippetSchema),
|
|
9576
|
-
create: internal8.route({ method: "POST", path: "/snippets", summary: "Create a snippet", successStatus: 201 }).errors(
|
|
9577
|
-
delete: internal8.route({ method: "DELETE", path: "/snippets/{id}", summary: "Delete a snippet" }).errors(
|
|
9575
|
+
create: internal8.route({ method: "POST", path: "/snippets", summary: "Create a snippet", successStatus: 201 }).errors(orgErrors).input(CreateSnippetInputSchema).output(SnippetSchema),
|
|
9576
|
+
delete: internal8.route({ method: "DELETE", path: "/snippets/{id}", summary: "Delete a snippet" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
|
|
9578
9577
|
};
|
|
9579
9578
|
|
|
9580
9579
|
// ../../packages/api-contract/src/support.ts
|
|
@@ -9663,8 +9662,8 @@ var tagsContract = {
|
|
|
9663
9662
|
list: tagged17.route({ method: "GET", path: "/tags", summary: "List tags" }).errors(orgErrors).output(array(TagSchema)),
|
|
9664
9663
|
getUsageCounts: internal10.route({ method: "GET", path: "/tags/usage-counts", summary: "Count posts per tag" }).errors(orgErrors).output(array(TagUsageCountSchema)),
|
|
9665
9664
|
getById: tagged17.route({ method: "GET", path: "/tags/{id}", summary: "Get a tag" }).errors(orgErrors).input(IdPathParam).output(TagSchema),
|
|
9666
|
-
create: internal10.route({ method: "POST", path: "/tags", summary: "Create a tag", successStatus: 201 }).errors({ ...
|
|
9667
|
-
update: internal10.route({ method: "PATCH", path: "/tags/{id}", summary: "Rename a tag" }).errors(
|
|
9665
|
+
create: internal10.route({ method: "POST", path: "/tags", summary: "Create a tag", successStatus: 201 }).errors({ ...orgErrors, CONFLICT: { message: "A tag with that name already exists." } }).input(CreateTagInputSchema).output(TagSchema),
|
|
9666
|
+
update: internal10.route({ method: "PATCH", path: "/tags/{id}", summary: "Rename a tag" }).errors(orgErrors).input(UpdateTagInputSchema).output(TagSchema),
|
|
9668
9667
|
delete: internal10.route({ method: "DELETE", path: "/tags/{id}", summary: "Delete a tag" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
|
|
9669
9668
|
};
|
|
9670
9669
|
|
|
@@ -12772,7 +12771,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
12772
12771
|
}
|
|
12773
12772
|
|
|
12774
12773
|
// src/version.ts
|
|
12775
|
-
var CLI_VERSION = "0.1.
|
|
12774
|
+
var CLI_VERSION = "0.1.59";
|
|
12776
12775
|
|
|
12777
12776
|
// src/client.ts
|
|
12778
12777
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|