@llun/activities.schema 0.1.1 → 0.2.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.
Files changed (117) hide show
  1. package/dist/cjs/accept.js +11 -0
  2. package/dist/cjs/follow.js +10 -0
  3. package/dist/cjs/index.js +24 -0
  4. package/dist/cjs/like.js +11 -0
  5. package/dist/cjs/mastodon/account.js +90 -0
  6. package/dist/cjs/mastodon/accountField.js +18 -0
  7. package/dist/cjs/mastodon/customEmoji.js +24 -0
  8. package/dist/cjs/mastodon/filter/index.js +27 -0
  9. package/dist/cjs/mastodon/filter/keyword.js +12 -0
  10. package/dist/cjs/mastodon/filter/status.js +11 -0
  11. package/dist/cjs/mastodon/filterResult.js +19 -0
  12. package/dist/cjs/mastodon/index.js +25 -0
  13. package/dist/cjs/mastodon/mediaAttachment/audio.js +20 -0
  14. package/dist/cjs/mastodon/mediaAttachment/base.js +29 -0
  15. package/dist/cjs/mastodon/mediaAttachment/gifv.js +40 -0
  16. package/dist/cjs/mastodon/mediaAttachment/image.js +33 -0
  17. package/dist/cjs/mastodon/mediaAttachment/index.js +11 -0
  18. package/dist/cjs/mastodon/mediaAttachment/unknown.js +11 -0
  19. package/dist/cjs/mastodon/mediaAttachment/video.js +41 -0
  20. package/dist/cjs/mastodon/poll/index.js +30 -0
  21. package/dist/cjs/mastodon/poll/option.js +13 -0
  22. package/dist/cjs/mastodon/previewCard.js +37 -0
  23. package/dist/cjs/mastodon/status/application.js +15 -0
  24. package/dist/cjs/mastodon/status/base.js +99 -0
  25. package/dist/cjs/mastodon/status/index.js +7 -0
  26. package/dist/cjs/mastodon/status/mention.js +15 -0
  27. package/dist/cjs/mastodon/status/tag.js +13 -0
  28. package/dist/cjs/mastodon/status/visibility.js +6 -0
  29. package/dist/cjs/note/attachment.js +7 -0
  30. package/dist/cjs/note/baseContent.js +27 -0
  31. package/dist/cjs/note/document.js +14 -0
  32. package/dist/cjs/note/emoji.js +11 -0
  33. package/dist/cjs/note/image.js +9 -0
  34. package/dist/cjs/note/mention.js +9 -0
  35. package/dist/cjs/note/propertyValue.js +9 -0
  36. package/dist/cjs/note.js +8 -0
  37. package/dist/cjs/reject.js +11 -0
  38. package/dist/cjs/undo.js +12 -0
  39. package/dist/{mastodon → esm/mastodon}/account.js +2 -2
  40. package/dist/{mastodon → types/mastodon}/account.d.ts +20 -20
  41. package/dist/{mastodon → types/mastodon}/status/base.d.ts +34 -34
  42. package/dist/{mastodon → types/mastodon}/status/index.d.ts +82 -82
  43. package/package.json +12 -4
  44. package/src/mastodon/account.ts +2 -2
  45. package/tsconfig.json +0 -3
  46. /package/dist/{accept.js → esm/accept.js} +0 -0
  47. /package/dist/{follow.js → esm/follow.js} +0 -0
  48. /package/dist/{index.js → esm/index.js} +0 -0
  49. /package/dist/{like.js → esm/like.js} +0 -0
  50. /package/dist/{mastodon → esm/mastodon}/accountField.js +0 -0
  51. /package/dist/{mastodon → esm/mastodon}/customEmoji.js +0 -0
  52. /package/dist/{mastodon → esm/mastodon}/filter/index.js +0 -0
  53. /package/dist/{mastodon → esm/mastodon}/filter/keyword.js +0 -0
  54. /package/dist/{mastodon → esm/mastodon}/filter/status.js +0 -0
  55. /package/dist/{mastodon → esm/mastodon}/filterResult.js +0 -0
  56. /package/dist/{mastodon → esm/mastodon}/index.js +0 -0
  57. /package/dist/{mastodon → esm/mastodon}/mediaAttachment/audio.js +0 -0
  58. /package/dist/{mastodon → esm/mastodon}/mediaAttachment/base.js +0 -0
  59. /package/dist/{mastodon → esm/mastodon}/mediaAttachment/gifv.js +0 -0
  60. /package/dist/{mastodon → esm/mastodon}/mediaAttachment/image.js +0 -0
  61. /package/dist/{mastodon → esm/mastodon}/mediaAttachment/index.js +0 -0
  62. /package/dist/{mastodon → esm/mastodon}/mediaAttachment/unknown.js +0 -0
  63. /package/dist/{mastodon → esm/mastodon}/mediaAttachment/video.js +0 -0
  64. /package/dist/{mastodon → esm/mastodon}/poll/index.js +0 -0
  65. /package/dist/{mastodon → esm/mastodon}/poll/option.js +0 -0
  66. /package/dist/{mastodon → esm/mastodon}/previewCard.js +0 -0
  67. /package/dist/{mastodon → esm/mastodon}/status/application.js +0 -0
  68. /package/dist/{mastodon → esm/mastodon}/status/base.js +0 -0
  69. /package/dist/{mastodon → esm/mastodon}/status/index.js +0 -0
  70. /package/dist/{mastodon → esm/mastodon}/status/mention.js +0 -0
  71. /package/dist/{mastodon → esm/mastodon}/status/tag.js +0 -0
  72. /package/dist/{mastodon → esm/mastodon}/status/visibility.js +0 -0
  73. /package/dist/{note → esm/note}/attachment.js +0 -0
  74. /package/dist/{note → esm/note}/baseContent.js +0 -0
  75. /package/dist/{note → esm/note}/document.js +0 -0
  76. /package/dist/{note → esm/note}/emoji.js +0 -0
  77. /package/dist/{note → esm/note}/image.js +0 -0
  78. /package/dist/{note → esm/note}/mention.js +0 -0
  79. /package/dist/{note → esm/note}/propertyValue.js +0 -0
  80. /package/dist/{note.js → esm/note.js} +0 -0
  81. /package/dist/{reject.js → esm/reject.js} +0 -0
  82. /package/dist/{undo.js → esm/undo.js} +0 -0
  83. /package/dist/{accept.d.ts → types/accept.d.ts} +0 -0
  84. /package/dist/{follow.d.ts → types/follow.d.ts} +0 -0
  85. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
  86. /package/dist/{like.d.ts → types/like.d.ts} +0 -0
  87. /package/dist/{mastodon → types/mastodon}/accountField.d.ts +0 -0
  88. /package/dist/{mastodon → types/mastodon}/customEmoji.d.ts +0 -0
  89. /package/dist/{mastodon → types/mastodon}/filter/index.d.ts +0 -0
  90. /package/dist/{mastodon → types/mastodon}/filter/keyword.d.ts +0 -0
  91. /package/dist/{mastodon → types/mastodon}/filter/status.d.ts +0 -0
  92. /package/dist/{mastodon → types/mastodon}/filterResult.d.ts +0 -0
  93. /package/dist/{mastodon → types/mastodon}/index.d.ts +0 -0
  94. /package/dist/{mastodon → types/mastodon}/mediaAttachment/audio.d.ts +0 -0
  95. /package/dist/{mastodon → types/mastodon}/mediaAttachment/base.d.ts +0 -0
  96. /package/dist/{mastodon → types/mastodon}/mediaAttachment/gifv.d.ts +0 -0
  97. /package/dist/{mastodon → types/mastodon}/mediaAttachment/image.d.ts +0 -0
  98. /package/dist/{mastodon → types/mastodon}/mediaAttachment/index.d.ts +0 -0
  99. /package/dist/{mastodon → types/mastodon}/mediaAttachment/unknown.d.ts +0 -0
  100. /package/dist/{mastodon → types/mastodon}/mediaAttachment/video.d.ts +0 -0
  101. /package/dist/{mastodon → types/mastodon}/poll/index.d.ts +0 -0
  102. /package/dist/{mastodon → types/mastodon}/poll/option.d.ts +0 -0
  103. /package/dist/{mastodon → types/mastodon}/previewCard.d.ts +0 -0
  104. /package/dist/{mastodon → types/mastodon}/status/application.d.ts +0 -0
  105. /package/dist/{mastodon → types/mastodon}/status/mention.d.ts +0 -0
  106. /package/dist/{mastodon → types/mastodon}/status/tag.d.ts +0 -0
  107. /package/dist/{mastodon → types/mastodon}/status/visibility.d.ts +0 -0
  108. /package/dist/{note → types/note}/attachment.d.ts +0 -0
  109. /package/dist/{note → types/note}/baseContent.d.ts +0 -0
  110. /package/dist/{note → types/note}/document.d.ts +0 -0
  111. /package/dist/{note → types/note}/emoji.d.ts +0 -0
  112. /package/dist/{note → types/note}/image.d.ts +0 -0
  113. /package/dist/{note → types/note}/mention.d.ts +0 -0
  114. /package/dist/{note → types/note}/propertyValue.d.ts +0 -0
  115. /package/dist/{note.d.ts → types/note.d.ts} +0 -0
  116. /package/dist/{reject.d.ts → types/reject.d.ts} +0 -0
  117. /package/dist/{undo.d.ts → types/undo.d.ts} +0 -0
