@postonus/cli 0.1.70 → 0.1.72

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
@@ -266,6 +266,11 @@ var CLIP_JOB_FAILURE_CODES = [
266
266
  "UNKNOWN"
267
267
  ];
268
268
 
269
+ // ../../packages/app-config/src/partner.ts
270
+ var PARTNER_STATUS_VALUES = ["pending", "active", "suspended", "rejected"];
271
+ var PARTNER_PAYOUT_METHOD_VALUES = ["paypal", "wise"];
272
+ var PARTNER_CODE_PATTERN = /^[a-z0-9](?:[a-z0-9-]{1,30}[a-z0-9])$/;
273
+
269
274
  // src/index.ts
270
275
  import { Command, Option } from "commander";
271
276
 
@@ -8497,6 +8502,155 @@ var notificationsContract = {
8497
8502
  markAllRead: tagged12.route({ method: "POST", path: "/notifications/mark-all-read", summary: "Mark every notification as read" }).errors(orgErrors).output(object({ updated: number2().int() }))
8498
8503
  };
8499
8504
 
8505
+ // ../../packages/api-contract/src/partner.ts
8506
+ var internal7 = base.route({ tags: ["Partner"] }).meta({ internal: true });
8507
+ var PartnerCode = string2().trim().toLowerCase().regex(PARTNER_CODE_PATTERN, "Use 3 to 32 lowercase letters, digits or dashes.");
8508
+ var PartnerSchema = object({
8509
+ id: string2(),
8510
+ code: string2(),
8511
+ link: url(),
8512
+ status: _enum(PARTNER_STATUS_VALUES),
8513
+ commissionRateBps: number2().int(),
8514
+ commissionMonths: number2().int(),
8515
+ payoutMethod: _enum(PARTNER_PAYOUT_METHOD_VALUES).nullable(),
8516
+ payoutAddress: string2().nullable(),
8517
+ taxFormReceivedAt: Timestamp.nullable(),
8518
+ audienceUrl: string2().nullable(),
8519
+ audienceSize: string2().nullable(),
8520
+ applicationNote: string2().nullable(),
8521
+ approvedAt: Timestamp.nullable(),
8522
+ createdAt: Timestamp
8523
+ });
8524
+ var PartnerPayoutSchema = object({
8525
+ id: string2(),
8526
+ amountCents: number2().int(),
8527
+ currency: string2(),
8528
+ method: _enum(PARTNER_PAYOUT_METHOD_VALUES),
8529
+ externalReference: string2(),
8530
+ paidAt: Timestamp
8531
+ });
8532
+ var MyPartnerSchema = PartnerSchema.extend({
8533
+ payouts: array(PartnerPayoutSchema),
8534
+ availableCents: number2().int()
8535
+ }).nullable();
8536
+ var ApplyPartnerInputSchema = object({
8537
+ code: PartnerCode.optional(),
8538
+ audienceUrl: url().max(500),
8539
+ audienceSize: string2().trim().max(100).optional(),
8540
+ note: string2().trim().max(2e3).optional()
8541
+ });
8542
+ var PARTNER_STATS_RANGE_VALUES = ["30d", "90d", "all"];
8543
+ var PartnerStatsInputSchema = object({ range: _enum(PARTNER_STATS_RANGE_VALUES).default("30d") });
8544
+ var PartnerEarningsSchema = object({
8545
+ pendingCents: number2().int(),
8546
+ availableCents: number2().int(),
8547
+ paidCents: number2().int(),
8548
+ nextPayoutDate: iso_exports.date()
8549
+ });
8550
+ var PartnerStatsSchema = object({
8551
+ range: _enum(PARTNER_STATS_RANGE_VALUES),
8552
+ clicks: number2().int(),
8553
+ signups: number2().int(),
8554
+ activeTrials: number2().int(),
8555
+ paying: number2().int(),
8556
+ referredMrrCents: number2().int(),
8557
+ earnings: PartnerEarningsSchema
8558
+ });
8559
+ var PartnerProgressSchema = object({
8560
+ milestones: object({
8561
+ firstClick: boolean2(),
8562
+ firstSignup: boolean2(),
8563
+ firstPayingReferral: boolean2()
8564
+ }),
8565
+ projectedCents: number2().int()
8566
+ });
8567
+ var PARTNER_REFERRAL_STATUS_VALUES = ["trial", "paying", "churned"];
8568
+ var PartnerReferralItemSchema = object({
8569
+ id: string2(),
8570
+ displayName: string2(),
8571
+ signedUpAt: Timestamp,
8572
+ status: _enum(PARTNER_REFERRAL_STATUS_VALUES),
8573
+ commissionCents: number2().int()
8574
+ });
8575
+ var UpdatePartnerPayoutInputSchema = object({
8576
+ payoutMethod: _enum(PARTNER_PAYOUT_METHOD_VALUES),
8577
+ payoutAddress: string2().trim().min(3).max(320)
8578
+ });
8579
+ var AdminPartnerListInputSchema = object({ status: _enum(PARTNER_STATUS_VALUES).optional() });
8580
+ var AdminPartnerItemSchema = PartnerSchema.extend({
8581
+ userId: string2(),
8582
+ name: string2(),
8583
+ email: string2(),
8584
+ clicks: number2().int(),
8585
+ signups: number2().int(),
8586
+ paying: number2().int(),
8587
+ pendingCents: number2().int(),
8588
+ availableCents: number2().int(),
8589
+ paidCents: number2().int(),
8590
+ isDue: boolean2()
8591
+ });
8592
+ var ApprovePartnerInputSchema = object({ id: Uuid, decision: _enum(["approve", "reject"]) });
8593
+ var UpdatePartnerInputSchema = object({
8594
+ id: Uuid,
8595
+ commissionRateBps: number2().int().min(0).max(1e4).optional(),
8596
+ commissionMonths: number2().int().min(1).max(120).optional(),
8597
+ suspended: boolean2().optional(),
8598
+ taxFormReceived: boolean2().optional()
8599
+ });
8600
+ var RecordPartnerPayoutInputSchema = object({
8601
+ id: Uuid,
8602
+ externalReference: string2().trim().min(1).max(200),
8603
+ paidAt: iso_exports.datetime().optional()
8604
+ });
8605
+ var RecordPartnerPayoutResultSchema = PartnerPayoutSchema.extend({ commissionCount: number2().int() });
8606
+ var partnerErrors = { ...authedErrors, NOT_FOUND: { message: "Partner not found." } };
8607
+ var adminPartnerErrors = {
8608
+ ...partnerErrors,
8609
+ FORBIDDEN: { message: "Admin access required." },
8610
+ CONFLICT: { status: 409, message: "The partner cannot move to that status." }
8611
+ };
8612
+ var partnerContract = {
8613
+ apply: internal7.route({ method: "POST", path: "/internal/partner", summary: "Apply to the partner program", successStatus: 201 }).errors({
8614
+ ...authedErrors,
8615
+ ALREADY_APPLIED: { status: 409, message: "You already applied to the partner program." },
8616
+ CODE_TAKEN: { status: 409, message: "That partner code is taken." }
8617
+ }).input(ApplyPartnerInputSchema).output(PartnerSchema),
8618
+ get: internal7.route({ method: "GET", path: "/internal/partner", summary: "Get the caller\u2019s partner account and payouts" }).errors(authedErrors).output(MyPartnerSchema),
8619
+ stats: internal7.route({ method: "GET", path: "/internal/partner/stats", summary: "Partner funnel and earnings" }).errors(partnerErrors).input(PartnerStatsInputSchema).output(PartnerStatsSchema),
8620
+ progress: internal7.route({
8621
+ method: "GET",
8622
+ path: "/internal/partner/progress",
8623
+ summary: "Partner milestones and projected commission for the next 12 months"
8624
+ }).errors(partnerErrors).output(PartnerProgressSchema),
8625
+ referrals: internal7.route({ method: "GET", path: "/internal/partner/referrals", summary: "List the caller\u2019s referred accounts" }).errors(partnerErrors).output(array(PartnerReferralItemSchema)),
8626
+ updatePayout: internal7.route({ method: "PATCH", path: "/internal/partner/payout", summary: "Set the payout method and address" }).errors(partnerErrors).input(UpdatePartnerPayoutInputSchema).output(PartnerSchema),
8627
+ list: internal7.route({
8628
+ method: "GET",
8629
+ path: "/internal/admin/partners",
8630
+ summary: "List partners with funnel and balances (admin only)"
8631
+ }).errors(adminPartnerErrors).input(AdminPartnerListInputSchema).output(array(AdminPartnerItemSchema)),
8632
+ approve: internal7.route({
8633
+ method: "POST",
8634
+ path: "/internal/admin/partners/{id}/decision",
8635
+ summary: "Approve or reject a partner application (admin only)"
8636
+ }).errors(adminPartnerErrors).input(ApprovePartnerInputSchema).output(PartnerSchema),
8637
+ update: internal7.route({
8638
+ method: "PATCH",
8639
+ path: "/internal/admin/partners/{id}",
8640
+ summary: "Change a partner\u2019s rate, suspension or tax form status (admin only)"
8641
+ }).errors(adminPartnerErrors).input(UpdatePartnerInputSchema).output(PartnerSchema),
8642
+ recordPayout: internal7.route({
8643
+ method: "POST",
8644
+ path: "/internal/admin/partners/{id}/payouts",
8645
+ summary: "Record a payout made outside Postonus and mark available commissions paid (admin only)",
8646
+ successStatus: 201
8647
+ }).errors({
8648
+ ...adminPartnerErrors,
8649
+ NOTHING_DUE: { status: 409, message: "The partner has no available balance." },
8650
+ PAYOUT_NOT_READY: { status: 409, message: "The partner needs a payout method and a tax form on file." }
8651
+ }).input(RecordPartnerPayoutInputSchema).output(RecordPartnerPayoutResultSchema)
8652
+ };
8653
+
8500
8654
  // ../../packages/api-contract/src/posts.ts
