@postonus/cli 0.1.47 → 0.1.48

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
@@ -7826,6 +7826,50 @@ var channelGroupsContract = {
7826
7826
  delete: tagged5.route({ method: "DELETE", path: "/channel-groups/{id}", summary: "Delete a channel group" }).errors(orgErrors).input(IdPathParam).output(object({ success: literal(true) }))
7827
7827
  };
7828
7828
 
7829
+ // ../../packages/api-contract/src/clips.ts
7830
+ var internal4 = base.meta({ internal: true });
7831
+ var ClipJobStatusSchema = _enum(["QUEUED", "PROCESSING", "DONE", "FAILED"]);
7832
+ var ClipJobSchema = object({
7833
+ id: Uuid,
7834
+ organizationId: string2(),
7835
+ createdBy: string2(),
7836
+ sourceMediaId: Uuid.nullable(),
7837
+ youtubeUrl: string2().nullable(),
7838
+ status: ClipJobStatusSchema,
7839
+ failureCode: string2().nullable(),
7840
+ inputSeconds: number2().int().nullable(),
7841
+ creditsReserved: number2().int(),
7842
+ transcriptVendor: string2().nullable(),
7843
+ clipMediaIds: array(string2()),
7844
+ draftPostIds: array(string2()),
7845
+ createdAt: Timestamp,
7846
+ updatedAt: Timestamp
7847
+ });
7848
+ var CreateClipJobInputSchema = object({
7849
+ mediaId: Uuid.optional(),
7850
+ youtubeUrl: string2().url().optional()
7851
+ });
7852
+ var ListClipsInputSchema = object({
7853
+ limit: coerce_exports.number().int().min(1).max(100).default(20).optional()
7854
+ });
7855
+ var ListClipsOutputSchema = object({
7856
+ items: array(ClipJobSchema)
7857
+ });
7858
+ var clipErrors = {
7859
+ ...writableErrors,
7860
+ CONFLICT: { status: 409, message: "A clip job is already running for this workspace." },
7861
+ AI_CREDITS_EXHAUSTED: {
7862
+ status: 403,
7863
+ message: "AI credits exhausted. Upgrade your plan or wait for your credits to renew."
7864
+ },
7865
+ BAD_REQUEST: { message: "Bad request." }
7866
+ };
7867
+ var clipsContract = {
7868
+ create: internal4.route({ method: "POST", path: "/clips", summary: "Create a video clip job", successStatus: 201 }).errors(clipErrors).input(CreateClipJobInputSchema).output(ClipJobSchema),
7869
+ get: internal4.route({ method: "GET", path: "/clips/{id}", summary: "Get a clip job by ID" }).errors(orgErrors).input(IdPathParam).output(ClipJobSchema),
7870
+ list: internal4.route({ method: "GET", path: "/clips", summary: "List clip jobs for the active workspace" }).errors(orgErrors).input(ListClipsInputSchema).output(ListClipsOutputSchema)
7871
+ };
7872
+
7829
7873
  // ../../packages/api-contract/src/comments.ts
