@openpeepshq/common 0.28.0 → 0.29.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.
@@ -599,6 +599,7 @@ export type JamData = z.infer<typeof jamDataSchema>;
599
599
  export type Jam = JamData;
600
600
  export declare const followDataSchema: z.ZodObject<{
601
601
  uri: z.ZodOptional<z.ZodString>;
602
+ handle: z.ZodOptional<z.ZodString>;
602
603
  reblogs: z.ZodOptional<z.ZodBoolean>;
603
604
  notify: z.ZodOptional<z.ZodBoolean>;
604
605
  languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -606,6 +607,7 @@ export declare const followDataSchema: z.ZodObject<{
606
607
  export type FollowData = z.infer<typeof followDataSchema>;
607
608
  export declare const followSchema: z.ZodObject<{
608
609
  uri: z.ZodOptional<z.ZodString>;
610
+ handle: z.ZodOptional<z.ZodString>;
609
611
  reblogs: z.ZodOptional<z.ZodBoolean>;
610
612
  notify: z.ZodOptional<z.ZodBoolean>;
611
613
  languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -268,6 +268,12 @@ export const jamSchema = jamDataSchema;
268
268
  export const followDataSchema = z.object({
269
269
  /** ActivityPub Follow activity id when federated. */
270
270
  uri: z.string().url().optional(),
271
+ /**
272
+ * Remote account to follow when no resolvable `profileId` is supplied.
273
+ * Accepts `user@domain`, `@user@domain`, or an `https` actor URL. Discovered
274
+ * over ActivityPub (WebFinger) before the follow is created (#241).
275
+ */
276
+ handle: z.string().optional(),
271
277
  reblogs: z.boolean().optional(),
272
278
  notify: z.boolean().optional(),
273
279
  languages: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpeepshq/common",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -398,6 +398,12 @@ export type Jam = JamData;
398
398
  export const followDataSchema = z.object({
399
399
  /** ActivityPub Follow activity id when federated. */
400
400
  uri: z.string().url().optional(),
401
+ /**
402
+ * Remote account to follow when no resolvable `profileId` is supplied.
403
+ * Accepts `user@domain`, `@user@domain`, or an `https` actor URL. Discovered
404
+ * over ActivityPub (WebFinger) before the follow is created (#241).
405
+ */
406
+ handle: z.string().optional(),
401
407
  reblogs: z.boolean().optional(),
402
408
  notify: z.boolean().optional(),
403
409
  languages: z