8501
8655
  var POST_SOURCE_VALUES = ["app", "mcp", "api", "cli"];
8502
8656
  var PostSourceSchema = _enum(POST_SOURCE_VALUES);
@@ -8863,12 +9017,12 @@ var idempotent = tagged13.route({
8863
9017
  ]
8864
9018
  })
8865
9019
  });
8866
- var internal7 = tagged13.meta({ internal: true });
9020
+ var internal8 = tagged13.meta({ internal: true });
8867
9021
  var postsContract = {
8868
9022
  list: tagged13.route({ method: "GET", path: "/posts", summary: "List posts" }).errors(orgErrors).input(ListPostsInputSchema).output(PostsListOutputSchema),
8869
- counts: internal7.route({ method: "GET", path: "/posts/counts", summary: "Count posts per status" }).errors(orgErrors).input(CountPostsInputSchema).output(CountPostsOutputSchema),
9023
+ counts: internal8.route({ method: "GET", path: "/posts/counts", summary: "Count posts per status" }).errors(orgErrors).input(CountPostsInputSchema).output(CountPostsOutputSchema),
8870
9024
  getById: tagged13.route({ method: "GET", path: "/posts/{id}", summary: "Get a post" }).errors(orgErrors).input(IdPathParam).output(PostWithRelationsSchema),
8871
- mediaById: internal7.route({ method: "GET", path: "/posts/media/{id}", summary: "Get post media metadata" }).errors(orgErrors).input(IdPathParam).output(MediaMetadataSchema),
9025
+ mediaById: internal8.route({ method: "GET", path: "/posts/media/{id}", summary: "Get post media metadata" }).errors(orgErrors).input(IdPathParam).output(MediaMetadataSchema),
8872
9026
  create: idempotent.route({ method: "POST", path: "/posts", summary: "Create posts in bulk", successStatus: 201 }).errors({ ...orgErrors, ...postDomainErrors }).input(CreatePostsInputSchema).output(CreatePostsOutputSchema),
8873
9027
  update: idempotent.route({ method: "PATCH", path: "/posts/{id}", summary: "Update a post" }).errors({ ...orgErrors, ...postDomainErrors }).input(UpdatePostInputSchema).output(PostStateSchema),
8874
9028
  scheduleDraft: idempotent.route({ method: "POST", path: "/posts/{id}/schedule", summary: "Schedule a draft" }).errors({ ...orgErrors, ...postDomainErrors }).input(ScheduleDraftInputSchema).output(PostStateSchema),
@@ -8884,17 +9038,17 @@ var postsContract = {
8884
9038
  path: "/posts/schedules/{scheduleId}/mark-posted",
8885
9039
  summary: "Mark a ready schedule as posted"
8886
9040
  }).errors({ ...orgErrors, ...postDomainErrors }).input(object({ scheduleId: Uuid })).output(PostStateSchema),
