@postonus/cli 0.1.69 → 0.1.71
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 +171 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,139 @@ 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({ payouts: array(PartnerPayoutSchema) }).nullable();
|
|
8533
|
+
var ApplyPartnerInputSchema = object({
|
|
8534
|
+
code: PartnerCode.optional(),
|
|
8535
|
+
audienceUrl: url().max(500),
|
|
8536
|
+
audienceSize: string2().trim().max(100).optional(),
|
|
8537
|
+
note: string2().trim().max(2e3).optional()
|
|
8538
|
+
});
|
|
8539
|
+
var PARTNER_STATS_RANGE_VALUES = ["30d", "90d", "all"];
|
|
8540
|
+
var PartnerStatsInputSchema = object({ range: _enum(PARTNER_STATS_RANGE_VALUES).default("30d") });
|
|
8541
|
+
var PartnerEarningsSchema = object({
|
|
8542
|
+
pendingCents: number2().int(),
|
|
8543
|
+
availableCents: number2().int(),
|
|
8544
|
+
paidCents: number2().int(),
|
|
8545
|
+
nextPayoutDate: iso_exports.date()
|
|
8546
|
+
});
|
|
8547
|
+
var PartnerStatsSchema = object({
|
|
8548
|
+
range: _enum(PARTNER_STATS_RANGE_VALUES),
|
|
8549
|
+
clicks: number2().int(),
|
|
8550
|
+
signups: number2().int(),
|
|
8551
|
+
activeTrials: number2().int(),
|
|
8552
|
+
paying: number2().int(),
|
|
8553
|
+
referredMrrCents: number2().int(),
|
|
8554
|
+
earnings: PartnerEarningsSchema
|
|
8555
|
+
});
|
|
8556
|
+
var PARTNER_REFERRAL_STATUS_VALUES = ["trial", "paying", "churned"];
|
|
8557
|
+
var PartnerReferralItemSchema = object({
|
|
8558
|
+
id: string2(),
|
|
8559
|
+
displayName: string2(),
|
|
8560
|
+
signedUpAt: Timestamp,
|
|
8561
|
+
status: _enum(PARTNER_REFERRAL_STATUS_VALUES),
|
|
8562
|
+
commissionCents: number2().int()
|
|
8563
|
+
});
|
|
8564
|
+
var UpdatePartnerPayoutInputSchema = object({
|
|
8565
|
+
payoutMethod: _enum(PARTNER_PAYOUT_METHOD_VALUES),
|
|
8566
|
+
payoutAddress: string2().trim().min(3).max(320)
|
|
8567
|
+
});
|
|
8568
|
+
var AdminPartnerListInputSchema = object({ status: _enum(PARTNER_STATUS_VALUES).optional() });
|
|
8569
|
+
var AdminPartnerItemSchema = PartnerSchema.extend({
|
|
8570
|
+
userId: string2(),
|
|
8571
|
+
name: string2(),
|
|
8572
|
+
email: string2(),
|
|
8573
|
+
clicks: number2().int(),
|
|
8574
|
+
signups: number2().int(),
|
|
8575
|
+
paying: number2().int(),
|
|
8576
|
+
pendingCents: number2().int(),
|
|
8577
|
+
availableCents: number2().int(),
|
|
8578
|
+
paidCents: number2().int(),
|
|
8579
|
+
isDue: boolean2()
|
|
8580
|
+
});
|
|
8581
|
+
var ApprovePartnerInputSchema = object({ id: Uuid, decision: _enum(["approve", "reject"]) });
|
|
8582
|
+
var UpdatePartnerInputSchema = object({
|
|
8583
|
+
id: Uuid,
|
|
8584
|
+
commissionRateBps: number2().int().min(0).max(1e4).optional(),
|
|
8585
|
+
commissionMonths: number2().int().min(1).max(120).optional(),
|
|
8586
|
+
suspended: boolean2().optional(),
|
|
8587
|
+
taxFormReceived: boolean2().optional()
|
|
8588
|
+
});
|
|
8589
|
+
var RecordPartnerPayoutInputSchema = object({
|
|
8590
|
+
id: Uuid,
|
|
8591
|
+
externalReference: string2().trim().min(1).max(200),
|
|
8592
|
+
paidAt: iso_exports.datetime().optional()
|
|
8593
|
+
});
|
|
8594
|
+
var RecordPartnerPayoutResultSchema = PartnerPayoutSchema.extend({ commissionCount: number2().int() });
|
|
8595
|
+
var partnerErrors = { ...authedErrors, NOT_FOUND: { message: "Partner not found." } };
|
|
8596
|
+
var adminPartnerErrors = {
|
|
8597
|
+
...partnerErrors,
|
|
8598
|
+
FORBIDDEN: { message: "Admin access required." },
|
|
8599
|
+
CONFLICT: { status: 409, message: "The partner cannot move to that status." }
|
|
8600
|
+
};
|
|
8601
|
+
var partnerContract = {
|
|
8602
|
+
apply: internal7.route({ method: "POST", path: "/internal/partner", summary: "Apply to the partner program", successStatus: 201 }).errors({
|
|
8603
|
+
...authedErrors,
|
|
8604
|
+
ALREADY_APPLIED: { status: 409, message: "You already applied to the partner program." },
|
|
8605
|
+
CODE_TAKEN: { status: 409, message: "That partner code is taken." }
|
|
8606
|
+
}).input(ApplyPartnerInputSchema).output(PartnerSchema),
|
|
8607
|
+
get: internal7.route({ method: "GET", path: "/internal/partner", summary: "Get the caller\u2019s partner account and payouts" }).errors(authedErrors).output(MyPartnerSchema),
|
|
8608
|
+
stats: internal7.route({ method: "GET", path: "/internal/partner/stats", summary: "Partner funnel and earnings" }).errors(partnerErrors).input(PartnerStatsInputSchema).output(PartnerStatsSchema),
|
|
8609
|
+
referrals: internal7.route({ method: "GET", path: "/internal/partner/referrals", summary: "List the caller\u2019s referred accounts" }).errors(partnerErrors).output(array(PartnerReferralItemSchema)),
|
|
8610
|
+
updatePayout: internal7.route({ method: "PATCH", path: "/internal/partner/payout", summary: "Set the payout method and address" }).errors(partnerErrors).input(UpdatePartnerPayoutInputSchema).output(PartnerSchema),
|
|
8611
|
+
list: internal7.route({
|
|
8612
|
+
method: "GET",
|
|
8613
|
+
path: "/internal/admin/partners",
|
|
8614
|
+
summary: "List partners with funnel and balances (admin only)"
|
|
8615
|
+
}).errors(adminPartnerErrors).input(AdminPartnerListInputSchema).output(array(AdminPartnerItemSchema)),
|
|
8616
|
+
approve: internal7.route({
|
|
8617
|
+
method: "POST",
|
|
8618
|
+
path: "/internal/admin/partners/{id}/decision",
|
|
8619
|
+
summary: "Approve or reject a partner application (admin only)"
|
|
8620
|
+
}).errors(adminPartnerErrors).input(ApprovePartnerInputSchema).output(PartnerSchema),
|
|
8621
|
+
update: internal7.route({
|
|
8622
|
+
method: "PATCH",
|
|
8623
|
+
path: "/internal/admin/partners/{id}",
|
|
8624
|
+
summary: "Change a partner\u2019s rate, suspension or tax form status (admin only)"
|
|
8625
|
+
}).errors(adminPartnerErrors).input(UpdatePartnerInputSchema).output(PartnerSchema),
|
|
8626
|
+
recordPayout: internal7.route({
|
|
8627
|
+
method: "POST",
|
|
8628
|
+
path: "/internal/admin/partners/{id}/payouts",
|
|
8629
|
+
summary: "Record a payout made outside Postonus and mark available commissions paid (admin only)",
|
|
8630
|
+
successStatus: 201
|
|
8631
|
+
}).errors({
|
|
8632
|
+
...adminPartnerErrors,
|
|
8633
|
+
NOTHING_DUE: { status: 409, message: "The partner has no available balance." },
|
|
8634
|
+
PAYOUT_NOT_READY: { status: 409, message: "The partner needs a payout method and a tax form on file." }
|
|
8635
|
+
}).input(RecordPartnerPayoutInputSchema).output(RecordPartnerPayoutResultSchema)
|
|
8636
|
+
};
|
|
8637
|
+
|
|
8500
8638
|
// ../../packages/api-contract/src/posts.ts
|
|
8501
8639
|
var POST_SOURCE_VALUES = ["app", "mcp", "api", "cli"];
|
|
8502
8640
|
var PostSourceSchema = _enum(POST_SOURCE_VALUES);
|
|
@@ -8863,12 +9001,12 @@ var idempotent = tagged13.route({
|
|
|
8863
9001
|
]
|
|
8864
9002
|
})
|
|
8865
9003
|
});
|
|
8866
|
-
var
|
|
9004
|
+
var internal8 = tagged13.meta({ internal: true });
|
|
8867
9005
|
var postsContract = {
|
|
8868
9006
|
list: tagged13.route({ method: "GET", path: "/posts", summary: "List posts" }).errors(orgErrors).input(ListPostsInputSchema).output(PostsListOutputSchema),
|
|
8869
|
-
counts:
|
|
9007
|
+
counts: internal8.route({ method: "GET", path: "/posts/counts", summary: "Count posts per status" }).errors(orgErrors).input(CountPostsInputSchema).output(CountPostsOutputSchema),
|
|
8870
9008
|
getById: tagged13.route({ method: "GET", path: "/posts/{id}", summary: "Get a post" }).errors(orgErrors).input(IdPathParam).output(PostWithRelationsSchema),
|
|
8871
|
-
mediaById:
|
|
9009
|
+
mediaById: internal8.route({ method: "GET", path: "/posts/media/{id}", summary: "Get post media metadata" }).errors(orgErrors).input(IdPathParam).output(MediaMetadataSchema),
|
|
8872
9010
|
create: idempotent.route({ method: "POST", path: "/posts", summary: "Create posts in bulk", successStatus: 201 }).errors({ ...orgErrors, ...postDomainErrors }).input(CreatePostsInputSchema).output(CreatePostsOutputSchema),
|
|
8873
9011
|
update: idempotent.route({ method: "PATCH", path: "/posts/{id}", summary: "Update a post" }).errors({ ...orgErrors, ...postDomainErrors }).input(UpdatePostInputSchema).output(PostStateSchema),
|
|
8874
9012
|
scheduleDraft: idempotent.route({ method: "POST", path: "/posts/{id}/schedule", summary: "Schedule a draft" }).errors({ ...orgErrors, ...postDomainErrors }).input(ScheduleDraftInputSchema).output(PostStateSchema),
|
|
@@ -8884,17 +9022,17 @@ var postsContract = {
|
|
|
8884
9022
|
path: "/posts/schedules/{scheduleId}/mark-posted",
|
|
8885
9023
|
summary: "Mark a ready schedule as posted"
|
|
8886
9024
|
}).errors({ ...orgErrors, ...postDomainErrors }).input(object({ scheduleId: Uuid })).output(PostStateSchema),
|
|
8887
|
-
bulkScheduleInWindows:
|
|
9025
|
+
bulkScheduleInWindows: internal8.route({
|
|
8888
9026
|
method: "POST",
|
|
8889
9027
|
path: "/posts/schedules/bulk-schedule-windows",
|
|
8890
9028
|
summary: "Spread schedules across optimal windows"
|
|
8891
9029
|
}).errors({ ...orgErrors, ...postDomainErrors }).input(BulkScheduleInWindowsInputSchema).output(BulkScheduleInWindowsOutputSchema),
|
|
8892
|
-
addChannels:
|
|
9030
|
+
addChannels: internal8.route({
|
|
8893
9031
|
method: "POST",
|
|
8894
9032
|
path: "/posts/{id}/channels",
|
|
8895
9033
|
summary: "Schedule an existing post to more channels"
|
|
8896
9034
|
}).errors({ ...publishErrors, ...postDomainErrors }).input(AddChannelsInputSchema).output(AddChannelsOutputSchema),
|
|
8897
|
-
applyReviewComments:
|
|
9035
|
+
applyReviewComments: internal8.route({
|
|
8898
9036
|
method: "POST",
|
|
8899
9037
|
path: "/posts/{id}/apply-review-comments",
|
|
8900
9038
|
summary: "Rewrite post or variant from unresolved review and client comments"
|
|
@@ -9692,12 +9830,12 @@ var CreateSnippetInputSchema = object({
|
|
|
9692
9830
|
tags: array(SnippetTagSchema).default([])
|
|
9693
9831
|
});
|
|
9694
9832
|
var publicTagged3 = base.route({ tags: ["Snippets"] });
|
|
9695
|
-
var
|
|
9833
|
+
var internal9 = publicTagged3.meta({ internal: true });
|
|
9696
9834
|
var snippetsContract = {
|
|
9697
9835
|
list: publicTagged3.route({ method: "GET", path: "/snippets", summary: "List saved snippets and hashtag groups" }).errors(orgErrors).output(array(SnippetSchema)),
|
|
9698
9836
|
getById: publicTagged3.route({ method: "GET", path: "/snippets/{id}", summary: "Get a snippet" }).errors(orgErrors).input(IdPathParam).output(SnippetSchema),
|
|
9699
|
-
create:
|
|
9700
|
-
delete:
|
|
9837
|
+
create: internal9.route({ method: "POST", path: "/snippets", summary: "Create a snippet", successStatus: 201 }).errors(orgErrors).input(CreateSnippetInputSchema).output(SnippetSchema),
|
|
9838
|
+
delete: internal9.route({ method: "DELETE", path: "/snippets/{id}", summary: "Delete a snippet" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
|
|
9701
9839
|
};
|
|
9702
9840
|
|
|
9703
9841
|
// ../../packages/api-contract/src/support.ts
|
|
@@ -9752,19 +9890,19 @@ var UpdateTicketStatusInputSchema = object({
|
|
|
9752
9890
|
status: _enum(["waiting_on_user", "resolved"])
|
|
9753
9891
|
});
|
|
9754
9892
|
var ticketErrors = { ...authedErrors, NOT_FOUND: { message: "Ticket not found." } };
|
|
9755
|
-
var
|
|
9893
|
+
var internal10 = base.route({ tags: ["Support"] }).meta({ internal: true });
|
|
9756
9894
|
var supportContract = {
|
|
9757
|
-
createTicket:
|
|
9758
|
-
getMyTickets:
|
|
9759
|
-
getTicket:
|
|
9760
|
-
createMessage:
|
|
9895
|
+
createTicket: internal10.route({ method: "POST", path: "/internal/support/tickets", summary: "Open a support ticket", successStatus: 201 }).errors(authedErrors).input(CreateTicketInputSchema).output(SupportTicketSchema),
|
|
9896
|
+
getMyTickets: internal10.route({ method: "GET", path: "/internal/support/tickets", summary: "List the caller\u2019s support tickets" }).errors(authedErrors).output(array(TicketWithUserSchema)),
|
|
9897
|
+
getTicket: internal10.route({ method: "GET", path: "/internal/support/tickets/{ticketId}", summary: "Get a ticket and its messages" }).errors(ticketErrors).input(GetTicketInputSchema).output(TicketWithMessagesSchema),
|
|
9898
|
+
createMessage: internal10.route({
|
|
9761
9899
|
method: "POST",
|
|
9762
9900
|
path: "/internal/support/tickets/{ticketId}/messages",
|
|
9763
9901
|
summary: "Reply on a support ticket",
|
|
9764
9902
|
successStatus: 201
|
|
9765
9903
|
}).errors(ticketErrors).input(CreateMessageInputSchema).output(SupportMessageSchema),
|
|
9766
|
-
getAdminTickets:
|
|
9767
|
-
updateTicketStatus:
|
|
9904
|
+
getAdminTickets: internal10.route({ method: "GET", path: "/internal/support/admin/tickets", summary: "List tickets for staff triage" }).errors(authedErrors).input(GetAdminTicketsInputSchema).output(array(TicketWithUserSchema)),
|
|
9905
|
+
updateTicketStatus: internal10.route({
|
|
9768
9906
|
method: "PATCH",
|
|
9769
9907
|
path: "/internal/support/admin/tickets/{ticketId}/status",
|
|
9770
9908
|
summary: "Update a ticket\u2019s status"
|
|
@@ -9786,14 +9924,14 @@ var CreateTagInputSchema = object({ name: TagNameSchema });
|
|
|
9786
9924
|
var UpdateTagInputSchema = object({ id: Uuid, name: TagNameSchema });
|
|
9787
9925
|
var TagUsageCountSchema = object({ tagId: Uuid, count: AggregateCount });
|
|
9788
9926
|
var tagged17 = base.route({ tags: ["Tags"] });
|
|
9789
|
-
var
|
|
9927
|
+
var internal11 = tagged17.meta({ internal: true });
|
|
9790
9928
|
var tagsContract = {
|
|
9791
9929
|
list: tagged17.route({ method: "GET", path: "/tags", summary: "List tags" }).errors(orgErrors).output(array(TagSchema)),
|
|
9792
|
-
getUsageCounts:
|
|
9930
|
+
getUsageCounts: internal11.route({ method: "GET", path: "/tags/usage-counts", summary: "Count posts per tag" }).errors(orgErrors).output(array(TagUsageCountSchema)),
|
|
9793
9931
|
getById: tagged17.route({ method: "GET", path: "/tags/{id}", summary: "Get a tag" }).errors(orgErrors).input(IdPathParam).output(TagSchema),
|
|
9794
|
-
create:
|
|
9795
|
-
update:
|
|
9796
|
-
delete:
|
|
9932
|
+
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),
|
|
9933
|
+
update: internal11.route({ method: "PATCH", path: "/tags/{id}", summary: "Rename a tag" }).errors(orgErrors).input(UpdateTagInputSchema).output(TagSchema),
|
|
9934
|
+
delete: internal11.route({ method: "DELETE", path: "/tags/{id}", summary: "Delete a tag" }).errors(orgErrors).input(IdPathParam).output(DeletedSchema)
|
|
9797
9935
|
};
|
|
9798
9936
|
|
|
9799
9937
|
// ../../packages/api-contract/src/usage.ts
|
|
@@ -9826,11 +9964,11 @@ var UsageEventSchema = object({
|
|
|
9826
9964
|
createdAt: Timestamp
|
|
9827
9965
|
});
|
|
9828
9966
|
var tagged18 = base.route({ tags: ["Usage"] });
|
|
9829
|
-
var
|
|
9967
|
+
var internal12 = tagged18.meta({ internal: true });
|
|
9830
9968
|
var usageContract = {
|
|
9831
9969
|
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:
|
|
9833
|
-
events:
|
|
9970
|
+
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) })),
|
|
9971
|
+
events: internal12.route({ method: "GET", path: "/usage/events", summary: "List recent API and MCP calls" }).errors(orgErrors).input(
|
|
9834
9972
|
object({
|
|
9835
9973
|
surface: UsageSurfaceSchema.optional(),
|
|
9836
9974
|
limit: coerce_exports.number().int().min(1).max(100).default(25),
|
|
@@ -9971,17 +10109,17 @@ var AiQuotaSchema = object({
|
|
|
9971
10109
|
unlimited: boolean2()
|
|
9972
10110
|
});
|
|
9973
10111
|
var tagged19 = base.route({ tags: ["User"] });
|
|
9974
|
-
var
|
|
10112
|
+
var internal13 = tagged19.meta({ internal: true });
|
|
9975
10113
|
var userContract = {
|
|
9976
10114
|
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:
|
|
10115
|
+
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
10116
|
getPreferences: tagged19.route({ method: "GET", path: "/users/me/preferences", summary: "Get the current user's preferences" }).errors(authedErrors).output(UserPreferencesSchema),
|
|
9979
|
-
updatePreferences:
|
|
9980
|
-
resetPreferences:
|
|
10117
|
+
updatePreferences: internal13.route({ method: "PATCH", path: "/users/me/preferences", summary: "Update the current user's preferences" }).errors(authedErrors).input(UpdatePreferencesInputSchema).output(UserPreferencesSchema),
|
|
10118
|
+
resetPreferences: internal13.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
|
|
9981
10119
|
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:
|
|
9983
|
-
setDefaultWorkspace:
|
|
9984
|
-
setPostingFor:
|
|
10120
|
+
getAiQuota: internal13.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
|
|
10121
|
+
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),
|
|
10122
|
+
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
10123
|
};
|
|
9986
10124
|
|
|
9987
10125
|
// ../../packages/api-contract/src/workspace.ts
|
|
@@ -10093,6 +10231,7 @@ var contract = {
|
|
|
10093
10231
|
media: mediaContract,
|
|
10094
10232
|
mediaSources: mediaSourcesContract,
|
|
10095
10233
|
notifications: notificationsContract,
|
|
10234
|
+
partner: partnerContract,
|
|
10096
10235
|
platforms: platformsContract,
|
|
10097
10236
|
posts: postsContract,
|
|
10098
10237
|
publicCalendar: publicCalendarContract,
|
|
@@ -12900,7 +13039,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
12900
13039
|
}
|
|
12901
13040
|
|
|
12902
13041
|
// src/version.ts
|
|
12903
|
-
var CLI_VERSION = "0.1.
|
|
13042
|
+
var CLI_VERSION = "0.1.71";
|
|
12904
13043
|
|
|
12905
13044
|
// src/client.ts
|
|
12906
13045
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|