@usesocial/cli 0.19.2 → 0.19.3
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/CHANGELOG.md +6 -0
- package/dist/index.mjs +20 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @usesocial/cli
|
|
2
2
|
|
|
3
|
+
## 0.19.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#139](https://github.com/usesocial/monorepo/pull/139) [`1f924b9`](https://github.com/usesocial/monorepo/commit/1f924b9a8c9229109210bab72cae3731912b3125) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Clarify when disconnected accounts must use connect and when credential failures can reconnect without changing billing.
|
|
8
|
+
|
|
3
9
|
## 0.19.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.mjs
CHANGED
|
@@ -11069,6 +11069,11 @@ const PROXY_CACHE_STATUSES = [
|
|
|
11069
11069
|
"n/a"
|
|
11070
11070
|
];
|
|
11071
11071
|
const PROXY_CAPABILITIES = ["read", "write"];
|
|
11072
|
+
const BILLING_OPERATION_LEASE_KINDS = [
|
|
11073
|
+
"proxy_request",
|
|
11074
|
+
"seat_mutation",
|
|
11075
|
+
"social_plan_migration"
|
|
11076
|
+
];
|
|
11072
11077
|
const CLI_SCOPE_ALIASES$1 = ["read", "read,write"];
|
|
11073
11078
|
const CLI_CAPABILITIES = [
|
|
11074
11079
|
"social:read",
|
|
@@ -11118,6 +11123,7 @@ _enum(ACCOUNT_CONNECT_ATTEMPT_STATUSES);
|
|
|
11118
11123
|
_enum(PROXY_SURFACES);
|
|
11119
11124
|
_enum(PROXY_CACHE_STATUSES);
|
|
11120
11125
|
_enum(PROXY_CAPABILITIES);
|
|
11126
|
+
_enum(BILLING_OPERATION_LEASE_KINDS);
|
|
11121
11127
|
_enum(CLI_SCOPE_ALIASES$1);
|
|
11122
11128
|
_enum(CLI_CAPABILITIES);
|
|
11123
11129
|
_enum(FEEDBACK_TYPES);
|
|
@@ -11481,6 +11487,17 @@ pgTable("proxy_call_logs", {
|
|
|
11481
11487
|
check("proxy_call_logs_surface_check", sqlCheckIn(table.surface, PROXY_SURFACES)),
|
|
11482
11488
|
check("proxy_call_logs_cache_status_check", sqlCheckIn(table.cacheStatus, PROXY_CACHE_STATUSES))
|
|
11483
11489
|
]);
|
|
11490
|
+
pgTable("billing_operation_leases", {
|
|
11491
|
+
id: text$1("id").primaryKey(),
|
|
11492
|
+
userId: text$1("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
11493
|
+
kind: text$1("kind", { enum: BILLING_OPERATION_LEASE_KINDS }).notNull(),
|
|
11494
|
+
expiresAt: timestamptz("expires_at").notNull(),
|
|
11495
|
+
createdAt: timestamptz("created_at").notNull().defaultNow()
|
|
11496
|
+
}, (table) => [
|
|
11497
|
+
uniqueIndex("billing_operation_leases_migration_user_key").on(table.userId).where(sql`${table.kind} = 'social_plan_migration'`),
|
|
11498
|
+
index("billing_operation_leases_user_kind_expiry_idx").on(table.userId, table.kind, table.expiresAt),
|
|
11499
|
+
check("billing_operation_leases_kind_check", sqlCheckIn(table.kind, BILLING_OPERATION_LEASE_KINDS))
|
|
11500
|
+
]);
|
|
11484
11501
|
const profiles = pgTable("profiles", {
|
|
11485
11502
|
id: text$1("id").primaryKey().$defaultFn(() => crypto.randomUUID()),
|
|
11486
11503
|
platform: text$1("platform", { enum: PLATFORMS }).notNull(),
|
|
@@ -22823,7 +22840,7 @@ const reconnectAccountForIdentifier = async (deps, identifier) => {
|
|
|
22823
22840
|
if (ae.isError(account)) {
|
|
22824
22841
|
if (LinkedinLifecycleNoAccountMatch.is(account.error)) {
|
|
22825
22842
|
const disconnected = resolveLinkedinLifecycleAccount(accounts.filter((candidate) => candidate.status === "disconnected"), identifier);
|
|
22826
|
-
if (ae.isOk(disconnected)) throw new Error(`LinkedIn account @${accountUsername(disconnected.value)} is disconnected and its seat was released. Run \`social account connect linkedin\` to connect it again.`);
|
|
22843
|
+
if (ae.isOk(disconnected)) throw new Error(`LinkedIn account @${accountUsername(disconnected.value)} is disconnected and its seat was released. Run \`social account connect linkedin\` to connect it again. Connecting it again may require billing approval.`);
|
|
22827
22844
|
}
|
|
22828
22845
|
throw account.error;
|
|
22829
22846
|
}
|
|
@@ -22925,7 +22942,7 @@ var XReconnectRequiresConnect = class extends h("XReconnectRequiresConnect") {
|
|
|
22925
22942
|
super({
|
|
22926
22943
|
operation: "reconnect",
|
|
22927
22944
|
account,
|
|
22928
|
-
message: `X account ${account} is disconnected and its seat was released. Run \`social account connect x\` to connect it again.`
|
|
22945
|
+
message: `X account ${account} is disconnected and its seat was released. Run \`social account connect x\` to connect it again. Connecting it again may require billing approval.`
|
|
22929
22946
|
});
|
|
22930
22947
|
this.name = "XReconnectRequiresConnect";
|
|
22931
22948
|
}
|
|
@@ -24487,7 +24504,7 @@ function createEnv(opts) {
|
|
|
24487
24504
|
}
|
|
24488
24505
|
//#endregion
|
|
24489
24506
|
//#region package.json
|
|
24490
|
-
var version$1 = "0.19.
|
|
24507
|
+
var version$1 = "0.19.3";
|
|
24491
24508
|
//#endregion
|
|
24492
24509
|
//#region src/lib/env.ts
|
|
24493
24510
|
const URLWithTrailingSlash = url().transform(ensureTrailingSlash);
|