@postonus/cli 0.1.22 → 0.1.23

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
@@ -28,9 +28,9 @@ var PLAN_CONFIGS = {
28
28
  perPlatformMonthlyPosts: { TWITTER: 100 },
29
29
  mediaStorageGb: 10,
30
30
  vaCredits: 60,
31
- requestsPerMinute: 120,
32
- requestsPerMinutePerKey: 60,
33
- webRequestsPerMinute: 300,
31
+ requestsPerMinute: 600,
32
+ requestsPerMinutePerKey: 300,
33
+ webRequestsPerMinute: 600,
34
34
  features: [
35
35
  "Calendar & queue management",
36
36
  "Per-channel post overrides",
@@ -56,9 +56,9 @@ var PLAN_CONFIGS = {
56
56
  perPlatformMonthlyPosts: { TWITTER: 500 },
57
57
  mediaStorageGb: 50,
58
58
  vaCredits: 300,
59
- requestsPerMinute: 600,
60
- requestsPerMinutePerKey: 300,
61
- webRequestsPerMinute: 600,
59
+ requestsPerMinute: 1800,
60
+ requestsPerMinutePerKey: 900,
61
+ webRequestsPerMinute: 1200,
62
62
  features: [
63
63
  "Everything in Hobby, plus:",
64
64
  "Growth Autopilots (repurpose top posts across channels)",
@@ -82,9 +82,9 @@ var PLAN_CONFIGS = {
82
82
  mediaStorageGb: UNLIMITED,
83
83
  vaCredits: UNLIMITED,
84
84
  // Finite on purpose — see the `requestsPerMinute` doc comment.
85
- requestsPerMinute: 2e3,
86
- requestsPerMinutePerKey: 1e3,
87
- webRequestsPerMinute: 1200,
85
+ requestsPerMinute: 6e3,
86
+ requestsPerMinutePerKey: 3e3,
87
+ webRequestsPerMinute: 2400,
88
88
  features: ["Everything in Pro, plus:", "Onboarding call with founders", "Dedicated support"]
89
89
  }
90
90
  };
@@ -103,9 +103,9 @@ var TRIAL_PLAN_CONFIG = {
103
103
  perPlatformMonthlyPosts: { TWITTER: 0 },
104
104
  mediaStorageGb: 2,
105
105
  vaCredits: 30,
106
- requestsPerMinute: 120,
107
- requestsPerMinutePerKey: 60,
108
- webRequestsPerMinute: 300,
106
+ requestsPerMinute: 600,
107
+ requestsPerMinutePerKey: 300,
108
+ webRequestsPerMinute: 600,
109
109
  features: []
110
110
  };
111
111
  var PLAN_LABELS = {
@@ -9412,6 +9412,17 @@ var ApprovalSettingsInputSchema = object({
9412
9412
  approverRoles: array(_enum(["owner", "admin", "member"])),
9413
9413
  minApprovers: number2().int().min(1).max(5)
9414
9414
  });
9415
+ var AlertWebhookSettingsSchema = object({
9416
+ url: string2().nullable(),
9417
+ notifyOnPublish: boolean2()
9418
+ });
9419
+ var UpdateAlertWebhookInputSchema = object({
9420
+ url: string2().url("Must be a valid HTTP or HTTPS URL").nullable().or(literal("")),
9421
+ notifyOnPublish: boolean2().default(false)
9422
+ });
9423
+ var TestAlertWebhookInputSchema = object({
9424
+ url: string2().url("Must be a valid HTTP or HTTPS URL")
9425
+ });
9415
9426
  var WorkspaceSummarySchema = object({
9416
9427
  id: string2(),
9417
9428
  name: string2(),
@@ -9450,7 +9461,21 @@ var workspaceContract = {
9450
9461
  }).input(TransferOwnershipInputSchema).output(SuccessSchema),
9451
9462
  updateApprovalSettings: tagged19.route({ method: "PATCH", path: "/workspaces/approval-settings", summary: "Update approval settings" }).errors(orgErrors).input(ApprovalSettingsInputSchema).output(SuccessSchema),
9452
9463
  getBrandVoice: tagged19.route({ method: "GET", path: "/workspaces/brand-voice", summary: "Get the workspace brand voice" }).errors(orgErrors).output(object({ voiceProfile: string2() })),
9453
- updateBrandVoice: tagged19.route({ method: "PATCH", path: "/workspaces/brand-voice", summary: "Update the workspace brand voice" }).errors(orgErrors).input(object({ voiceProfile: string2().max(2e3) })).output(SuccessSchema)
9464
+ updateBrandVoice: tagged19.route({ method: "PATCH", path: "/workspaces/brand-voice", summary: "Update the workspace brand voice" }).errors(orgErrors).input(object({ voiceProfile: string2().max(2e3) })).output(SuccessSchema),
9465
+ getAlertWebhook: tagged19.route({ method: "GET", path: "/workspaces/alert-webhook", summary: "Get workspace alert webhook settings" }).errors(orgErrors).output(AlertWebhookSettingsSchema),
9466
+ updateAlertWebhook: tagged19.route({ method: "PATCH", path: "/workspaces/alert-webhook", summary: "Update workspace alert webhook settings" }).errors({
9467
+ ...orgErrors,
9468
+ FORBIDDEN: { message: "Only workspace administrators can update alert webhook settings" }
9469
+ }).input(UpdateAlertWebhookInputSchema).output(SuccessSchema),
9470
+ testAlertWebhook: tagged19.route({
9471
+ method: "POST",
9472
+ path: "/workspaces/alert-webhook/test",
9473
+ summary: "Send a test notification to the webhook"
9474
+ }).errors({
9475
+ ...orgErrors,
9476
+ FORBIDDEN: { message: "Only workspace administrators can test alert webhook settings" },
9477
+ BAD_REQUEST: { message: "Failed to deliver test alert to the provided webhook URL" }
9478
+ }).input(TestAlertWebhookInputSchema).output(SuccessSchema)
9454
9479
  };
9455
9480
 
9456
9481
  // ../../packages/api-contract/src/contract.ts
@@ -9483,17 +9508,17 @@ var contract = {
9483
9508
  workspace: workspaceContract
9484
9509
  };
9485
9510
 
9486
- // ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/openapi/dist/shared/openapi.BwdtJjDu.mjs
9511
+ // ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/openapi/dist/shared/openapi.BwdtJjDu.mjs
9487
9512
  import { isORPCErrorStatus, fallbackORPCErrorStatus, fallbackORPCErrorMessage } from "@orpc/client";
9488
9513
  import { toHttpPath } from "@orpc/client/standard";
9489
9514
  import { fallbackContractConfig as fallbackContractConfig2, getEventIteratorSchemaDetails } from "@orpc/contract";
9490
9515
  import { standardizeHTTPPath, StandardOpenAPIJsonSerializer, getDynamicParams } from "@orpc/openapi-client/standard";
9491
9516
 
9492
- // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/server/dist/index.mjs
9517
+ // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/server/dist/index.mjs
9493
9518
  import { mergeErrorMap as mergeErrorMap2, mergeMeta, mergeRoute, mergePrefix as mergePrefix2, mergeTags, isContractProcedure as isContractProcedure2, getContractRouter, fallbackContractConfig } from "@orpc/contract";
9494
9519
  import { ValidationError as ValidationError2, eventIterator, type, validateORPCError as validateORPCError2 } from "@orpc/contract";
9495
9520
 
9496
- // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
9521
+ // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
9497
9522
  import { isContractProcedure, validateORPCError, ValidationError, mergePrefix, mergeErrorMap, enhanceRoute } from "@orpc/contract";
9498
9523
 
9499
9524
  // ../../node_modules/.pnpm/@orpc+shared@1.16.1_@opentelemetry+api@1.10.0/node_modules/@orpc/shared/dist/index.mjs
@@ -9753,7 +9778,7 @@ function overlayProxy(target, partial2) {
9753
9778
  return proxy;
9754
9779
  }
9755
9780
 
9756
- // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
9781
+ // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
9757
9782
  import { ORPCError, mapEventIterator } from "@orpc/client";
9758
9783
 
9759
9784
  // ../../node_modules/.pnpm/@orpc+standard-server@1.16.1_@opentelemetry+api@1.10.0/node_modules/@orpc/standard-server/dist/index.mjs
@@ -9902,7 +9927,7 @@ var HibernationEventIterator = class extends AsyncIteratorClass {
9902
9927
  }
9903
9928
  };
9904
9929
 
9905
- // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
9930
+ // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
9906
9931
  var LAZY_SYMBOL = /* @__PURE__ */ Symbol("ORPC_LAZY_SYMBOL");
9907
9932
  function lazy2(loader, meta2 = {}) {
9908
9933
  return {
@@ -10255,7 +10280,7 @@ async function resolveContractProcedures(options, callback) {
10255
10280
  }
10256
10281
  }
10257
10282
 
10258
- // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/server/dist/index.mjs
10283
+ // ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/server/dist/index.mjs
10259
10284
  import { toORPCError } from "@orpc/client";
10260
10285
  import { ORPCError as ORPCError2, isDefinedError, safe } from "@orpc/client";
10261
10286
  var DEFAULT_CONFIG = {
@@ -10650,7 +10675,7 @@ var TypeName;
10650
10675
  TypeName2["String"] = "string";
10651
10676
  })(TypeName || (TypeName = {}));
10652
10677
 
10653
- // ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/openapi/dist/shared/openapi.BwdtJjDu.mjs
10678
+ // ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/openapi/dist/shared/openapi.BwdtJjDu.mjs
10654
10679
  var OPERATION_EXTENDER_SYMBOL = /* @__PURE__ */ Symbol("ORPC_OPERATION_EXTENDER");
10655
10680
  function getCustomOpenAPIOperation(o) {
10656
10681
  return o[OPERATION_EXTENDER_SYMBOL];
@@ -11505,13 +11530,13 @@ ${errors.join("\n\n")}`
11505
11530
  }
11506
11531
  };
11507
11532
 
11508
- // ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/openapi/dist/index.mjs
11533
+ // ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/openapi/dist/index.mjs
11509
11534
  import { createORPCErrorFromJson } from "@orpc/client";
11510
11535
  import { StandardOpenAPISerializer, StandardOpenAPIJsonSerializer as StandardOpenAPIJsonSerializer2, StandardBracketNotationSerializer } from "@orpc/openapi-client/standard";
11511
11536
  import "@orpc/client/standard";
11512
11537
  import "@orpc/contract";
11513
11538
 
11514
- // ../../node_modules/.pnpm/@orpc+json-schema@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.0/node_modules/@orpc/json-schema/dist/index.mjs
11539
+ // ../../node_modules/.pnpm/@orpc+json-schema@1.16.1_@opentelemetry+api@1.10.0_ws@8.22.1/node_modules/@orpc/json-schema/dist/index.mjs
11515
11540
  var JsonSchemaXNativeType = /* @__PURE__ */ ((JsonSchemaXNativeType2) => {
11516
11541
  JsonSchemaXNativeType2["BigInt"] = "bigint";
11517
11542
  JsonSchemaXNativeType2["RegExp"] = "regexp";
@@ -11522,7 +11547,7 @@ var JsonSchemaXNativeType = /* @__PURE__ */ ((JsonSchemaXNativeType2) => {
11522
11547
  return JsonSchemaXNativeType2;
11523
11548
  })(JsonSchemaXNativeType || {});
11524
11549
 
11525
- // ../../node_modules/.pnpm/@orpc+zod@1.16.1_@opentelemetry+api@1.10.0_@orpc+contract@1.16.1_@opentelemetry+api@1.1_5e7190f497e0d8af82eb254f52223720/node_modules/@orpc/zod/dist/zod4/index.mjs
11550
+ // ../../node_modules/.pnpm/@orpc+zod@1.16.1_@opentelemetry+api@1.10.0_@orpc+contract@1.16.1_@opentelemetry+api@1.1_2308bc075ea90d1ee11574f662e35bd3/node_modules/@orpc/zod/dist/zod4/index.mjs
11526
11551
  var JSON_SCHEMA_REGISTRY = registry();
11527
11552
  var JSON_SCHEMA_INPUT_REGISTRY = registry();
11528
11553
  var JSON_SCHEMA_OUTPUT_REGISTRY = registry();
@@ -12129,7 +12154,7 @@ function formatTable(headers, rows) {
12129
12154
  }
12130
12155
 
12131
12156
  // src/version.ts
12132
- var CLI_VERSION = "0.1.22";
12157
+ var CLI_VERSION = "0.1.23";
12133
12158
 
12134
12159
  // src/client.ts
12135
12160
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";