@isaacthoman/pulpo 0.175.0 → 0.176.0
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 +44 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24594,7 +24594,34 @@ var toolImagePreviewSchema = external_exports.object({
|
|
|
24594
24594
|
var DEFAULT_MAX_ATTACHMENT_BYTES = 25 * 1024 * 1024;
|
|
24595
24595
|
var MAX_CONFIGURABLE_ATTACHMENT_BYTES = 1e3 * 1024 * 1024;
|
|
24596
24596
|
var roleSchema = external_exports.enum(["pending", "user", "admin"]);
|
|
24597
|
-
var
|
|
24597
|
+
var RESERVED_PROFILE_USERNAMES = [
|
|
24598
|
+
"account-deletion",
|
|
24599
|
+
"admin",
|
|
24600
|
+
"api",
|
|
24601
|
+
"api-keys",
|
|
24602
|
+
"assets",
|
|
24603
|
+
"attachments",
|
|
24604
|
+
"billing",
|
|
24605
|
+
"c",
|
|
24606
|
+
"files",
|
|
24607
|
+
"forgot-password",
|
|
24608
|
+
"friends",
|
|
24609
|
+
"health",
|
|
24610
|
+
"login",
|
|
24611
|
+
"mobile",
|
|
24612
|
+
"pending",
|
|
24613
|
+
"privacy",
|
|
24614
|
+
"ready",
|
|
24615
|
+
"reset-password",
|
|
24616
|
+
"setup",
|
|
24617
|
+
"share",
|
|
24618
|
+
"signup",
|
|
24619
|
+
"support",
|
|
24620
|
+
"usage",
|
|
24621
|
+
"v1"
|
|
24622
|
+
];
|
|
24623
|
+
var reservedProfileUsernames = new Set(RESERVED_PROFILE_USERNAMES);
|
|
24624
|
+
var usernameSchema = external_exports.string().trim().toLowerCase().regex(/^[a-z0-9][a-z0-9_]{1,28}[a-z0-9]$/, "Use 3\u201330 letters, numbers, or underscores; begin and end with a letter or number").refine((username) => !reservedProfileUsernames.has(username), "That username is reserved by Pulpo");
|
|
24598
24625
|
var profileColorSchema = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/);
|
|
24599
24626
|
var userSchema = external_exports.object({
|
|
24600
24627
|
id: idSchema,
|
|
@@ -24899,13 +24926,26 @@ var friendConnectionSchema = external_exports.object({
|
|
|
24899
24926
|
requestId: idSchema,
|
|
24900
24927
|
profile: friendProfileSchema,
|
|
24901
24928
|
requestedAt: isoDateSchema,
|
|
24902
|
-
acceptedAt: isoDateSchema.nullable()
|
|
24929
|
+
acceptedAt: isoDateSchema.nullable(),
|
|
24930
|
+
mutualFriends: external_exports.array(friendProfileSchema).optional()
|
|
24931
|
+
});
|
|
24932
|
+
var friendSuggestionSchema = external_exports.object({
|
|
24933
|
+
profile: friendProfileSchema,
|
|
24934
|
+
mutualFriends: external_exports.array(friendProfileSchema).min(1)
|
|
24903
24935
|
});
|
|
24904
24936
|
var friendsListSchema = external_exports.object({
|
|
24905
24937
|
friends: external_exports.array(friendConnectionSchema),
|
|
24906
24938
|
incoming: external_exports.array(friendConnectionSchema),
|
|
24907
24939
|
outgoing: external_exports.array(friendConnectionSchema),
|
|
24908
|
-
blocked: external_exports.array(friendProfileSchema)
|
|
24940
|
+
blocked: external_exports.array(friendProfileSchema),
|
|
24941
|
+
suggestions: external_exports.array(friendSuggestionSchema).max(6).optional()
|
|
24942
|
+
});
|
|
24943
|
+
var friendProfileDetailSchema = external_exports.object({
|
|
24944
|
+
profile: friendProfileSchema,
|
|
24945
|
+
relationship: friendRelationshipSchema,
|
|
24946
|
+
requestId: idSchema.nullable(),
|
|
24947
|
+
friendsSince: isoDateSchema.nullable(),
|
|
24948
|
+
mutualFriends: external_exports.array(friendProfileSchema)
|
|
24909
24949
|
});
|
|
24910
24950
|
var poolMemberSchema = external_exports.object({
|
|
24911
24951
|
profile: friendProfileSchema,
|
|
@@ -36655,7 +36695,7 @@ async function runModelTest(input2) {
|
|
|
36655
36695
|
}
|
|
36656
36696
|
|
|
36657
36697
|
// src/index.ts
|
|
36658
|
-
var CLI_VERSION = true ? "0.
|
|
36698
|
+
var CLI_VERSION = true ? "0.176.0" : "0.1.0";
|
|
36659
36699
|
var CLI_BUNDLED = true;
|
|
36660
36700
|
var commandIo = /* @__PURE__ */ new WeakMap();
|
|
36661
36701
|
var commandClientFactory = /* @__PURE__ */ new WeakMap();
|