@openpeepshq/common 0.18.0 → 0.20.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/types/api.js CHANGED
@@ -214,6 +214,8 @@ export const serverInfoSchema = z.object({
214
214
  build: z.string().optional(),
215
215
  environment: z.string(),
216
216
  publicContent: z.boolean(),
217
+ /** Whether this instance syncs with the wider ActivityPub network. Public, sanitized — no peer/allowlist data. */
218
+ federation: z.object({ active: z.boolean() }),
217
219
  /** Process start time (ISO). */
218
220
  startedAt: z.iso.datetime(),
219
221
  uptimeSeconds: z.number().nonnegative(),
@@ -13,9 +13,9 @@ export declare const authorizationSchema: z.ZodObject<{
13
13
  }>>;
14
14
  resource: z.ZodObject<{
15
15
  type: z.ZodEnum<{
16
+ db: "db";
16
17
  self: "self";
17
18
  "*": "*";
18
- db: "db";
19
19
  jams: "jams";
20
20
  profiles: "profiles";
21
21
  notifications: "notifications";
@@ -70,9 +70,9 @@ export declare const authorizationDataSchema: z.ZodObject<{
70
70
  email: z.ZodOptional<z.ZodEmail>;
71
71
  resource: z.ZodOptional<z.ZodObject<{
72
72
  type: z.ZodEnum<{
73
+ db: "db";
73
74
  self: "self";
74
75
  "*": "*";
75
- db: "db";
76
76
  jams: "jams";
77
77
  profiles: "profiles";
78
78
  notifications: "notifications";
@@ -140,9 +140,9 @@ export declare const authorizationDataSchema: z.ZodObject<{
140
140
  email: z.ZodOptional<z.ZodEmail>;
141
141
  resource: z.ZodOptional<z.ZodObject<{
142
142
  type: z.ZodEnum<{
143
+ db: "db";
143
144
  self: "self";
144
145
  "*": "*";
145
- db: "db";
146
146
  jams: "jams";
147
147
  profiles: "profiles";
148
148
  notifications: "notifications";
@@ -200,9 +200,9 @@ export declare const authorizationDataSchema: z.ZodObject<{
200
200
  email: z.ZodOptional<z.ZodEmail>;
201
201
  resource: z.ZodOptional<z.ZodObject<{
202
202
  type: z.ZodEnum<{
203
+ db: "db";
203
204
  self: "self";
204
205
  "*": "*";
205
- db: "db";
206
206
  jams: "jams";
207
207
  profiles: "profiles";
208
208
  notifications: "notifications";
@@ -235,11 +235,11 @@ export declare const authorizationDataSchema: z.ZodObject<{
235
235
  }, z.core.$strip>>;
236
236
  memberships: z.ZodArray<z.ZodObject<{
237
237
  roles: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
238
+ admin: "admin";
238
239
  none: "none";
239
240
  local: "local";
240
241
  member: "member";
241
242
  moderator: "moderator";
242
- admin: "admin";
243
243
  owner: "owner";
244
244
  invited: "invited";
245
245
  }>>>>;
@@ -328,9 +328,9 @@ export declare const authorizationDataSchema: z.ZodObject<{
328
328
  email: z.ZodOptional<z.ZodEmail>;
329
329
  resource: z.ZodOptional<z.ZodObject<{
330
330
  type: z.ZodEnum<{
331
+ db: "db";
331
332
  self: "self";
332
333
  "*": "*";
333
- db: "db";
334
334
  jams: "jams";
335
335
  profiles: "profiles";
336
336
  notifications: "notifications";
@@ -361,9 +361,9 @@ export declare const authorizationDataSchema: z.ZodObject<{
361
361
  }>>;
362
362
  resource: z.ZodObject<{
363
363
  type: z.ZodEnum<{
364
+ db: "db";
364
365
  self: "self";
365
366
  "*": "*";
366
- db: "db";
367
367
  jams: "jams";
368
368
  profiles: "profiles";
369
369
  notifications: "notifications";