@postonus/cli 0.1.18 → 0.1.20

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
@@ -7366,9 +7366,11 @@ var UpdateChannelGroupInputSchema = object({
7366
7366
  name: ChannelGroupNameSchema.optional(),
7367
7367
  integrationIds: ChannelGroupIntegrationIdsSchema.optional()
7368
7368
  });
7369
- var tagged5 = base.route({ tags: ["Channel Groups"] }).meta({ internal: true });
7369
+ var publicTagged = base.route({ tags: ["Channel Groups"] });
7370
+ var tagged5 = publicTagged.meta({ internal: true });
7370
7371
  var channelGroupsContract = {
7371
- get: tagged5.route({ method: "GET", path: "/channel-groups", summary: "List channel groups" }).errors(orgErrors).output(array(ChannelGroupSchema)),
7372
+ // Public read: the composer in the browser extension shows group chips.
7373
+ get: publicTagged.route({ method: "GET", path: "/channel-groups", summary: "List channel groups" }).errors(orgErrors).output(array(ChannelGroupSchema)),
7372
7374
  create: tagged5.route({ method: "POST", path: "/channel-groups", summary: "Create a channel group", successStatus: 201 }).errors({ ...orgErrors, CONFLICT: { message: "A Channel Group with this name already exists." } }).input(CreateChannelGroupInputSchema).output(ChannelGroupSchema),
7373
7375
  update: tagged5.route({ method: "PATCH", path: "/channel-groups/{id}", summary: "Rename or re-member a channel group" }).errors({ ...orgErrors, CONFLICT: { message: "A Channel Group with this name already exists." } }).input(UpdateChannelGroupInputSchema).output(ChannelGroupSchema),
7374
7376
  delete: tagged5.route({ method: "DELETE", path: "/channel-groups/{id}", summary: "Delete a channel group" }).errors(orgErrors).input(IdPathParam).output(object({ success: literal(true) }))
@@ -8913,7 +8915,6 @@ var ScheduleListCursorOutputSchema = object({ scheduledAt: Timestamp, id: string
8913
8915
  var ListSchedulesInputSchema = object({
8914
8916
  startDate: string2().optional(),
8915
8917
  endDate: string2().optional(),
8916
- view: _enum(["month", "week", "agenda"]).default("agenda"),
8917
8918
  limit: coerce_exports.number().int().min(10).max(100).default(20),
8918
8919
  cursor: ScheduleListCursorInputSchema.optional(),
8919
8920
  direction: _enum(["forward", "backward"]).default("forward"),
@@ -8923,13 +8924,19 @@ var ListSchedulesInputSchema = object({
8923
8924
  // existed. `posts.ts` already types the equivalent filters this way.
8924
8925
  platforms: array(PlatformSchema).optional(),
8925
8926
  statuses: array(_enum(SCHEDULE_STATUS_VALUES)).optional(),
8926
- integrationIds: array(string2()).optional()
8927
+ integrationIds: array(string2()).optional(),
8928
+ search: string2().trim().min(1).max(200).optional(),
8929
+ tagIds: array(Uuid).optional(),
8930
+ approvalStatuses: array(_enum(APPROVAL_STATUS_VALUES2)).optional()
8927
8931
  });
8928
8932
  var CountSchedulesInputSchema = object({
8929
8933
  startDate: string2().optional(),
8930
8934
  endDate: string2().optional(),
8931
8935
  platforms: array(PlatformSchema).optional(),
8932
- integrationIds: array(string2()).optional()
8936
+ integrationIds: array(string2()).optional(),
8937
+ search: string2().trim().min(1).max(200).optional(),
8938
+ tagIds: array(Uuid).optional(),
8939
+ approvalStatuses: array(_enum(APPROVAL_STATUS_VALUES2)).optional()
8933
8940
  });
8934
8941
  var GetScheduleByIdInputSchema = object({ id: Uuid, postId: Uuid });
8935
8942
  var DeleteScheduleInputSchema = object({
@@ -9333,10 +9340,10 @@ var internal8 = tagged18.meta({ internal: true });
9333
9340
  var userContract = {
9334
9341
  me: tagged18.route({ method: "GET", path: "/users/me", summary: "Get the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).output(MeSchema),
9335
9342
  update: internal8.route({ method: "PATCH", path: "/users/me", summary: "Update the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).input(UpdateUserInputSchema).output(UserAccountSchema),
9336
- getPreferences: internal8.route({ method: "GET", path: "/users/me/preferences", summary: "Get the current user's preferences" }).errors(authedErrors).output(UserPreferencesSchema),
9343
+ getPreferences: tagged18.route({ method: "GET", path: "/users/me/preferences", summary: "Get the current user's preferences" }).errors(authedErrors).output(UserPreferencesSchema),
9337
9344
  updatePreferences: internal8.route({ method: "PATCH", path: "/users/me/preferences", summary: "Update the current user's preferences" }).errors(authedErrors).input(UpdatePreferencesInputSchema).output(UserPreferencesSchema),
9338
9345
  resetPreferences: internal8.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
9339
- getPlanQuota: internal8.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),
9346
+ getPlanQuota: tagged18.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),
9340
9347
  getAiQuota: internal8.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
9341
9348
  setDefaultWorkspace: internal8.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)
9342
9349
  };
@@ -9386,15 +9393,15 @@ var WorkspaceSummarySchema = object({
9386
9393
  logo: string2().nullable(),
9387
9394
  role: string2()
9388
9395
  });
9389
- var publicTagged = base.route({ tags: ["Workspace"] });
9390
- var tagged19 = publicTagged.meta({ internal: true });
9396
+ var publicTagged2 = base.route({ tags: ["Workspace"] });
9397
+ var tagged19 = publicTagged2.meta({ internal: true });
9391
9398
  var workspaceContract = {
9392
9399
  /**
9393
9400
  * Public, so an OAuth client can offer a workspace switcher: the chosen id goes
9394
9401
  * back as `x-workspace-id`. An API key is pinned to one workspace, so it lists
9395
9402
  * only that one.
9396
9403
  */
9397
- list: publicTagged.route({ method: "GET", path: "/workspaces", summary: "List your workspaces" }).errors(authedErrors).output(array(WorkspaceSummarySchema)),
9404
+ list: publicTagged2.route({ method: "GET", path: "/workspaces", summary: "List your workspaces" }).errors(authedErrors).output(array(WorkspaceSummarySchema)),
9398
9405
  getOwnedCapacity: tagged19.route({ method: "GET", path: "/workspaces/owned-capacity", summary: "Get owned workspace capacity" }).errors(authedErrors).output(OwnedCapacitySchema),
9399
9406
  create: tagged19.route({ method: "POST", path: "/workspaces", summary: "Create a workspace", successStatus: 201 }).errors({
9400
9407
  ...authedErrors,
@@ -12097,7 +12104,7 @@ function formatTable(headers, rows) {
12097
12104
  }
12098
12105
 
12099
12106
  // src/version.ts
12100
- var CLI_VERSION = "0.1.18";
12107
+ var CLI_VERSION = "0.1.20";
12101
12108
 
12102
12109
  // src/client.ts
12103
12110
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
@@ -13071,7 +13078,6 @@ async function listQueue(options) {
13071
13078
  try {
13072
13079
  const result = await api.schedules.list({
13073
13080
  limit,
13074
- view: "agenda",
13075
13081
  direction: "forward",
13076
13082
  platforms: platforms.length > 0 ? platforms : void 0,
13077
13083
  // Default to what "queue" means to a user: not-yet-published work.