8887
- bulkScheduleInWindows: internal7.route({
9041
+ bulkScheduleInWindows: internal8.route({
8888
9042
  method: "POST",
8889
9043
  path: "/posts/schedules/bulk-schedule-windows",
8890
9044
  summary: "Spread schedules across optimal windows"
8891
9045
  }).errors({ ...orgErrors, ...postDomainErrors }).input(BulkScheduleInWindowsInputSchema).output(BulkScheduleInWindowsOutputSchema),
8892
- addChannels: internal7.route({
9046
+ addChannels: internal8.route({
8893
9047
  method: "POST",
8894
9048
  path: "/posts/{id}/channels",
8895
9049
  summary: "Schedule an existing post to more channels"
8896
9050
  }).errors({ ...publishErrors, ...postDomainErrors }).input(AddChannelsInputSchema).output(AddChannelsOutputSchema),
8897
- applyReviewComments: internal7.route({
9051
+ applyReviewComments: internal8.route({
8898
9052
  method: "POST",
8899
9053
  path: "/posts/{id}/apply-review-comments",
8900
9054
  summary: "Rewrite post or variant from unresolved review and client comments"
@@ -9692,12 +9846,12 @@ var CreateSnippetInputSchema = object({
9692
9846
  tags: array(SnippetTagSchema).default([])
9693
9847
  });
9694
9848
  var publicTagged3 = base.route({ tags: ["Snippets"] });
9695
- var internal8 = publicTagged3.meta({ internal: true });
9849
+ var internal9 = publicTagged3.meta({ internal: true });
9696
9850
  var snippetsContract = {
9697
9851
  list: publicTagged3.route({ method: "GET", path: "/snippets", summary: "List saved snippets and hashtag groups" }).errors(orgErrors).output(array(SnippetSchema)),
9698
9852
  getById: publicTagged3.route({ method: "GET", path: "/snippets/{id}", summary: "Get a snippet" }).errors(orgErrors).input(IdPathParam).output(SnippetSchema),
9699
- create: internal8.route({ method: "POST", path: "/snippets", summary: "Create a snippet", successStatus: 201 }).errors(orgErrors).input(CreateSnippetInputSchema).output(SnippetSchema),
9700
- delete: internal8.route({ method: "DELETE", path: "/snippets/{id}", summary: "Delete a snippet" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
9853
+ create: internal9.route({ method: "POST", path: "/snippets", summary: "Create a snippet", successStatus: 201 }).errors(orgErrors).input(CreateSnippetInputSchema).output(SnippetSchema),
9854
+ delete: internal9.route({ method: "DELETE", path: "/snippets/{id}", summary: "Delete a snippet" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
9701
9855
  };
9702
9856
 
9703
9857
  // ../../packages/api-contract/src/support.ts
@@ -9752,19 +9906,19 @@ var UpdateTicketStatusInputSchema = object({
9752
9906
  status: _enum(["waiting_on_user", "resolved"])
9753
9907
  });
9754
9908
  var ticketErrors = { ...authedErrors, NOT_FOUND: { message: "Ticket not found." } };
9755
- var internal9 = base.route({ tags: ["Support"] }).meta({ internal: true });
9909
+ var internal10 = base.route({ tags: ["Support"] }).meta({ internal: true });
9756
9910
  var supportContract = {
9757
- createTicket: internal9.route({ method: "POST", path: "/internal/support/tickets", summary: "Open a support ticket", successStatus: 201 }).errors(authedErrors).input(CreateTicketInputSchema).output(SupportTicketSchema),
9758
- getMyTickets: internal9.route({ method: "GET", path: "/internal/support/tickets", summary: "List the caller\u2019s support tickets" }).errors(authedErrors).output(array(TicketWithUserSchema)),
9759
- getTicket: internal9.route({ method: "GET", path: "/internal/support/tickets/{ticketId}", summary: "Get a ticket and its messages" }).errors(ticketErrors).input(GetTicketInputSchema).output(TicketWithMessagesSchema),
9760
- createMessage: internal9.route({
9911
+ createTicket: internal10.route({ method: "POST", path: "/internal/support/tickets", summary: "Open a support ticket", successStatus: 201 }).errors(authedErrors).input(CreateTicketInputSchema).output(SupportTicketSchema),
9912
+ getMyTickets: internal10.route({ method: "GET", path: "/internal/support/tickets", summary: "List the caller\u2019s support tickets" }).errors(authedErrors).output(array(TicketWithUserSchema)),
9913
+ getTicket: internal10.route({ method: "GET", path: "/internal/support/tickets/{ticketId}", summary: "Get a ticket and its messages" }).errors(ticketErrors).input(GetTicketInputSchema).output(TicketWithMessagesSchema),
9914
+ createMessage: internal10.route({
9761
9915
  method: "POST",
9762
9916
  path: "/internal/support/tickets/{ticketId}/messages",
9763
9917
  summary: "Reply on a support ticket",
9764
9918
  successStatus: 201
9765
9919
  }).errors(ticketErrors).input(CreateMessageInputSchema).output(SupportMessageSchema),
9766
- getAdminTickets: internal9.route({ method: "GET", path: "/internal/support/admin/tickets", summary: "List tickets for staff triage" }).errors(authedErrors).input(GetAdminTicketsInputSchema).output(array(TicketWithUserSchema)),
9767
- updateTicketStatus: internal9.route({
9920
+ getAdminTickets: internal10.route({ method: "GET", path: "/internal/support/admin/tickets", summary: "List tickets for staff triage" }).errors(authedErrors).input(GetAdminTicketsInputSchema).output(array(TicketWithUserSchema)),
9921
+ updateTicketStatus: internal10.route({
9768
9922
  method: "PATCH",
9769
9923
  path: "/internal/support/admin/tickets/{ticketId}/status",
9770
9924
  summary: "Update a ticket\u2019s status"
@@ -9786,14 +9940,14 @@ var CreateTagInputSchema = object({ name: TagNameSchema });
9786
9940
  var UpdateTagInputSchema = object({ id: Uuid, name: TagNameSchema });
9787
9941
  var TagUsageCountSchema = object({ tagId: Uuid, count: AggregateCount });
9788
9942
  var tagged17 = base.route({ tags: ["Tags"] });
9789
- var internal10 = tagged17.meta({ internal: true });
9943
+ var internal11 = tagged17.meta({ internal: true });
9790
9944
  var tagsContract = {
9791
9945
  list: tagged17.route({ method: "GET", path: "/tags", summary: "List tags" }).errors(orgErrors).output(array(TagSchema)),
9792
- getUsageCounts: internal10.route({ method: "GET", path: "/tags/usage-counts", summary: "Count posts per tag" }).errors(orgErrors).output(array(TagUsageCountSchema)),
9946
+ getUsageCounts: internal11.route({ method: "GET", path: "/tags/usage-counts", summary: "Count posts per tag" }).errors(orgErrors).output(array(TagUsageCountSchema)),
9793
9947
  getById: tagged17.route({ method: "GET", path: "/tags/{id}", summary: "Get a tag" }).errors(orgErrors).input(IdPathParam).output(TagSchema),
9794
- 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),
9795
- update: internal10.route({ method: "PATCH", path: "/tags/{id}", summary: "Rename a tag" }).errors(orgErrors).input(UpdateTagInputSchema).output(TagSchema),
9796
- delete: internal10.route({ method: "DELETE", path: "/tags/{id}", summary: "Delete a tag" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
9948
+ create: internal11.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),
9949
+ update: internal11.route({ method: "PATCH", path: "/tags/{id}", summary: "Rename a tag" }).errors(orgErrors).input(UpdateTagInputSchema).output(TagSchema),
9950
+ delete: internal11.route({ method: "DELETE", path: "/tags/{id}", summary: "Delete a tag" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
9797
9951
  };
9798
9952
 
9799
9953
  // ../../packages/api-contract/src/usage.ts
@@ -9826,11 +9980,11 @@ var UsageEventSchema = object({
9826
9980
  createdAt: Timestamp
9827
9981
  });
9828
9982
  var tagged18 = base.route({ tags: ["Usage"] });
9829
- var internal11 = tagged18.meta({ internal: true });
9983
+ var internal12 = tagged18.meta({ internal: true });
9830
9984
  var usageContract = {
9831
9985
  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),
9832
- 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) })),
9833
- events: internal11.route({ method: "GET", path: "/usage/events", summary: "List recent API and MCP calls" }).errors(orgErrors).input(
9986
+ daily: internal12.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) })),
9987
+ events: internal12.route({ method: "GET", path: "/usage/events", summary: "List recent API and MCP calls" }).errors(orgErrors).input(
9834
9988
  object({
9835
9989
  surface: UsageSurfaceSchema.optional(),
9836
9990
  limit: coerce_exports.number().int().min(1).max(100).default(25),
@@ -9971,17 +10125,17 @@ var AiQuotaSchema = object({
9971
10125
  unlimited: boolean2()
9972
10126
  });
9973
10127
  var tagged19 = base.route({ tags: ["User"] });
9974
- var internal12 = tagged19.meta({ internal: true });
10128
+ var internal13 = tagged19.meta({ internal: true });
9975
10129
  var userContract = {
9976
10130
  me: tagged19.route({ method: "GET", path: "/users/me", summary: "Get the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).output(MeSchema),
9977
- 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),
10131
+ update: internal13.route({ method: "PATCH", path: "/users/me", summary: "Update the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).input(UpdateUserInputSchema).output(UserAccountSchema),
9978
10132
  getPreferences: tagged19.route({ method: "GET", path: "/users/me/preferences", summary: "Get the current user's preferences" }).errors(authedErrors).output(UserPreferencesSchema),
9979
- updatePreferences: internal12.route({ method: "PATCH", path: "/users/me/preferences", summary: "Update the current user's preferences" }).errors(authedErrors).input(UpdatePreferencesInputSchema).output(UserPreferencesSchema),
9980
- resetPreferences: internal12.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
10133
+ updatePreferences: internal13.route({ method: "PATCH", path: "/users/me/preferences", summary: "Update the current user's preferences" }).errors(authedErrors).input(UpdatePreferencesInputSchema).output(UserPreferencesSchema),
10134
+ resetPreferences: internal13.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
9981
10135
  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),
9982
- getAiQuota: internal12.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
9983
- 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),
9984
- 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)
10136
+ getAiQuota: internal13.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
10137
+ setDefaultWorkspace: internal13.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),
10138
+ setPostingFor: internal13.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)
9985
10139
  };
9986
10140
 
9987
10141
  // ../../packages/api-contract/src/workspace.ts
@@ -10093,6 +10247,7 @@ var contract = {
10093
10247
  media: mediaContract,
10094
10248
  mediaSources: mediaSourcesContract,
10095
10249
  notifications: notificationsContract,
10250
+ partner: partnerContract,
10096
10251
  platforms: platformsContract,
10097
10252
  posts: postsContract,
10098
10253
  publicCalendar: publicCalendarContract,
@@ -12900,7 +13055,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
12900
13055
  }
12901
13056
 
12902
13057
  // src/version.ts
12903
- var CLI_VERSION = "0.1.70";
13058
+ var CLI_VERSION = "0.1.72";
12904
13059
 
12905
13060
  // src/client.ts
12906
13061
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";