@postonus/cli 0.1.33 → 0.1.34

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(),
@@ -9518,7 +9523,8 @@ var userContract = {
9518
9523
  resetPreferences: internal10.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
9519
9524
  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
9525
  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)
9526
+ 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
+ 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
9528
  };
9523
9529
 
9524
9530
  // ../../packages/api-contract/src/workspace.ts
@@ -12449,7 +12455,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
12449
12455
  }
12450
12456
 
12451
12457
  // src/version.ts
12452
- var CLI_VERSION = "0.1.33";
12458
+ var CLI_VERSION = "0.1.34";
12453
12459
 
12454
12460
  // src/client.ts
12455
12461
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";