7830
7874
  var CommentAuthorSchema = object({
7831
7875
  id: string2(),
@@ -8033,29 +8077,29 @@ var DisconnectImpactSchema = object({
8033
8077
  isLastBinding: boolean2()
8034
8078
  });
8035
8079
  var tagged8 = base.route({ tags: ["Integrations"] });
8036
- var internal4 = tagged8.meta({ internal: true });
8080
+ var internal5 = tagged8.meta({ internal: true });
8037
8081
  var integrationsContract = {
8038
8082
  get: tagged8.route({ method: "GET", path: "/integrations", summary: "List active integrations with health" }).errors(orgErrors).output(array(IntegrationSchema)),
8039
- getCapacity: internal4.route({ method: "GET", path: "/integrations/capacity", summary: "Social-account plan capacity" }).errors(orgErrors).output(IntegrationCapacitySchema),
8040
- listUnhealthy: internal4.route({ method: "GET", path: "/integrations/unhealthy", summary: "Integrations needing reconnect" }).errors(orgErrors).output(array(UnhealthyIntegrationSchema)),
8041
- listAtRiskSchedules: internal4.route({
8083
+ getCapacity: internal5.route({ method: "GET", path: "/integrations/capacity", summary: "Social-account plan capacity" }).errors(orgErrors).output(IntegrationCapacitySchema),
8084
+ listUnhealthy: internal5.route({ method: "GET", path: "/integrations/unhealthy", summary: "Integrations needing reconnect" }).errors(orgErrors).output(array(UnhealthyIntegrationSchema)),
8085
+ listAtRiskSchedules: internal5.route({
8042
8086
  method: "GET",
8043
8087
  path: "/integrations/at-risk-schedules",
8044
8088
  summary: "Scheduled posts whose channel cannot currently publish"
8045
8089
  }).errors(orgErrors).output(array(AtRiskScheduleSchema)),
8046
- listPendingSelection: internal4.route({ method: "GET", path: "/integrations/pending-selection", summary: "Channels stuck at the account picker" }).errors(orgErrors).output(array(PendingSelectionIntegrationSchema)),
8090
+ listPendingSelection: internal5.route({ method: "GET", path: "/integrations/pending-selection", summary: "Channels stuck at the account picker" }).errors(orgErrors).output(array(PendingSelectionIntegrationSchema)),
8047
8091
  connectIntegration: tagged8.route({ method: "POST", path: "/integrations/connect", summary: "Start an OAuth connect" }).errors(writableErrors).input(ConnectIntegrationInputSchema).output(object({ redirectUrl: string2() })),
8048
- connectCredentialIntegration: internal4.route({
8092
+ connectCredentialIntegration: internal5.route({
8049
8093
  method: "POST",
8050
8094
  path: "/integrations/connect-with-credentials",
8051
8095
  summary: "Connect a platform with an app password or bot token"
8052
8096
  }).errors(writableErrors).input(ConnectCredentialIntegrationInputSchema).output(ConnectCredentialResultSchema),
8053
- listConnectAccounts: internal4.route({ method: "GET", path: "/integrations/{id}/accounts", summary: "Accounts a pending connect may select" }).errors(orgErrors).input(IdPathParam).output(array(SelectableAccountSchema)),
8054
- finalizeConnect: internal4.route({ method: "POST", path: "/integrations/{id}/select", summary: "Finalize a picked account" }).errors(writableErrors).input(FinalizeConnectInputSchema).output(FinalizeConnectResultSchema),
8055
- disconnectIntegration: internal4.route({ method: "DELETE", path: "/integrations/{id}", summary: "Disconnect an integration" }).errors(orgErrors).input(IdPathParam).output(DisconnectResultSchema),
8056
- disconnectImpact: internal4.route({ method: "GET", path: "/integrations/{id}/disconnect-impact", summary: "What a disconnect would cost" }).errors(orgErrors).input(IdPathParam).output(DisconnectImpactSchema),
8057
- cancelPendingSelection: internal4.route({ method: "POST", path: "/integrations/{id}/cancel-selection", summary: "Abandon a half-finished connect" }).errors(writableErrors).input(IdPathParam).output(DeletedSchema),
8058
- refreshIntegration: internal4.route({ method: "POST", path: "/integrations/{id}/refresh", summary: "Manually refresh a credential" }).errors(writableErrors).input(IdPathParam).output(DeletedSchema)
8097
+ listConnectAccounts: internal5.route({ method: "GET", path: "/integrations/{id}/accounts", summary: "Accounts a pending connect may select" }).errors(orgErrors).input(IdPathParam).output(array(SelectableAccountSchema)),
8098
+ finalizeConnect: internal5.route({ method: "POST", path: "/integrations/{id}/select", summary: "Finalize a picked account" }).errors(writableErrors).input(FinalizeConnectInputSchema).output(FinalizeConnectResultSchema),
8099
+ disconnectIntegration: internal5.route({ method: "DELETE", path: "/integrations/{id}", summary: "Disconnect an integration" }).errors(orgErrors).input(IdPathParam).output(DisconnectResultSchema),
8100
+ disconnectImpact: internal5.route({ method: "GET", path: "/integrations/{id}/disconnect-impact", summary: "What a disconnect would cost" }).errors(orgErrors).input(IdPathParam).output(DisconnectImpactSchema),
8101
+ cancelPendingSelection: internal5.route({ method: "POST", path: "/integrations/{id}/cancel-selection", summary: "Abandon a half-finished connect" }).errors(writableErrors).input(IdPathParam).output(DeletedSchema),
8102
+ refreshIntegration: internal5.route({ method: "POST", path: "/integrations/{id}/refresh", summary: "Manually refresh a credential" }).errors(writableErrors).input(IdPathParam).output(DeletedSchema)
8059
8103
  };
8060
8104
 
8061
8105
  // ../../packages/api-contract/src/upload.ts
@@ -8236,23 +8280,23 @@ var DeleteMediaOutputSchema = object({
8236
8280
  blocked: array(object({ mediaId: Uuid, usedInPostsCount: number2().int() }))
8237
8281
  });
8238
8282
  var tagged10 = base.route({ tags: ["Media library"] });
8239
- var internal5 = tagged10.meta({ internal: true });
8283
+ var internal6 = tagged10.meta({ internal: true });
8240
8284
  var folderErrors = {
8241
8285
  ...writableErrors,
8242
8286
  FOLDER_CYCLE: { status: 422, message: "A folder cannot be moved inside itself." }
8243
8287
  };
8244
8288
  var mediaContract = {
8245
- list: internal5.route({ method: "GET", path: "/media", summary: "List library media" }).errors(orgErrors).input(ListMediaInputSchema).output(ListMediaOutputSchema),
8289
+ list: internal6.route({ method: "GET", path: "/media", summary: "List library media" }).errors(orgErrors).input(ListMediaInputSchema).output(ListMediaOutputSchema),
8246
8290
  // Declared before `getById` for readability only — oRPC matches a literal
8247
8291
  // segment ahead of a path parameter regardless of declaration order.
8248
- listFolders: internal5.route({ method: "GET", path: "/media/folders", summary: "List media folders with counts" }).errors(orgErrors).output(ListMediaFoldersOutputSchema),
8249
- createFolder: internal5.route({ method: "POST", path: "/media/folders", summary: "Create a media folder", successStatus: 201 }).errors({ ...writableErrors, CONFLICT: { message: "A folder with that name already exists here." } }).input(CreateMediaFolderInputSchema).output(MediaFolderSchema),
8250
- updateFolder: internal5.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),
8251
- deleteFolder: internal5.route({ method: "DELETE", path: "/media/folders/{id}", summary: "Delete a media folder" }).errors(writableErrors).input(IdPathParam).output(DeletedSchema),
8252
- getById: internal5.route({ method: "GET", path: "/media/{id}", summary: "Get a library asset" }).errors(orgErrors).input(IdPathParam).output(LibraryMediaSchema),
8253
- update: internal5.route({ method: "PATCH", path: "/media/{id}", summary: "Rename or refile a library asset" }).errors(writableErrors).input(UpdateMediaInputSchema).output(LibraryMediaSchema),
8254
- move: internal5.route({ method: "POST", path: "/media/move", summary: "File assets into a folder" }).errors(writableErrors).input(MoveMediaInputSchema).output(object({ movedIds: array(Uuid) })),
8255
- delete: internal5.route({ method: "POST", path: "/media/delete", summary: "Delete library assets" }).errors(writableErrors).input(DeleteMediaInputSchema).output(DeleteMediaOutputSchema)
8292
+ listFolders: internal6.route({ method: "GET", path: "/media/folders", summary: "List media folders with counts" }).errors(orgErrors).output(ListMediaFoldersOutputSchema),
8293
+ createFolder: internal6.route({ method: "POST", path: "/media/folders", summary: "Create a media folder", successStatus: 201 }).errors({ ...writableErrors, CONFLICT: { message: "A folder with that name already exists here." } }).input(CreateMediaFolderInputSchema).output(MediaFolderSchema),
8294
+ 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),
8295
+ deleteFolder: internal6.route({ method: "DELETE", path: "/media/folders/{id}", summary: "Delete a media folder" }).errors(writableErrors).input(IdPathParam).output(DeletedSchema),
8296
+ getById: internal6.route({ method: "GET", path: "/media/{id}", summary: "Get a library asset" }).errors(orgErrors).input(IdPathParam).output(LibraryMediaSchema),
8297
+ update: internal6.route({ method: "PATCH", path: "/media/{id}", summary: "Rename or refile a library asset" }).errors(writableErrors).input(UpdateMediaInputSchema).output(LibraryMediaSchema),
8298
+ move: internal6.route({ method: "POST", path: "/media/move", summary: "File assets into a folder" }).errors(writableErrors).input(MoveMediaInputSchema).output(object({ movedIds: array(Uuid) })),
8299
+ delete: internal6.route({ method: "POST", path: "/media/delete", summary: "Delete library assets" }).errors(writableErrors).input(DeleteMediaInputSchema).output(DeleteMediaOutputSchema)
8256
8300
  };
8257
8301
 
8258
8302
  // ../../packages/api-contract/src/media-sources.ts
@@ -8753,14 +8797,14 @@ var idempotent = tagged13.route({
8753
8797
  ]
8754
8798
  })
8755
8799
  });
8756
- var internal6 = tagged13.meta({ internal: true });
8800
+ var internal7 = tagged13.meta({ internal: true });
8757
8801
  var postsContract = {
8758
8802
  list: tagged13.route({ method: "GET", path: "/posts", summary: "List posts" }).errors(orgErrors).input(ListPostsInputSchema).output(PostsListOutputSchema),
8759
8803
  // Declared before `getById` so `/posts/counts` is not read as `/posts/{id}`.
8760
8804
  // Dashboard plumbing: the status segment row on `/posts`.
8761
- counts: internal6.route({ method: "GET", path: "/posts/counts", summary: "Count posts per status" }).errors(orgErrors).input(CountPostsInputSchema).output(CountPostsOutputSchema),
8805
+ counts: internal7.route({ method: "GET", path: "/posts/counts", summary: "Count posts per status" }).errors(orgErrors).input(CountPostsInputSchema).output(CountPostsOutputSchema),
8762
8806
  getById: tagged13.route({ method: "GET", path: "/posts/{id}", summary: "Get a post" }).errors(orgErrors).input(IdPathParam).output(PostWithRelationsSchema),
8763
- mediaById: internal6.route({ method: "GET", path: "/posts/media/{id}", summary: "Get post media metadata" }).errors(orgErrors).input(IdPathParam).output(MediaMetadataSchema),
8807
+ mediaById: internal7.route({ method: "GET", path: "/posts/media/{id}", summary: "Get post media metadata" }).errors(orgErrors).input(IdPathParam).output(MediaMetadataSchema),
8764
8808
  create: idempotent.route({ method: "POST", path: "/posts", summary: "Create posts in bulk", successStatus: 201 }).errors({ ...writableErrors, ...postDomainErrors }).input(CreatePostsInputSchema).output(CreatePostsOutputSchema),
8765
8809
  update: idempotent.route({ method: "PATCH", path: "/posts/{id}", summary: "Update a post" }).errors({ ...writableErrors, ...postDomainErrors }).input(UpdatePostInputSchema).output(PostStateSchema),
8766
8810
  scheduleDraft: idempotent.route({ method: "POST", path: "/posts/{id}/schedule", summary: "Schedule a draft" }).errors({ ...writableErrors, ...postDomainErrors }).input(ScheduleDraftInputSchema).output(PostStateSchema),
@@ -8771,17 +8815,17 @@ var postsContract = {
8771
8815
  path: "/posts/schedules/{scheduleId}/reschedule",
8772
8816
  summary: "Move a schedule to a new time"
8773
8817
  }).errors({ ...writableErrors, ...postDomainErrors }).input(RescheduleInputSchema).output(PostStateSchema),
8774
- bulkScheduleInWindows: internal6.route({
8818
+ bulkScheduleInWindows: internal7.route({
8775
8819
  method: "POST",
8776
8820
  path: "/posts/schedules/bulk-schedule-windows",
8777
8821
  summary: "Spread schedules across optimal windows"
8778
8822
  }).errors({ ...writableErrors, ...postDomainErrors }).input(BulkScheduleInWindowsInputSchema).output(BulkScheduleInWindowsOutputSchema),
8779
- addChannels: internal6.route({
8823
+ addChannels: internal7.route({
8780
8824
  method: "POST",
8781
8825
  path: "/posts/{id}/channels",
8782
8826
  summary: "Schedule an existing post to more channels"
8783
8827
  }).errors({ ...publishErrors, ...postDomainErrors }).input(AddChannelsInputSchema).output(AddChannelsOutputSchema),
8784
- applyReviewComments: internal6.route({
8828
+ applyReviewComments: internal7.route({
8785
8829
  method: "POST",
8786
8830
  path: "/posts/{id}/apply-review-comments",
8787
8831
  summary: "Rewrite post or variant from unresolved review and client comments"
@@ -9647,12 +9691,12 @@ var CreateSnippetInputSchema = object({
9647
9691
  tags: array(SnippetTagSchema).default([])
9648
9692
  });
9649
9693
  var publicTagged3 = base.route({ tags: ["Snippets"] });
9650
- var internal7 = publicTagged3.meta({ internal: true });
9694
+ var internal8 = publicTagged3.meta({ internal: true });
9651
9695
  var snippetsContract = {
9652
9696
  list: publicTagged3.route({ method: "GET", path: "/snippets", summary: "List saved snippets and hashtag groups" }).errors(orgErrors).output(array(SnippetSchema)),
9653
9697
  getById: publicTagged3.route({ method: "GET", path: "/snippets/{id}", summary: "Get a snippet" }).errors(orgErrors).input(IdPathParam).output(SnippetSchema),
9654
- create: internal7.route({ method: "POST", path: "/snippets", summary: "Create a snippet", successStatus: 201 }).errors(writableErrors).input(CreateSnippetInputSchema).output(SnippetSchema),
9655
- delete: internal7.route({ method: "DELETE", path: "/snippets/{id}", summary: "Delete a snippet" }).errors(writableErrors).input(IdPathParam).output(DeletedSchema)
9698
+ create: internal8.route({ method: "POST", path: "/snippets", summary: "Create a snippet", successStatus: 201 }).errors(writableErrors).input(CreateSnippetInputSchema).output(SnippetSchema),
9699
+ delete: internal8.route({ method: "DELETE", path: "/snippets/{id}", summary: "Delete a snippet" }).errors(writableErrors).input(IdPathParam).output(DeletedSchema)
9656
9700
  };
9657
9701
 
9658
9702
  // ../../packages/api-contract/src/support.ts
@@ -9702,19 +9746,19 @@ var UpdateTicketStatusInputSchema = object({
9702
9746
  status: _enum(["waiting_on_user", "resolved"])
9703
9747
  });
9704
9748
  var ticketErrors = { ...authedErrors, NOT_FOUND: { message: "Ticket not found." } };
9705
- var internal8 = base.route({ tags: ["Support"] }).meta({ internal: true });
9749
+ var internal9 = base.route({ tags: ["Support"] }).meta({ internal: true });
9706
9750
  var supportContract = {
9707
- createTicket: internal8.route({ method: "POST", path: "/internal/support/tickets", summary: "Open a support ticket", successStatus: 201 }).errors(authedErrors).input(CreateTicketInputSchema).output(SupportTicketSchema),
9708
- getMyTickets: internal8.route({ method: "GET", path: "/internal/support/tickets", summary: "List the caller\u2019s support tickets" }).errors(authedErrors).output(array(TicketWithUserSchema)),
9709
- getTicket: internal8.route({ method: "GET", path: "/internal/support/tickets/{ticketId}", summary: "Get a ticket and its messages" }).errors(ticketErrors).input(GetTicketInputSchema).output(TicketWithMessagesSchema),
9710
- createMessage: internal8.route({
9751
+ createTicket: internal9.route({ method: "POST", path: "/internal/support/tickets", summary: "Open a support ticket", successStatus: 201 }).errors(authedErrors).input(CreateTicketInputSchema).output(SupportTicketSchema),
9752
+ getMyTickets: internal9.route({ method: "GET", path: "/internal/support/tickets", summary: "List the caller\u2019s support tickets" }).errors(authedErrors).output(array(TicketWithUserSchema)),
9753
+ getTicket: internal9.route({ method: "GET", path: "/internal/support/tickets/{ticketId}", summary: "Get a ticket and its messages" }).errors(ticketErrors).input(GetTicketInputSchema).output(TicketWithMessagesSchema),
9754
+ createMessage: internal9.route({
9711
9755
  method: "POST",
9712
9756
  path: "/internal/support/tickets/{ticketId}/messages",
9713
9757
  summary: "Reply on a support ticket",
9714
9758
  successStatus: 201
9715
9759
  }).errors(ticketErrors).input(CreateMessageInputSchema).output(SupportMessageSchema),
9716
- getAdminTickets: internal8.route({ method: "GET", path: "/internal/support/admin/tickets", summary: "List tickets for staff triage" }).errors(authedErrors).input(GetAdminTicketsInputSchema).output(array(TicketWithUserSchema)),
9717
- updateTicketStatus: internal8.route({
9760
+ getAdminTickets: internal9.route({ method: "GET", path: "/internal/support/admin/tickets", summary: "List tickets for staff triage" }).errors(authedErrors).input(GetAdminTicketsInputSchema).output(array(TicketWithUserSchema)),
9761
+ updateTicketStatus: internal9.route({
9718
9762
  method: "PATCH",
9719
9763
  path: "/internal/support/admin/tickets/{ticketId}/status",
9720
9764
  summary: "Update a ticket\u2019s status"
@@ -9736,7 +9780,7 @@ var CreateTagInputSchema = object({ name: TagNameSchema });
9736
9780
  var UpdateTagInputSchema = object({ id: Uuid, name: TagNameSchema });
9737
9781
  var TagUsageCountSchema = object({ tagId: Uuid, count: AggregateCount });
9738
9782
  var tagged17 = base.route({ tags: ["Tags"] });
9739
- var internal9 = tagged17.meta({ internal: true });
9783
+ var internal10 = tagged17.meta({ internal: true });
9740
9784
  var tagsContract = {
9741
9785
  list: tagged17.route({ method: "GET", path: "/tags", summary: "List tags" }).errors(orgErrors).output(array(TagSchema)),
9742
9786
  /**
@@ -9744,11 +9788,11 @@ var tagsContract = {
9744
9788
  * segment ahead of a path parameter regardless of declaration order, so
9745
9789
  * `/tags/usage-counts` never resolves as `/tags/{id}`.
9746
9790
  */
9747
- getUsageCounts: internal9.route({ method: "GET", path: "/tags/usage-counts", summary: "Count posts per tag" }).errors(orgErrors).output(array(TagUsageCountSchema)),
9791
+ getUsageCounts: internal10.route({ method: "GET", path: "/tags/usage-counts", summary: "Count posts per tag" }).errors(orgErrors).output(array(TagUsageCountSchema)),
9748
9792
  getById: tagged17.route({ method: "GET", path: "/tags/{id}", summary: "Get a tag" }).errors(orgErrors).input(IdPathParam).output(TagSchema),
9749
- create: internal9.route({ method: "POST", path: "/tags", summary: "Create a tag", successStatus: 201 }).errors({ ...writableErrors, CONFLICT: { message: "A tag with that name already exists." } }).input(CreateTagInputSchema).output(TagSchema),
9750
- update: internal9.route({ method: "PATCH", path: "/tags/{id}", summary: "Rename a tag" }).errors(writableErrors).input(UpdateTagInputSchema).output(TagSchema),
9751
- delete: internal9.route({ method: "DELETE", path: "/tags/{id}", summary: "Delete a tag" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
9793
+ create: internal10.route({ method: "POST", path: "/tags", summary: "Create a tag", successStatus: 201 }).errors({ ...writableErrors, CONFLICT: { message: "A tag with that name already exists." } }).input(CreateTagInputSchema).output(TagSchema),
9794
+ update: internal10.route({ method: "PATCH", path: "/tags/{id}", summary: "Rename a tag" }).errors(writableErrors).input(UpdateTagInputSchema).output(TagSchema),
9795
+ delete: internal10.route({ method: "DELETE", path: "/tags/{id}", summary: "Delete a tag" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
9752
9796
  };
9753
9797
 
9754
9798
  // ../../packages/api-contract/src/usage.ts
@@ -9784,11 +9828,11 @@ var UsageEventSchema = object({
9784
9828
  createdAt: Timestamp
9785
9829
  });
9786
9830
  var tagged18 = base.route({ tags: ["Usage"] });
9787
- var internal10 = tagged18.meta({ internal: true });
9831
+ var internal11 = tagged18.meta({ internal: true });
9788
9832
  var usageContract = {
9789
9833
  summary: tagged18.route({ method: "GET", path: "/usage", summary: "Get API and MCP call totals for the workspace" }).errors(orgErrors).input(object({ days: WindowDays })).output(UsageSummarySchema),
9790
- daily: internal10.route({ method: "GET", path: "/usage/daily", summary: "Get daily call counts for one surface" }).errors(orgErrors).input(object({ surface: UsageSurfaceSchema, days: WindowDays })).output(object({ items: array(UsageDailyPointSchema) })),
9791
- events: internal10.route({ method: "GET", path: "/usage/events", summary: "List recent API and MCP calls" }).errors(orgErrors).input(
9834
+ daily: internal11.route({ method: "GET", path: "/usage/daily", summary: "Get daily call counts for one surface" }).errors(orgErrors).input(object({ surface: UsageSurfaceSchema, days: WindowDays })).output(object({ items: array(UsageDailyPointSchema) })),
9835
+ events: internal11.route({ method: "GET", path: "/usage/events", summary: "List recent API and MCP calls" }).errors(orgErrors).input(
9792
9836
  object({
9793
9837
  surface: UsageSurfaceSchema.optional(),
9794
9838
  limit: coerce_exports.number().int().min(1).max(100).default(25),
@@ -9933,17 +9977,17 @@ var AiQuotaSchema = object({
9933
9977
  unlimited: boolean2()
9934
9978
  });
9935
9979
  var tagged19 = base.route({ tags: ["User"] });
9936
- var internal11 = tagged19.meta({ internal: true });
9980
+ var internal12 = tagged19.meta({ internal: true });
9937
9981
  var userContract = {
9938
9982
  me: tagged19.route({ method: "GET", path: "/users/me", summary: "Get the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).output(MeSchema),
9939
- update: internal11.route({ method: "PATCH", path: "/users/me", summary: "Update the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).input(UpdateUserInputSchema).output(UserAccountSchema),
9983
+ update: internal12.route({ method: "PATCH", path: "/users/me", summary: "Update the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).input(UpdateUserInputSchema).output(UserAccountSchema),
9940
9984
  getPreferences: tagged19.route({ method: "GET", path: "/users/me/preferences", summary: "Get the current user's preferences" }).errors(authedErrors).output(UserPreferencesSchema),
9941
- updatePreferences: internal11.route({ method: "PATCH", path: "/users/me/preferences", summary: "Update the current user's preferences" }).errors(authedErrors).input(UpdatePreferencesInputSchema).output(UserPreferencesSchema),
9942
- resetPreferences: internal11.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
9985
+ updatePreferences: internal12.route({ method: "PATCH", path: "/users/me/preferences", summary: "Update the current user's preferences" }).errors(authedErrors).input(UpdatePreferencesInputSchema).output(UserPreferencesSchema),
9986
+ resetPreferences: internal12.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
9943
9987
  getPlanQuota: tagged19.route({ method: "GET", path: "/users/me/plan-quota", summary: "Get the active workspace's plan quota" }).errors(orgErrors).input(object({ platforms: array(PlatformEnum).optional() })).output(PlanQuotaSchema),
9944
- getAiQuota: internal11.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
9945
- setDefaultWorkspace: internal11.route({ method: "POST", path: "/users/me/default-workspace", summary: "Set the current user's default workspace" }).errors({ ...authedErrors, FORBIDDEN: { message: "You are not a member of this workspace." } }).input(object({ organizationId: string2() })).output(DeletedSchema),
9946
- setPostingFor: internal11.route({ method: "PUT", path: "/users/me/posting-for", summary: "Answer who the current user posts for" }).errors(authedErrors).input(object({ postingFor: _enum(POSTING_FOR_VALUES) })).output(SuccessSchema)
9988
+ getAiQuota: internal12.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
9989
+ setDefaultWorkspace: internal12.route({ method: "POST", path: "/users/me/default-workspace", summary: "Set the current user's default workspace" }).errors({ ...authedErrors, FORBIDDEN: { message: "You are not a member of this workspace." } }).input(object({ organizationId: string2() })).output(DeletedSchema),
9990
+ setPostingFor: internal12.route({ method: "PUT", path: "/users/me/posting-for", summary: "Answer who the current user posts for" }).errors(authedErrors).input(object({ postingFor: _enum(POSTING_FOR_VALUES) })).output(SuccessSchema)
9947
9991
  };
9948
9992
 
9949
9993
  // ../../packages/api-contract/src/workspace.ts
@@ -10062,6 +10106,7 @@ var contract = {
10062
10106
  billing: billingContract,
10063
10107
  calendarShare: calendarShareContract,
10064
10108
  channelGroups: channelGroupsContract,
10109
+ clips: clipsContract,
10065
10110
  comments: commentsContract,
10066
10111
  integrations: integrationsContract,
10067
10112
  media: mediaContract,
@@ -12874,7 +12919,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
12874
12919
  }
12875
12920
 
12876
12921
  // src/version.ts
12877
- var CLI_VERSION = "0.1.47";
12922
+ var CLI_VERSION = "0.1.48";
12878
12923
 
12879
12924
  // src/client.ts
12880
12925
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";