@postonus/cli 0.1.33 → 0.1.35

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
@@ -236,6 +236,9 @@ var isValidTimezone = (timezone) => {
236
236
  }
237
237
  };
238
238
 
239
+ // ../../packages/app-config/src/posting-for.ts
240
+ var POSTING_FOR_VALUES = ["product", "clients", "myself", "brand"];
241
+
239
242
  // src/index.ts
240
243
  import { Command, Option } from "commander";
241
244
 
@@ -9392,7 +9395,9 @@ var MeSchema = object({
9392
9395
  emailVerified: boolean2(),
9393
9396
  createdAt: Timestamp,
9394
9397
  updatedAt: Timestamp,
9395
- defaultOrganizationId: string2().nullable()
9398
+ defaultOrganizationId: string2().nullable(),
9399
+ /** Who the user posts for. Null until they answer the one onboarding question. */
9400
+ postingFor: _enum(POSTING_FOR_VALUES).nullable()
9396
9401
  });
9397
9402
  var UserAccountSchema = object({
9398
9403
  id: string2(),
@@ -9450,6 +9455,7 @@ var NotificationPreferences = object({
9450
9455
  collaborationShareLinkOpened: ChannelMatrix.optional(),
9451
9456
  clientReviewDecision: ChannelMatrix.optional(),
9452
9457
  clientReviewComment: ChannelMatrix.optional(),
9458
+ teamActivity: ChannelMatrix.optional(),
9453
9459
  postPublished: ChannelMatrix.optional(),
9454
9460
  emptyQueue: ChannelMatrix.optional(),
9455
9461
  billing: ChannelMatrix.optional(),
@@ -9518,7 +9524,8 @@ var userContract = {
9518
9524
  resetPreferences: internal10.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
9519
9525
  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),
9520
9526
  getAiQuota: internal10.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
9521
- setDefaultWorkspace: internal10.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)
9527
+ setDefaultWorkspace: internal10.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),
9528
+ setPostingFor: internal10.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)
9522
9529
  };
9523
9530
 
9524
9531
  // ../../packages/api-contract/src/workspace.ts
@@ -12449,7 +12456,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
12449
12456
  }
12450
12457
 
12451
12458
  // src/version.ts
12452
- var CLI_VERSION = "0.1.33";
12459
+ var CLI_VERSION = "0.1.35";
12453
12460
 
12454
12461
  // src/client.ts
12455
12462
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";