@@ -13,7 +13,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
13
13
  avatar_static: z.ZodString;
14
14
  header: z.ZodString;
15
15
  header_static: z.ZodString;
16
- loacked: z.ZodString;
16
+ locked: z.ZodBoolean;
17
17
  fields: z.ZodArray<z.ZodObject<{
18
18
  name: z.ZodString;
19
19
  value: z.ZodString;
@@ -58,7 +58,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
58
58
  followers_count: z.ZodNumber;
59
59
  following_count: z.ZodNumber;
60
60
  }, {
61
- moved: z.ZodNullable<z.ZodObject<{
61
+ moved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
62
62
  id: z.ZodString;
63
63
  username: z.ZodString;
64
64
  acct: z.ZodString;
@@ -69,7 +69,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
69
69
  avatar_static: z.ZodString;
70
70
  header: z.ZodString;
71
71
  header_static: z.ZodString;
72
- loacked: z.ZodString;
72
+ locked: z.ZodBoolean;
73
73
  fields: z.ZodArray<z.ZodObject<{
74
74
  name: z.ZodString;
75
75
  value: z.ZodString;
@@ -124,7 +124,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
124
124
  avatar_static: string;
125
125
  header: string;
126
126
  header_static: string;
127
- loacked: string;
127
+ locked: boolean;
128
128
  fields: {
129
129
  value: string;
130
130
  name: string;
@@ -159,7 +159,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
159
159
  avatar_static: string;
160
160
  header: string;
161
161
  header_static: string;
162
- loacked: string;
162
+ locked: boolean;
163
163
  fields: {
164
164
  value: string;
165
165
  name: string;
@@ -183,7 +183,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
183
183
  noindex?: boolean | null | undefined;
184
184
  suspended?: boolean | undefined;
185
185
  limited?: boolean | undefined;
186
- }>>;
186
+ }>>>;
187
187
  }>, "strip", z.ZodTypeAny, {
188
188
  id: string;
189
189
  url: string;
@@ -195,7 +195,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
195
195
  avatar_static: string;
196
196
  header: string;
197
197
  header_static: string;
198
- loacked: string;
198
+ locked: boolean;
199
199
  fields: {
200
200
  value: string;
201
201
  name: string;
@@ -216,7 +216,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
216
216
  statuses_count: number;
217
217
  followers_count: number;
218
218
  following_count: number;
219
- moved: {
219
+ noindex?: boolean | null | undefined;
220
+ suspended?: boolean | undefined;
221
+ limited?: boolean | undefined;
222
+ moved?: {
220
223
  id: string;
221
224
  url: string;
222
225
  username: string;
@@ -227,7 +230,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
227
230
  avatar_static: string;
228
231
  header: string;
229
232
  header_static: string;
230
- loacked: string;
233
+ locked: boolean;
231
234
  fields: {
232
235
  value: string;
233
236
  name: string;
@@ -251,10 +254,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
251
254
  noindex?: boolean | null | undefined;
252
255
  suspended?: boolean | undefined;
253
256
  limited?: boolean | undefined;
254
- } | null;
255
- noindex?: boolean | null | undefined;
256
- suspended?: boolean | undefined;
257
- limited?: boolean | undefined;
257
+ } | null | undefined;
258
258
  }, {
259
259
  id: string;
260
260
  url: string;
@@ -266,7 +266,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
266
266
  avatar_static: string;
267
267
  header: string;
268
268
  header_static: string;
269
- loacked: string;
269
+ locked: boolean;
270
270
  fields: {
271
271
  value: string;
272
272
  name: string;
@@ -287,7 +287,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
287
287
  statuses_count: number;
288
288
  followers_count: number;
289
289
  following_count: number;
290
- moved: {
290
+ noindex?: boolean | null | undefined;
291
+ suspended?: boolean | undefined;
292
+ limited?: boolean | undefined;
293
+ moved?: {
291
294
  id: string;
292
295
  url: string;
293
296
  username: string;
@@ -298,7 +301,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
298
301
  avatar_static: string;
299
302
  header: string;
300
303
  header_static: string;
301
- loacked: string;
304
+ locked: boolean;
302
305
  fields: {
303
306
  value: string;
304
307
  name: string;
@@ -322,10 +325,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
322
325
  noindex?: boolean | null | undefined;
323
326
  suspended?: boolean | undefined;
324
327
  limited?: boolean | undefined;
325
- } | null;
326
- noindex?: boolean | null | undefined;
327
- suspended?: boolean | undefined;
328
- limited?: boolean | undefined;
328
+ } | null | undefined;
329
329
  }>;
330
330
  content: z.ZodString;
331
331
  visibility: z.ZodEnum<["public", "unlist", "private", "direct"]>;
@@ -1191,7 +1191,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1191
1191
  avatar_static: z.ZodString;
1192
1192
  header: z.ZodString;
1193
1193
  header_static: z.ZodString;
1194
- loacked: z.ZodString;
1194
+ locked: z.ZodBoolean;
1195
1195
  fields: z.ZodArray<z.ZodObject<{
1196
1196
  name: z.ZodString;
1197
1197
  value: z.ZodString;
@@ -1236,7 +1236,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1236
1236
  followers_count: z.ZodNumber;
1237
1237
  following_count: z.ZodNumber;
1238
1238
  }, {
1239
- moved: z.ZodNullable<z.ZodObject<{
1239
+ moved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1240
1240
  id: z.ZodString;
1241
1241
  username: z.ZodString;
1242
1242
  acct: z.ZodString;
@@ -1247,7 +1247,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1247
1247
  avatar_static: z.ZodString;
1248
1248
  header: z.ZodString;
1249
1249
  header_static: z.ZodString;
1250
- loacked: z.ZodString;
1250
+ locked: z.ZodBoolean;
1251
1251
  fields: z.ZodArray<z.ZodObject<{
1252
1252
  name: z.ZodString;
1253
1253
  value: z.ZodString;
@@ -1302,7 +1302,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1302
1302
  avatar_static: string;
1303
1303
  header: string;
1304
1304
  header_static: string;
1305
- loacked: string;
1305
+ locked: boolean;
1306
1306
  fields: {
1307
1307
  value: string;
1308
1308
  name: string;
@@ -1337,7 +1337,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1337
1337
  avatar_static: string;
1338
1338
  header: string;
1339
1339
  header_static: string;
1340
- loacked: string;
1340
+ locked: boolean;
1341
1341
  fields: {
1342
1342
  value: string;
1343
1343
  name: string;
@@ -1361,7 +1361,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1361
1361
  noindex?: boolean | null | undefined;
1362
1362
  suspended?: boolean | undefined;
1363
1363
  limited?: boolean | undefined;
1364
- }>>;
1364
+ }>>>;
1365
1365
  }>, "strip", z.ZodTypeAny, {
1366
1366
  id: string;
1367
1367
  url: string;
@@ -1373,7 +1373,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1373
1373
  avatar_static: string;
1374
1374
  header: string;
1375
1375
  header_static: string;
1376
- loacked: string;
1376
+ locked: boolean;
1377
1377
  fields: {
1378
1378
  value: string;
1379
1379
  name: string;
@@ -1394,7 +1394,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1394
1394
  statuses_count: number;
1395
1395
  followers_count: number;
1396
1396
  following_count: number;
1397
- moved: {
1397
+ noindex?: boolean | null | undefined;
1398
+ suspended?: boolean | undefined;
1399
+ limited?: boolean | undefined;
1400
+ moved?: {
1398
1401
  id: string;
1399
1402
  url: string;
1400
1403
  username: string;
@@ -1405,7 +1408,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1405
1408
  avatar_static: string;
1406
1409
  header: string;
1407
1410
  header_static: string;
1408
- loacked: string;
1411
+ locked: boolean;
1409
1412
  fields: {
1410
1413
  value: string;
1411
1414
  name: string;
@@ -1429,10 +1432,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1429
1432
  noindex?: boolean | null | undefined;
1430
1433
  suspended?: boolean | undefined;
1431
1434
  limited?: boolean | undefined;
1432
- } | null;
1433
- noindex?: boolean | null | undefined;
1434
- suspended?: boolean | undefined;
1435
- limited?: boolean | undefined;
1435
+ } | null | undefined;
1436
1436
  }, {
1437
1437
  id: string;
1438
1438
  url: string;
@@ -1444,7 +1444,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1444
1444
  avatar_static: string;
1445
1445
  header: string;
1446
1446
  header_static: string;
1447
- loacked: string;
1447
+ locked: boolean;
1448
1448
  fields: {
1449
1449
  value: string;
1450
1450
  name: string;
@@ -1465,7 +1465,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1465
1465
  statuses_count: number;
1466
1466
  followers_count: number;
1467
1467
  following_count: number;
1468
- moved: {
1468
+ noindex?: boolean | null | undefined;
1469
+ suspended?: boolean | undefined;
1470
+ limited?: boolean | undefined;
1471
+ moved?: {
1469
1472
  id: string;
1470
1473
  url: string;
1471
1474
  username: string;
@@ -1476,7 +1479,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1476
1479
  avatar_static: string;
1477
1480
  header: string;
1478
1481
  header_static: string;
1479
- loacked: string;
1482
+ locked: boolean;
1480
1483
  fields: {
1481
1484
  value: string;
1482
1485
  name: string;
@@ -1500,10 +1503,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
1500
1503
  noindex?: boolean | null | undefined;
1501
1504
  suspended?: boolean | undefined;
1502
1505
  limited?: boolean | undefined;
1503
- } | null;
1504
- noindex?: boolean | null | undefined;
1505
- suspended?: boolean | undefined;
1506
- limited?: boolean | undefined;
1506
+ } | null | undefined;
1507
1507
  }>;
1508
1508
  content: z.ZodString;
1509
1509
  visibility: z.ZodEnum<["public", "unlist", "private", "direct"]>;
@@ -2377,7 +2377,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2377
2377
  avatar_static: string;
2378
2378
  header: string;
2379
2379
  header_static: string;
2380
- loacked: string;
2380
+ locked: boolean;
2381
2381
  fields: {
2382
2382
  value: string;
2383
2383
  name: string;
@@ -2398,7 +2398,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2398
2398
  statuses_count: number;
2399
2399
  followers_count: number;
2400
2400
  following_count: number;
2401
- moved: {
2401
+ noindex?: boolean | null | undefined;
2402
+ suspended?: boolean | undefined;
2403
+ limited?: boolean | undefined;
2404
+ moved?: {
2402
2405
  id: string;
2403
2406
  url: string;
2404
2407
  username: string;
@@ -2409,7 +2412,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2409
2412
  avatar_static: string;
2410
2413
  header: string;
2411
2414
  header_static: string;
2412
- loacked: string;
2415
+ locked: boolean;
2413
2416
  fields: {
2414
2417
  value: string;
2415
2418
  name: string;
@@ -2433,10 +2436,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2433
2436
  noindex?: boolean | null | undefined;
2434
2437
  suspended?: boolean | undefined;
2435
2438
  limited?: boolean | undefined;
2436
- } | null;
2437
- noindex?: boolean | null | undefined;
2438
- suspended?: boolean | undefined;
2439
- limited?: boolean | undefined;
2439
+ } | null | undefined;
2440
2440
  };
2441
2441
  uri: string;
2442
2442
  visibility: "public" | "unlist" | "private" | "direct";
@@ -2656,7 +2656,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2656
2656
  avatar_static: string;
2657
2657
  header: string;
2658
2658
  header_static: string;
2659
- loacked: string;
2659
+ locked: boolean;
2660
2660
  fields: {
2661
2661
  value: string;
2662
2662
  name: string;
@@ -2677,7 +2677,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2677
2677
  statuses_count: number;
2678
2678
  followers_count: number;
2679
2679
  following_count: number;
2680
- moved: {
2680
+ noindex?: boolean | null | undefined;
2681
+ suspended?: boolean | undefined;
2682
+ limited?: boolean | undefined;
2683
+ moved?: {
2681
2684
  id: string;
2682
2685
  url: string;
2683
2686
  username: string;
@@ -2688,7 +2691,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2688
2691
  avatar_static: string;
2689
2692
  header: string;
2690
2693
  header_static: string;
2691
- loacked: string;
2694
+ locked: boolean;
2692
2695
  fields: {
2693
2696
  value: string;
2694
2697
  name: string;
@@ -2712,10 +2715,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2712
2715
  noindex?: boolean | null | undefined;
2713
2716
  suspended?: boolean | undefined;
2714
2717
  limited?: boolean | undefined;
2715
- } | null;
2716
- noindex?: boolean | null | undefined;
2717
- suspended?: boolean | undefined;
2718
- limited?: boolean | undefined;
2718
+ } | null | undefined;
2719
2719
  };
2720
2720
  uri: string;
2721
2721
  visibility: "public" | "unlist" | "private" | "direct";
@@ -2936,7 +2936,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2936
2936
  avatar_static: string;
2937
2937
  header: string;
2938
2938
  header_static: string;
2939
- loacked: string;
2939
+ locked: boolean;
2940
2940
  fields: {
2941
2941
  value: string;
2942
2942
  name: string;
@@ -2957,7 +2957,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2957
2957
  statuses_count: number;
2958
2958
  followers_count: number;
2959
2959
  following_count: number;
2960
- moved: {
2960
+ noindex?: boolean | null | undefined;
2961
+ suspended?: boolean | undefined;
2962
+ limited?: boolean | undefined;
2963
+ moved?: {
2961
2964
  id: string;
2962
2965
  url: string;
2963
2966
  username: string;
@@ -2968,7 +2971,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2968
2971
  avatar_static: string;
2969
2972
  header: string;
2970
2973
  header_static: string;
2971
- loacked: string;
2974
+ locked: boolean;
2972
2975
  fields: {
2973
2976
  value: string;
2974
2977
  name: string;
@@ -2992,10 +2995,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
2992
2995
  noindex?: boolean | null | undefined;
2993
2996
  suspended?: boolean | undefined;
2994
2997
  limited?: boolean | undefined;
2995
- } | null;
2996
- noindex?: boolean | null | undefined;
2997
- suspended?: boolean | undefined;
2998
- limited?: boolean | undefined;
2998
+ } | null | undefined;
2999
2999
  };
3000
3000
  uri: string;
3001
3001
  visibility: "public" | "unlist" | "private" | "direct";
@@ -3186,7 +3186,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3186
3186
  avatar_static: string;
3187
3187
  header: string;
3188
3188
  header_static: string;
3189
- loacked: string;
3189
+ locked: boolean;
3190
3190
  fields: {
3191
3191
  value: string;
3192
3192
  name: string;
@@ -3207,7 +3207,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3207
3207
  statuses_count: number;
3208
3208
  followers_count: number;
3209
3209
  following_count: number;
3210
- moved: {
3210
+ noindex?: boolean | null | undefined;
3211
+ suspended?: boolean | undefined;
3212
+ limited?: boolean | undefined;
3213
+ moved?: {
3211
3214
  id: string;
3212
3215
  url: string;
3213
3216
  username: string;
@@ -3218,7 +3221,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3218
3221
  avatar_static: string;
3219
3222
  header: string;
3220
3223
  header_static: string;
3221
- loacked: string;
3224
+ locked: boolean;
3222
3225
  fields: {
3223
3226
  value: string;
3224
3227
  name: string;
@@ -3242,10 +3245,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3242
3245
  noindex?: boolean | null | undefined;
3243
3246
  suspended?: boolean | undefined;
3244
3247
  limited?: boolean | undefined;
3245
- } | null;
3246
- noindex?: boolean | null | undefined;
3247
- suspended?: boolean | undefined;
3248
- limited?: boolean | undefined;
3248
+ } | null | undefined;
3249
3249
  };
3250
3250
  uri: string;
3251
3251
  visibility: "public" | "unlist" | "private" | "direct";
@@ -3495,7 +3495,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3495
3495
  avatar_static: string;
3496
3496
  header: string;
3497
3497
  header_static: string;
3498
- loacked: string;
3498
+ locked: boolean;
3499
3499
  fields: {
3500
3500
  value: string;
3501
3501
  name: string;
@@ -3516,7 +3516,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3516
3516
  statuses_count: number;
3517
3517
  followers_count: number;
3518
3518
  following_count: number;
3519
- moved: {
3519
+ noindex?: boolean | null | undefined;
3520
+ suspended?: boolean | undefined;
3521
+ limited?: boolean | undefined;
3522
+ moved?: {
3520
3523
  id: string;
3521
3524
  url: string;
3522
3525
  username: string;
@@ -3527,7 +3530,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3527
3530
  avatar_static: string;
3528
3531
  header: string;
3529
3532
  header_static: string;
3530
- loacked: string;
3533
+ locked: boolean;
3531
3534
  fields: {
3532
3535
  value: string;
3533
3536
  name: string;
@@ -3551,10 +3554,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3551
3554
  noindex?: boolean | null | undefined;
3552
3555
  suspended?: boolean | undefined;
3553
3556
  limited?: boolean | undefined;
3554
- } | null;
3555
- noindex?: boolean | null | undefined;
3556
- suspended?: boolean | undefined;
3557
- limited?: boolean | undefined;
3557
+ } | null | undefined;
3558
3558
  };
3559
3559
  uri: string;
3560
3560
  visibility: "public" | "unlist" | "private" | "direct";
@@ -3745,7 +3745,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3745
3745
  avatar_static: string;
3746
3746
  header: string;
3747
3747
  header_static: string;
3748
- loacked: string;
3748
+ locked: boolean;
3749
3749
  fields: {
3750
3750
  value: string;
3751
3751
  name: string;
@@ -3766,7 +3766,10 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3766
3766
  statuses_count: number;
3767
3767
  followers_count: number;
3768
3768
  following_count: number;
3769
- moved: {
3769
+ noindex?: boolean | null | undefined;
3770
+ suspended?: boolean | undefined;
3771
+ limited?: boolean | undefined;
3772
+ moved?: {
3770
3773
  id: string;
3771
3774
  url: string;
3772
3775
  username: string;
@@ -3777,7 +3780,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3777
3780
  avatar_static: string;
3778
3781
  header: string;
3779
3782
  header_static: string;
3780
- loacked: string;
3783
+ locked: boolean;
3781
3784
  fields: {
3782
3785
  value: string;
3783
3786
  name: string;
@@ -3801,10 +3804,7 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
3801
3804
  noindex?: boolean | null | undefined;
3802
3805
  suspended?: boolean | undefined;
3803
3806
  limited?: boolean | undefined;
3804
- } | null;
3805
- noindex?: boolean | null | undefined;
3806
- suspended?: boolean | undefined;
3807
- limited?: boolean | undefined;
3807
+ } | null | undefined;
3808
3808
  };
3809
3809
  uri: string;
3810
3810
  visibility: "public" | "unlist" | "private" | "direct";
package/package.json CHANGED
@@ -1,12 +1,20 @@
1
1
  {
2
2
  "name": "@llun/activities.schema",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Validate ActivityPub and Mastodon with Zod",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "require": "./dist/cjs/index.js",
11
+ "import": "./dist/esm/index.mjs",
12
+ "types": "./dist/cjs/index.d.ts"
13
+ }
14
+ },
7
15
  "type": "module",
8
16
  "scripts": {
9
- "build": "tsc",
17
+ "build": "mkdir -p dist && tsc --module commonjs --outDir dist/cjs && tsc --module node16 --outDir dist/esm && tsc --emitDeclarationOnly --declaration --moduleResolution node16 --module node16 --outDir dist/types",
10
18
  "release": "rm -rf dist && npm run build && npm publish --access public"
11
19
  },
12
20
  "author": "Maythee Anegboonlap <null@llun.dev>",
@@ -40,7 +40,7 @@ const BaseAccount = z.object({
40
40
  description:
41
41
  "A static version of the `header`. Equal to `header` if its value is a static image; different if `header` is an animated GIF",
42
42
  }),
43
- loacked: z.string({
43
+ locked: z.boolean({
44
44
  description: "Whether the actor manually approves follow requests",
45
45
  }),
46
46
  fields: AccountField.array().describe(
@@ -104,7 +104,7 @@ const BaseAccount = z.object({
104
104
  type BaseAccount = z.infer<typeof BaseAccount>;
105
105
 
106
106
  export const Account = BaseAccount.extend({
107
- moved: BaseAccount.nullable().describe(
107
+ moved: BaseAccount.nullish().describe(
108
108
  "Indicates that the profile is currently inactive and that its user has moved to a new account"
109
109
  ),
110
110
  });
package/tsconfig.json CHANGED
@@ -5,10 +5,7 @@
5
5
  "lib": ["DOM", "DOM.Iterable", "ES2021"],
6
6
  "skipLibCheck": true,
7
7
  "noEmitOnError": true,
8
- "declaration": true,
9
8
  "strict": true,
10
- "module": "Node16",
11
- "moduleResolution": "Node16",
12
9
  "resolveJsonModule": false,
13
10
  "isolatedModules": true
14
11
  },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes