@fedify/vocab 2.2.0-dev.731 → 2.2.0-dev.766
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/deno.json +1 -1
- package/dist/mod.cjs +3371 -472
- package/dist/mod.d.cts +618 -6
- package/dist/mod.d.ts +618 -6
- package/dist/mod.js +3368 -473
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/announce.yaml +8 -0
- package/dist-tests/article.yaml +28 -0
- package/dist-tests/chatmessage.yaml +28 -0
- package/dist-tests/collection.yaml +8 -0
- package/dist-tests/collectionpage.yaml +8 -0
- package/dist-tests/create.yaml +8 -0
- package/dist-tests/delete.yaml +8 -0
- package/dist-tests/{deno-D3oW1uY5.mjs → deno-_GjGa9o1.mjs} +2 -2
- package/dist-tests/interactionpolicy.yaml +16 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/note.yaml +28 -0
- package/dist-tests/object.yaml +3 -3
- package/dist-tests/orderedcollection.yaml +8 -0
- package/dist-tests/orderedcollectionpage.yaml +8 -0
- package/dist-tests/question.yaml +28 -0
- package/dist-tests/quoteauthorization.yaml +39 -0
- package/dist-tests/quoterequest.yaml +47 -0
- package/dist-tests/tombstone.yaml +10 -0
- package/dist-tests/type.test.mjs +10 -1
- package/dist-tests/update.yaml +8 -0
- package/dist-tests/{vocab-CGZuHaxe.mjs → vocab-DKp-OcRQ.mjs} +3372 -473
- package/dist-tests/vocab.test.mjs +356 -42
- package/package.json +4 -4
- package/src/__snapshots__/vocab.test.ts.snap +327 -15
- package/src/announce.yaml +8 -0
- package/src/article.yaml +28 -0
- package/src/chatmessage.yaml +28 -0
- package/src/collection.yaml +8 -0
- package/src/collectionpage.yaml +8 -0
- package/src/create.yaml +8 -0
- package/src/delete.yaml +8 -0
- package/src/interactionpolicy.yaml +16 -2
- package/src/note.yaml +28 -0
- package/src/object.yaml +3 -3
- package/src/orderedcollection.yaml +8 -0
- package/src/orderedcollectionpage.yaml +8 -0
- package/src/question.yaml +28 -0
- package/src/quoteauthorization.yaml +39 -0
- package/src/quoterequest.yaml +47 -0
- package/src/tombstone.yaml +10 -0
- package/src/type.test.ts +17 -1
- package/src/update.yaml +8 -0
- package/src/vocab.test.ts +498 -40
|
@@ -169,7 +169,9 @@ snapshot[`Deno.inspect(ChatMessage) [auto] 1`] = `
|
|
|
169
169
|
likeAuthorization: LikeAuthorization {},
|
|
170
170
|
replyAuthorization: ReplyAuthorization {},
|
|
171
171
|
announceAuthorization: AnnounceAuthorization {},
|
|
172
|
-
|
|
172
|
+
quote: Object {},
|
|
173
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
174
|
+
quoteAuthorization: QuoteAuthorization {}
|
|
173
175
|
}'
|
|
174
176
|
`;
|
|
175
177
|
|
|
@@ -213,7 +215,9 @@ snapshot[`Deno.inspect(ChatMessage) [auto] 2`] = `
|
|
|
213
215
|
likeAuthorization: URL "https://example.com/",
|
|
214
216
|
replyAuthorization: URL "https://example.com/",
|
|
215
217
|
announceAuthorization: URL "https://example.com/",
|
|
216
|
-
|
|
218
|
+
quote: URL "https://example.com/",
|
|
219
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
220
|
+
quoteAuthorization: URL "https://example.com/"
|
|
217
221
|
}'
|
|
218
222
|
`;
|
|
219
223
|
|
|
@@ -257,7 +261,9 @@ snapshot[`Deno.inspect(ChatMessage) [auto] 3`] = `
|
|
|
257
261
|
likeAuthorization: LikeAuthorization {},
|
|
258
262
|
replyAuthorization: ReplyAuthorization {},
|
|
259
263
|
announceAuthorization: AnnounceAuthorization {},
|
|
260
|
-
|
|
264
|
+
quote: Object {},
|
|
265
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
266
|
+
quoteAuthorization: QuoteAuthorization {}
|
|
261
267
|
}'
|
|
262
268
|
`;
|
|
263
269
|
|
|
@@ -725,7 +731,8 @@ snapshot[`Deno.inspect(InteractionPolicy) [auto] 1`] = `
|
|
|
725
731
|
id: URL "https://example.com/",
|
|
726
732
|
canLike: InteractionRule {},
|
|
727
733
|
canReply: InteractionRule {},
|
|
728
|
-
canAnnounce: InteractionRule {}
|
|
734
|
+
canAnnounce: InteractionRule {},
|
|
735
|
+
canQuote: InteractionRule {}
|
|
729
736
|
}'
|
|
730
737
|
`;
|
|
731
738
|
|
|
@@ -734,7 +741,8 @@ snapshot[`Deno.inspect(InteractionPolicy) [auto] 2`] = `
|
|
|
734
741
|
id: URL "https://example.com/",
|
|
735
742
|
canLike: InteractionRule {},
|
|
736
743
|
canReply: InteractionRule {},
|
|
737
|
-
canAnnounce: InteractionRule {}
|
|
744
|
+
canAnnounce: InteractionRule {},
|
|
745
|
+
canQuote: InteractionRule {}
|
|
738
746
|
}'
|
|
739
747
|
`;
|
|
740
748
|
|
|
@@ -743,7 +751,8 @@ snapshot[`Deno.inspect(InteractionPolicy) [auto] 3`] = `
|
|
|
743
751
|
id: URL "https://example.com/",
|
|
744
752
|
canLike: InteractionRule {},
|
|
745
753
|
canReply: InteractionRule {},
|
|
746
|
-
canAnnounce: InteractionRule {}
|
|
754
|
+
canAnnounce: InteractionRule {},
|
|
755
|
+
canQuote: InteractionRule {}
|
|
747
756
|
}'
|
|
748
757
|
`;
|
|
749
758
|
|
|
@@ -1335,6 +1344,288 @@ snapshot[`Deno.inspect(ReplyRequest) [auto] 3`] = `
|
|
|
1335
1344
|
}'
|
|
1336
1345
|
`;
|
|
1337
1346
|
|
|
1347
|
+
snapshot[`Deno.inspect(QuoteAuthorization) [auto] 1`] = `
|
|
1348
|
+
'QuoteAuthorization {
|
|
1349
|
+
id: URL "https://example.com/",
|
|
1350
|
+
attachments: [ Object {}, Link {}, PropertyValue {} ],
|
|
1351
|
+
attributions: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
|
|
1352
|
+
audience: Object {},
|
|
1353
|
+
contents: [ "hello", <en> "hello" ],
|
|
1354
|
+
contexts: [ Object {}, Link {} ],
|
|
1355
|
+
names: [ "hello", <en> "hello" ],
|
|
1356
|
+
endTime: 2024-03-03T08:30:06.796196096Z,
|
|
1357
|
+
generators: [ Object {}, Link {} ],
|
|
1358
|
+
icon: Image {},
|
|
1359
|
+
image: Image {},
|
|
1360
|
+
replyTargets: [ Object {}, Link {} ],
|
|
1361
|
+
locations: [ Object {}, Link {} ],
|
|
1362
|
+
previews: [ Link {}, Object {} ],
|
|
1363
|
+
published: 2024-03-03T08:30:06.796196096Z,
|
|
1364
|
+
replies: Collection {},
|
|
1365
|
+
shares: Collection {},
|
|
1366
|
+
likes: Collection {},
|
|
1367
|
+
emojiReactions: Collection {},
|
|
1368
|
+
startTime: 2024-03-03T08:30:06.796196096Z,
|
|
1369
|
+
summaries: [ "hello", <en> "hello" ],
|
|
1370
|
+
tags: [ Object {}, Link {} ],
|
|
1371
|
+
updated: 2024-03-03T08:30:06.796196096Z,
|
|
1372
|
+
urls: [ URL "https://example.com/", Link {} ],
|
|
1373
|
+
to: Object {},
|
|
1374
|
+
bto: Object {},
|
|
1375
|
+
cc: Object {},
|
|
1376
|
+
bcc: Object {},
|
|
1377
|
+
mediaType: "hello",
|
|
1378
|
+
duration: PT1H,
|
|
1379
|
+
sensitive: true,
|
|
1380
|
+
source: Source {},
|
|
1381
|
+
proof: DataIntegrityProof {},
|
|
1382
|
+
interactionPolicy: InteractionPolicy {},
|
|
1383
|
+
approvedBy: URL "https://example.com/",
|
|
1384
|
+
likeAuthorization: LikeAuthorization {},
|
|
1385
|
+
replyAuthorization: ReplyAuthorization {},
|
|
1386
|
+
announceAuthorization: AnnounceAuthorization {},
|
|
1387
|
+
interactingObject: Object {},
|
|
1388
|
+
interactionTarget: Object {}
|
|
1389
|
+
}'
|
|
1390
|
+
`;
|
|
1391
|
+
|
|
1392
|
+
snapshot[`Deno.inspect(QuoteAuthorization) [auto] 2`] = `
|
|
1393
|
+
'QuoteAuthorization {
|
|
1394
|
+
id: URL "https://example.com/",
|
|
1395
|
+
attachments: [ URL "https://example.com/" ],
|
|
1396
|
+
attribution: URL "https://example.com/",
|
|
1397
|
+
audience: URL "https://example.com/",
|
|
1398
|
+
contents: [ "hello", <en> "hello" ],
|
|
1399
|
+
contexts: [ URL "https://example.com/" ],
|
|
1400
|
+
names: [ "hello", <en> "hello" ],
|
|
1401
|
+
endTime: 2024-03-03T08:30:06.796196096Z,
|
|
1402
|
+
generators: [ URL "https://example.com/" ],
|
|
1403
|
+
icon: URL "https://example.com/",
|
|
1404
|
+
image: URL "https://example.com/",
|
|
1405
|
+
replyTarget: URL "https://example.com/",
|
|
1406
|
+
location: URL "https://example.com/",
|
|
1407
|
+
preview: URL "https://example.com/",
|
|
1408
|
+
published: 2024-03-03T08:30:06.796196096Z,
|
|
1409
|
+
replies: URL "https://example.com/",
|
|
1410
|
+
shares: URL "https://example.com/",
|
|
1411
|
+
likes: URL "https://example.com/",
|
|
1412
|
+
emojiReactions: URL "https://example.com/",
|
|
1413
|
+
startTime: 2024-03-03T08:30:06.796196096Z,
|
|
1414
|
+
summaries: [ "hello", <en> "hello" ],
|
|
1415
|
+
tags: [ URL "https://example.com/" ],
|
|
1416
|
+
updated: 2024-03-03T08:30:06.796196096Z,
|
|
1417
|
+
urls: [ URL "https://example.com/", Link {} ],
|
|
1418
|
+
to: URL "https://example.com/",
|
|
1419
|
+
bto: URL "https://example.com/",
|
|
1420
|
+
cc: URL "https://example.com/",
|
|
1421
|
+
bcc: URL "https://example.com/",
|
|
1422
|
+
mediaType: "hello",
|
|
1423
|
+
duration: PT1H,
|
|
1424
|
+
sensitive: true,
|
|
1425
|
+
source: Source {},
|
|
1426
|
+
proof: URL "https://example.com/",
|
|
1427
|
+
interactionPolicy: InteractionPolicy {},
|
|
1428
|
+
approvedBy: URL "https://example.com/",
|
|
1429
|
+
likeAuthorization: URL "https://example.com/",
|
|
1430
|
+
replyAuthorization: URL "https://example.com/",
|
|
1431
|
+
announceAuthorization: URL "https://example.com/",
|
|
1432
|
+
interactingObject: URL "https://example.com/",
|
|
1433
|
+
interactionTarget: URL "https://example.com/"
|
|
1434
|
+
}'
|
|
1435
|
+
`;
|
|
1436
|
+
|
|
1437
|
+
snapshot[`Deno.inspect(QuoteAuthorization) [auto] 3`] = `
|
|
1438
|
+
'QuoteAuthorization {
|
|
1439
|
+
id: URL "https://example.com/",
|
|
1440
|
+
attachments: [ Object {}, Object {} ],
|
|
1441
|
+
attributions: [ Application {}, Application {} ],
|
|
1442
|
+
audiences: [ Object {}, Object {} ],
|
|
1443
|
+
contents: [ "hello", "hello" ],
|
|
1444
|
+
contexts: [ Object {}, Object {} ],
|
|
1445
|
+
names: [ "hello", "hello" ],
|
|
1446
|
+
endTime: 2024-03-03T08:30:06.796196096Z,
|
|
1447
|
+
generators: [ Object {}, Object {} ],
|
|
1448
|
+
icons: [ Image {}, Image {} ],
|
|
1449
|
+
images: [ Image {}, Image {} ],
|
|
1450
|
+
replyTargets: [ Object {}, Object {} ],
|
|
1451
|
+
locations: [ Object {}, Object {} ],
|
|
1452
|
+
previews: [ Link {}, Link {} ],
|
|
1453
|
+
published: 2024-03-03T08:30:06.796196096Z,
|
|
1454
|
+
replies: Collection {},
|
|
1455
|
+
shares: Collection {},
|
|
1456
|
+
likes: Collection {},
|
|
1457
|
+
emojiReactions: Collection {},
|
|
1458
|
+
startTime: 2024-03-03T08:30:06.796196096Z,
|
|
1459
|
+
summaries: [ "hello", "hello" ],
|
|
1460
|
+
tags: [ Object {}, Object {} ],
|
|
1461
|
+
updated: 2024-03-03T08:30:06.796196096Z,
|
|
1462
|
+
urls: [ URL "https://example.com/", URL "https://example.com/" ],
|
|
1463
|
+
tos: [ Object {}, Object {} ],
|
|
1464
|
+
btos: [ Object {}, Object {} ],
|
|
1465
|
+
ccs: [ Object {}, Object {} ],
|
|
1466
|
+
bccs: [ Object {}, Object {} ],
|
|
1467
|
+
mediaType: "hello",
|
|
1468
|
+
duration: PT1H,
|
|
1469
|
+
sensitive: true,
|
|
1470
|
+
source: Source {},
|
|
1471
|
+
proofs: [ DataIntegrityProof {}, DataIntegrityProof {} ],
|
|
1472
|
+
interactionPolicy: InteractionPolicy {},
|
|
1473
|
+
approvedBy: URL "https://example.com/",
|
|
1474
|
+
likeAuthorization: LikeAuthorization {},
|
|
1475
|
+
replyAuthorization: ReplyAuthorization {},
|
|
1476
|
+
announceAuthorization: AnnounceAuthorization {},
|
|
1477
|
+
interactingObject: Object {},
|
|
1478
|
+
interactionTarget: Object {}
|
|
1479
|
+
}'
|
|
1480
|
+
`;
|
|
1481
|
+
|
|
1482
|
+
snapshot[`Deno.inspect(QuoteRequest) [auto] 1`] = `
|
|
1483
|
+
'QuoteRequest {
|
|
1484
|
+
id: URL "https://example.com/",
|
|
1485
|
+
attachments: [ Object {}, Link {}, PropertyValue {} ],
|
|
1486
|
+
attributions: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
|
|
1487
|
+
audience: Object {},
|
|
1488
|
+
contents: [ "hello", <en> "hello" ],
|
|
1489
|
+
contexts: [ Object {}, Link {} ],
|
|
1490
|
+
names: [ "hello", <en> "hello" ],
|
|
1491
|
+
endTime: 2024-03-03T08:30:06.796196096Z,
|
|
1492
|
+
generators: [ Object {}, Link {} ],
|
|
1493
|
+
icon: Image {},
|
|
1494
|
+
image: Image {},
|
|
1495
|
+
replyTargets: [ Object {}, Link {} ],
|
|
1496
|
+
locations: [ Object {}, Link {} ],
|
|
1497
|
+
previews: [ Link {}, Object {} ],
|
|
1498
|
+
published: 2024-03-03T08:30:06.796196096Z,
|
|
1499
|
+
replies: Collection {},
|
|
1500
|
+
shares: Collection {},
|
|
1501
|
+
likes: Collection {},
|
|
1502
|
+
emojiReactions: Collection {},
|
|
1503
|
+
startTime: 2024-03-03T08:30:06.796196096Z,
|
|
1504
|
+
summaries: [ "hello", <en> "hello" ],
|
|
1505
|
+
tags: [ Object {}, Link {} ],
|
|
1506
|
+
updated: 2024-03-03T08:30:06.796196096Z,
|
|
1507
|
+
urls: [ URL "https://example.com/", Link {} ],
|
|
1508
|
+
to: Object {},
|
|
1509
|
+
bto: Object {},
|
|
1510
|
+
cc: Object {},
|
|
1511
|
+
bcc: Object {},
|
|
1512
|
+
mediaType: "hello",
|
|
1513
|
+
duration: PT1H,
|
|
1514
|
+
sensitive: true,
|
|
1515
|
+
source: Source {},
|
|
1516
|
+
proof: DataIntegrityProof {},
|
|
1517
|
+
interactionPolicy: InteractionPolicy {},
|
|
1518
|
+
approvedBy: URL "https://example.com/",
|
|
1519
|
+
likeAuthorization: LikeAuthorization {},
|
|
1520
|
+
replyAuthorization: ReplyAuthorization {},
|
|
1521
|
+
announceAuthorization: AnnounceAuthorization {},
|
|
1522
|
+
actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
|
|
1523
|
+
object: Object {},
|
|
1524
|
+
target: Object {},
|
|
1525
|
+
result: Object {},
|
|
1526
|
+
origin: Object {},
|
|
1527
|
+
instrument: Object {}
|
|
1528
|
+
}'
|
|
1529
|
+
`;
|
|
1530
|
+
|
|
1531
|
+
snapshot[`Deno.inspect(QuoteRequest) [auto] 2`] = `
|
|
1532
|
+
'QuoteRequest {
|
|
1533
|
+
id: URL "https://example.com/",
|
|
1534
|
+
attachments: [ URL "https://example.com/" ],
|
|
1535
|
+
attribution: URL "https://example.com/",
|
|
1536
|
+
audience: URL "https://example.com/",
|
|
1537
|
+
contents: [ "hello", <en> "hello" ],
|
|
1538
|
+
contexts: [ URL "https://example.com/" ],
|
|
1539
|
+
names: [ "hello", <en> "hello" ],
|
|
1540
|
+
endTime: 2024-03-03T08:30:06.796196096Z,
|
|
1541
|
+
generators: [ URL "https://example.com/" ],
|
|
1542
|
+
icon: URL "https://example.com/",
|
|
1543
|
+
image: URL "https://example.com/",
|
|
1544
|
+
replyTarget: URL "https://example.com/",
|
|
1545
|
+
location: URL "https://example.com/",
|
|
1546
|
+
preview: URL "https://example.com/",
|
|
1547
|
+
published: 2024-03-03T08:30:06.796196096Z,
|
|
1548
|
+
replies: URL "https://example.com/",
|
|
1549
|
+
shares: URL "https://example.com/",
|
|
1550
|
+
likes: URL "https://example.com/",
|
|
1551
|
+
emojiReactions: URL "https://example.com/",
|
|
1552
|
+
startTime: 2024-03-03T08:30:06.796196096Z,
|
|
1553
|
+
summaries: [ "hello", <en> "hello" ],
|
|
1554
|
+
tags: [ URL "https://example.com/" ],
|
|
1555
|
+
updated: 2024-03-03T08:30:06.796196096Z,
|
|
1556
|
+
urls: [ URL "https://example.com/", Link {} ],
|
|
1557
|
+
to: URL "https://example.com/",
|
|
1558
|
+
bto: URL "https://example.com/",
|
|
1559
|
+
cc: URL "https://example.com/",
|
|
1560
|
+
bcc: URL "https://example.com/",
|
|
1561
|
+
mediaType: "hello",
|
|
1562
|
+
duration: PT1H,
|
|
1563
|
+
sensitive: true,
|
|
1564
|
+
source: Source {},
|
|
1565
|
+
proof: URL "https://example.com/",
|
|
1566
|
+
interactionPolicy: InteractionPolicy {},
|
|
1567
|
+
approvedBy: URL "https://example.com/",
|
|
1568
|
+
likeAuthorization: URL "https://example.com/",
|
|
1569
|
+
replyAuthorization: URL "https://example.com/",
|
|
1570
|
+
announceAuthorization: URL "https://example.com/",
|
|
1571
|
+
actor: URL "https://example.com/",
|
|
1572
|
+
object: URL "https://example.com/",
|
|
1573
|
+
target: URL "https://example.com/",
|
|
1574
|
+
result: URL "https://example.com/",
|
|
1575
|
+
origin: URL "https://example.com/",
|
|
1576
|
+
instrument: URL "https://example.com/"
|
|
1577
|
+
}'
|
|
1578
|
+
`;
|
|
1579
|
+
|
|
1580
|
+
snapshot[`Deno.inspect(QuoteRequest) [auto] 3`] = `
|
|
1581
|
+
'QuoteRequest {
|
|
1582
|
+
id: URL "https://example.com/",
|
|
1583
|
+
attachments: [ Object {}, Object {} ],
|
|
1584
|
+
attributions: [ Application {}, Application {} ],
|
|
1585
|
+
audiences: [ Object {}, Object {} ],
|
|
1586
|
+
contents: [ "hello", "hello" ],
|
|
1587
|
+
contexts: [ Object {}, Object {} ],
|
|
1588
|
+
names: [ "hello", "hello" ],
|
|
1589
|
+
endTime: 2024-03-03T08:30:06.796196096Z,
|
|
1590
|
+
generators: [ Object {}, Object {} ],
|
|
1591
|
+
icons: [ Image {}, Image {} ],
|
|
1592
|
+
images: [ Image {}, Image {} ],
|
|
1593
|
+
replyTargets: [ Object {}, Object {} ],
|
|
1594
|
+
locations: [ Object {}, Object {} ],
|
|
1595
|
+
previews: [ Link {}, Link {} ],
|
|
1596
|
+
published: 2024-03-03T08:30:06.796196096Z,
|
|
1597
|
+
replies: Collection {},
|
|
1598
|
+
shares: Collection {},
|
|
1599
|
+
likes: Collection {},
|
|
1600
|
+
emojiReactions: Collection {},
|
|
1601
|
+
startTime: 2024-03-03T08:30:06.796196096Z,
|
|
1602
|
+
summaries: [ "hello", "hello" ],
|
|
1603
|
+
tags: [ Object {}, Object {} ],
|
|
1604
|
+
updated: 2024-03-03T08:30:06.796196096Z,
|
|
1605
|
+
urls: [ URL "https://example.com/", URL "https://example.com/" ],
|
|
1606
|
+
tos: [ Object {}, Object {} ],
|
|
1607
|
+
btos: [ Object {}, Object {} ],
|
|
1608
|
+
ccs: [ Object {}, Object {} ],
|
|
1609
|
+
bccs: [ Object {}, Object {} ],
|
|
1610
|
+
mediaType: "hello",
|
|
1611
|
+
duration: PT1H,
|
|
1612
|
+
sensitive: true,
|
|
1613
|
+
source: Source {},
|
|
1614
|
+
proofs: [ DataIntegrityProof {}, DataIntegrityProof {} ],
|
|
1615
|
+
interactionPolicy: InteractionPolicy {},
|
|
1616
|
+
approvedBy: URL "https://example.com/",
|
|
1617
|
+
likeAuthorization: LikeAuthorization {},
|
|
1618
|
+
replyAuthorization: ReplyAuthorization {},
|
|
1619
|
+
announceAuthorization: AnnounceAuthorization {},
|
|
1620
|
+
actors: [ Application {}, Application {} ],
|
|
1621
|
+
objects: [ Object {}, Object {} ],
|
|
1622
|
+
targets: [ Object {}, Object {} ],
|
|
1623
|
+
results: [ Object {}, Object {} ],
|
|
1624
|
+
origins: [ Object {}, Object {} ],
|
|
1625
|
+
instruments: [ Object {}, Object {} ]
|
|
1626
|
+
}'
|
|
1627
|
+
`;
|
|
1628
|
+
|
|
1338
1629
|
snapshot[`Deno.inspect(Export) [auto] 1`] = `
|
|
1339
1630
|
'Export {
|
|
1340
1631
|
id: URL "https://example.com/",
|
|
@@ -2647,7 +2938,9 @@ snapshot[`Deno.inspect(Article) [auto] 1`] = `
|
|
|
2647
2938
|
likeAuthorization: LikeAuthorization {},
|
|
2648
2939
|
replyAuthorization: ReplyAuthorization {},
|
|
2649
2940
|
announceAuthorization: AnnounceAuthorization {},
|
|
2650
|
-
|
|
2941
|
+
quote: Object {},
|
|
2942
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
2943
|
+
quoteAuthorization: QuoteAuthorization {}
|
|
2651
2944
|
}'
|
|
2652
2945
|
`;
|
|
2653
2946
|
|
|
@@ -2691,7 +2984,9 @@ snapshot[`Deno.inspect(Article) [auto] 2`] = `
|
|
|
2691
2984
|
likeAuthorization: URL "https://example.com/",
|
|
2692
2985
|
replyAuthorization: URL "https://example.com/",
|
|
2693
2986
|
announceAuthorization: URL "https://example.com/",
|
|
2694
|
-
|
|
2987
|
+
quote: URL "https://example.com/",
|
|
2988
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
2989
|
+
quoteAuthorization: URL "https://example.com/"
|
|
2695
2990
|
}'
|
|
2696
2991
|
`;
|
|
2697
2992
|
|
|
@@ -2735,7 +3030,9 @@ snapshot[`Deno.inspect(Article) [auto] 3`] = `
|
|
|
2735
3030
|
likeAuthorization: LikeAuthorization {},
|
|
2736
3031
|
replyAuthorization: ReplyAuthorization {},
|
|
2737
3032
|
announceAuthorization: AnnounceAuthorization {},
|
|
2738
|
-
|
|
3033
|
+
quote: Object {},
|
|
3034
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
3035
|
+
quoteAuthorization: QuoteAuthorization {}
|
|
2739
3036
|
}'
|
|
2740
3037
|
`;
|
|
2741
3038
|
|
|
@@ -6172,7 +6469,9 @@ snapshot[`Deno.inspect(Note) [auto] 1`] = `
|
|
|
6172
6469
|
likeAuthorization: LikeAuthorization {},
|
|
6173
6470
|
replyAuthorization: ReplyAuthorization {},
|
|
6174
6471
|
announceAuthorization: AnnounceAuthorization {},
|
|
6175
|
-
|
|
6472
|
+
quote: Object {},
|
|
6473
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
6474
|
+
quoteAuthorization: QuoteAuthorization {}
|
|
6176
6475
|
}'
|
|
6177
6476
|
`;
|
|
6178
6477
|
|
|
@@ -6216,7 +6515,9 @@ snapshot[`Deno.inspect(Note) [auto] 2`] = `
|
|
|
6216
6515
|
likeAuthorization: URL "https://example.com/",
|
|
6217
6516
|
replyAuthorization: URL "https://example.com/",
|
|
6218
6517
|
announceAuthorization: URL "https://example.com/",
|
|
6219
|
-
|
|
6518
|
+
quote: URL "https://example.com/",
|
|
6519
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
6520
|
+
quoteAuthorization: URL "https://example.com/"
|
|
6220
6521
|
}'
|
|
6221
6522
|
`;
|
|
6222
6523
|
|
|
@@ -6260,7 +6561,9 @@ snapshot[`Deno.inspect(Note) [auto] 3`] = `
|
|
|
6260
6561
|
likeAuthorization: LikeAuthorization {},
|
|
6261
6562
|
replyAuthorization: ReplyAuthorization {},
|
|
6262
6563
|
announceAuthorization: AnnounceAuthorization {},
|
|
6263
|
-
|
|
6564
|
+
quote: Object {},
|
|
6565
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
6566
|
+
quoteAuthorization: QuoteAuthorization {}
|
|
6264
6567
|
}'
|
|
6265
6568
|
`;
|
|
6266
6569
|
|
|
@@ -7742,7 +8045,9 @@ snapshot[`Deno.inspect(Question) [auto] 1`] = `
|
|
|
7742
8045
|
inclusiveOptions: [ Object {} ],
|
|
7743
8046
|
closed: 2024-03-03T08:30:06.796196096Z,
|
|
7744
8047
|
voters: 123,
|
|
7745
|
-
|
|
8048
|
+
quote: Object {},
|
|
8049
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
8050
|
+
quoteAuthorization: QuoteAuthorization {}
|
|
7746
8051
|
}'
|
|
7747
8052
|
`;
|
|
7748
8053
|
|
|
@@ -7796,7 +8101,9 @@ snapshot[`Deno.inspect(Question) [auto] 2`] = `
|
|
|
7796
8101
|
inclusiveOptions: [ URL "https://example.com/" ],
|
|
7797
8102
|
closed: 2024-03-03T08:30:06.796196096Z,
|
|
7798
8103
|
voters: 123,
|
|
7799
|
-
|
|
8104
|
+
quote: URL "https://example.com/",
|
|
8105
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
8106
|
+
quoteAuthorization: URL "https://example.com/"
|
|
7800
8107
|
}'
|
|
7801
8108
|
`;
|
|
7802
8109
|
|
|
@@ -7850,7 +8157,9 @@ snapshot[`Deno.inspect(Question) [auto] 3`] = `
|
|
|
7850
8157
|
inclusiveOptions: [ Object {}, Object {} ],
|
|
7851
8158
|
closed: 2024-03-03T08:30:06.796196096Z,
|
|
7852
8159
|
voters: 123,
|
|
7853
|
-
|
|
8160
|
+
quote: Object {},
|
|
8161
|
+
quoteUrl: URL "https://fedify.dev/",
|
|
8162
|
+
quoteAuthorization: QuoteAuthorization {}
|
|
7854
8163
|
}'
|
|
7855
8164
|
`;
|
|
7856
8165
|
|
|
@@ -8986,6 +9295,7 @@ snapshot[`Deno.inspect(Tombstone) [auto] 1`] = `
|
|
|
8986
9295
|
likeAuthorization: LikeAuthorization {},
|
|
8987
9296
|
replyAuthorization: ReplyAuthorization {},
|
|
8988
9297
|
announceAuthorization: AnnounceAuthorization {},
|
|
9298
|
+
formerType: [class Person extends Object],
|
|
8989
9299
|
deleted: 2024-03-03T08:30:06.796196096Z
|
|
8990
9300
|
}'
|
|
8991
9301
|
`;
|
|
@@ -9030,6 +9340,7 @@ snapshot[`Deno.inspect(Tombstone) [auto] 2`] = `
|
|
|
9030
9340
|
likeAuthorization: URL "https://example.com/",
|
|
9031
9341
|
replyAuthorization: URL "https://example.com/",
|
|
9032
9342
|
announceAuthorization: URL "https://example.com/",
|
|
9343
|
+
formerType: [class Person extends Object],
|
|
9033
9344
|
deleted: 2024-03-03T08:30:06.796196096Z
|
|
9034
9345
|
}'
|
|
9035
9346
|
`;
|
|
@@ -9074,6 +9385,7 @@ snapshot[`Deno.inspect(Tombstone) [auto] 3`] = `
|
|
|
9074
9385
|
likeAuthorization: LikeAuthorization {},
|
|
9075
9386
|
replyAuthorization: ReplyAuthorization {},
|
|
9076
9387
|
announceAuthorization: AnnounceAuthorization {},
|
|
9388
|
+
formerTypes: [ [class Person extends Object], [class Person extends Object] ],
|
|
9077
9389
|
deleted: 2024-03-03T08:30:06.796196096Z
|
|
9078
9390
|
}'
|
|
9079
9391
|
`;
|
package/src/announce.yaml
CHANGED
|
@@ -22,9 +22,17 @@ defaultContext:
|
|
|
22
22
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
|
23
23
|
Emoji: "toot:Emoji"
|
|
24
24
|
Hashtag: "as:Hashtag"
|
|
25
|
+
quote:
|
|
26
|
+
"@id": "https://w3id.org/fep/044f#quote"
|
|
27
|
+
"@type": "@id"
|
|
25
28
|
quoteUrl: "as:quoteUrl"
|
|
26
29
|
_misskey_quote: "misskey:_misskey_quote"
|
|
27
30
|
quoteUri: "fedibird:quoteUri"
|
|
31
|
+
QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
|
|
32
|
+
QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
|
|
33
|
+
quoteAuthorization:
|
|
34
|
+
"@id": "https://w3id.org/fep/044f#quoteAuthorization"
|
|
35
|
+
"@type": "@id"
|
|
28
36
|
emojiReactions:
|
|
29
37
|
"@id": "fedibird:emojiReactions"
|
|
30
38
|
"@type": "@id"
|
package/src/article.yaml
CHANGED
|
@@ -15,14 +15,32 @@ defaultContext:
|
|
|
15
15
|
sensitive: "as:sensitive"
|
|
16
16
|
Emoji: "toot:Emoji"
|
|
17
17
|
Hashtag: "as:Hashtag"
|
|
18
|
+
quote:
|
|
19
|
+
"@id": "https://w3id.org/fep/044f#quote"
|
|
20
|
+
"@type": "@id"
|
|
18
21
|
quoteUrl: "as:quoteUrl"
|
|
19
22
|
_misskey_quote: "misskey:_misskey_quote"
|
|
20
23
|
quoteUri: "fedibird:quoteUri"
|
|
24
|
+
QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
|
|
25
|
+
quoteAuthorization:
|
|
26
|
+
"@id": "https://w3id.org/fep/044f#quoteAuthorization"
|
|
27
|
+
"@type": "@id"
|
|
21
28
|
emojiReactions:
|
|
22
29
|
"@id": "fedibird:emojiReactions"
|
|
23
30
|
"@type": "@id"
|
|
24
31
|
|
|
25
32
|
properties:
|
|
33
|
+
- singularName: quote
|
|
34
|
+
functional: true
|
|
35
|
+
compactName: quote
|
|
36
|
+
uri: "https://w3id.org/fep/044f#quote"
|
|
37
|
+
description: |
|
|
38
|
+
The quoted ActivityStreams object.
|
|
39
|
+
|
|
40
|
+
This property is serialized as an IRI-valued JSON-LD property.
|
|
41
|
+
range:
|
|
42
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
|
43
|
+
|
|
26
44
|
- singularName: quoteUrl
|
|
27
45
|
functional: true
|
|
28
46
|
compactName: quoteUrl
|
|
@@ -45,3 +63,13 @@ properties:
|
|
|
45
63
|
the values of those three properties in order.
|
|
46
64
|
range:
|
|
47
65
|
- "fedify:url"
|
|
66
|
+
|
|
67
|
+
- singularName: quoteAuthorization
|
|
68
|
+
functional: true
|
|
69
|
+
compactName: quoteAuthorization
|
|
70
|
+
uri: "https://w3id.org/fep/044f#quoteAuthorization"
|
|
71
|
+
description: |
|
|
72
|
+
A {@link QuoteAuthorization} object that proves this quote was approved
|
|
73
|
+
by the quoted object's author.
|
|
74
|
+
range:
|
|
75
|
+
- "https://w3id.org/fep/044f#QuoteAuthorization"
|
package/src/chatmessage.yaml
CHANGED
|
@@ -19,14 +19,32 @@ defaultContext:
|
|
|
19
19
|
fedibird: "http://fedibird.com/ns#"
|
|
20
20
|
Emoji: "toot:Emoji"
|
|
21
21
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
|
22
|
+
quote:
|
|
23
|
+
"@id": "https://w3id.org/fep/044f#quote"
|
|
24
|
+
"@type": "@id"
|
|
22
25
|
quoteUrl: "as:quoteUrl"
|
|
23
26
|
_misskey_quote: "misskey:_misskey_quote"
|
|
24
27
|
quoteUri: "fedibird:quoteUri"
|
|
28
|
+
QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
|
|
29
|
+
quoteAuthorization:
|
|
30
|
+
"@id": "https://w3id.org/fep/044f#quoteAuthorization"
|
|
31
|
+
"@type": "@id"
|
|
25
32
|
emojiReactions:
|
|
26
33
|
"@id": "fedibird:emojiReactions"
|
|
27
34
|
"@type": "@id"
|
|
28
35
|
|
|
29
36
|
properties:
|
|
37
|
+
- singularName: quote
|
|
38
|
+
functional: true
|
|
39
|
+
compactName: quote
|
|
40
|
+
uri: "https://w3id.org/fep/044f#quote"
|
|
41
|
+
description: |
|
|
42
|
+
The quoted ActivityStreams object.
|
|
43
|
+
|
|
44
|
+
This property is serialized as an IRI-valued JSON-LD property.
|
|
45
|
+
range:
|
|
46
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
|
47
|
+
|
|
30
48
|
- singularName: quoteUrl
|
|
31
49
|
functional: true
|
|
32
50
|
compactName: quoteUrl
|
|
@@ -49,3 +67,13 @@ properties:
|
|
|
49
67
|
the values of those three properties in order.
|
|
50
68
|
range:
|
|
51
69
|
- "fedify:url"
|
|
70
|
+
|
|
71
|
+
- singularName: quoteAuthorization
|
|
72
|
+
functional: true
|
|
73
|
+
compactName: quoteAuthorization
|
|
74
|
+
uri: "https://w3id.org/fep/044f#quoteAuthorization"
|
|
75
|
+
description: |
|
|
76
|
+
A {@link QuoteAuthorization} object that proves this quote was approved
|
|
77
|
+
by the quoted object's author.
|
|
78
|
+
range:
|
|
79
|
+
- "https://w3id.org/fep/044f#QuoteAuthorization"
|
package/src/collection.yaml
CHANGED
|
@@ -22,9 +22,17 @@ defaultContext:
|
|
|
22
22
|
votersCount: "toot:votersCount"
|
|
23
23
|
Emoji: "toot:Emoji"
|
|
24
24
|
Hashtag: "as:Hashtag"
|
|
25
|
+
quote:
|
|
26
|
+
"@id": "https://w3id.org/fep/044f#quote"
|
|
27
|
+
"@type": "@id"
|
|
25
28
|
quoteUrl: "as:quoteUrl"
|
|
26
29
|
_misskey_quote: "misskey:_misskey_quote"
|
|
27
30
|
quoteUri: "fedibird:quoteUri"
|
|
31
|
+
QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
|
|
32
|
+
QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
|
|
33
|
+
quoteAuthorization:
|
|
34
|
+
"@id": "https://w3id.org/fep/044f#quoteAuthorization"
|
|
35
|
+
"@type": "@id"
|
|
28
36
|
emojiReactions:
|
|
29
37
|
"@id": "fedibird:emojiReactions"
|
|
30
38
|
"@type": "@id"
|
package/src/collectionpage.yaml
CHANGED
|
@@ -20,9 +20,17 @@ defaultContext:
|
|
|
20
20
|
votersCount: "toot:votersCount"
|
|
21
21
|
Emoji: "toot:Emoji"
|
|
22
22
|
Hashtag: "as:Hashtag"
|
|
23
|
+
quote:
|
|
24
|
+
"@id": "https://w3id.org/fep/044f#quote"
|
|
25
|
+
"@type": "@id"
|
|
23
26
|
quoteUrl: "as:quoteUrl"
|
|
24
27
|
_misskey_quote: "misskey:_misskey_quote"
|
|
25
28
|
quoteUri: "fedibird:quoteUri"
|
|
29
|
+
QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
|
|
30
|
+
QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
|
|
31
|
+
quoteAuthorization:
|
|
32
|
+
"@id": "https://w3id.org/fep/044f#quoteAuthorization"
|
|
33
|
+
"@type": "@id"
|
|
26
34
|
emojiReactions:
|
|
27
35
|
"@id": "fedibird:emojiReactions"
|
|
28
36
|
"@type": "@id"
|
package/src/create.yaml
CHANGED
|
@@ -20,9 +20,17 @@ defaultContext:
|
|
|
20
20
|
Emoji: "toot:Emoji"
|
|
21
21
|
Hashtag: "as:Hashtag"
|
|
22
22
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
|
23
|
+
quote:
|
|
24
|
+
"@id": "https://w3id.org/fep/044f#quote"
|
|
25
|
+
"@type": "@id"
|
|
23
26
|
quoteUrl: "as:quoteUrl"
|
|
24
27
|
_misskey_quote: "misskey:_misskey_quote"
|
|
25
28
|
quoteUri: "fedibird:quoteUri"
|
|
29
|
+
QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
|
|
30
|
+
QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
|
|
31
|
+
quoteAuthorization:
|
|
32
|
+
"@id": "https://w3id.org/fep/044f#quoteAuthorization"
|
|
33
|
+
"@type": "@id"
|
|
26
34
|
emojiReactions:
|
|
27
35
|
"@id": "fedibird:emojiReactions"
|
|
28
36
|
"@type": "@id"
|
package/src/delete.yaml
CHANGED
|
@@ -22,7 +22,15 @@ defaultContext:
|
|
|
22
22
|
Emoji: "toot:Emoji"
|
|
23
23
|
Hashtag: "as:Hashtag"
|
|
24
24
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
|
25
|
+
quote:
|
|
26
|
+
"@id": "https://w3id.org/fep/044f#quote"
|
|
27
|
+
"@type": "@id"
|
|
25
28
|
quoteUrl: "as:quoteUrl"
|
|
26
29
|
_misskey_quote: "misskey:_misskey_quote"
|
|
27
30
|
quoteUri: "fedibird:quoteUri"
|
|
31
|
+
QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
|
|
32
|
+
QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
|
|
33
|
+
quoteAuthorization:
|
|
34
|
+
"@id": "https://w3id.org/fep/044f#quoteAuthorization"
|
|
35
|
+
"@type": "@id"
|
|
28
36
|
properties: []
|
|
@@ -6,8 +6,9 @@ entity: false
|
|
|
6
6
|
typeless: true
|
|
7
7
|
description: |
|
|
8
8
|
Represents an interaction policy attached to a post, specifying who can
|
|
9
|
-
like, reply to, or
|
|
10
|
-
defines which actors receive automatic or manual
|
|
9
|
+
like, reply to, announce, or quote it. Each sub-policy
|
|
10
|
+
({@link InteractionRule}) defines which actors receive automatic or manual
|
|
11
|
+
approval.
|
|
11
12
|
|
|
12
13
|
See [GoToSocial interaction controls](https://docs.gotosocial.org/en/latest/federation/interaction_controls/)
|
|
13
14
|
for details.
|
|
@@ -52,3 +53,16 @@ properties:
|
|
|
52
53
|
(i.e., `automaticApproval` defaults to the public collection).
|
|
53
54
|
range:
|
|
54
55
|
- "https://gotosocial.org/ns#InteractionRule"
|
|
56
|
+
|
|
57
|
+
- singularName: canQuote
|
|
58
|
+
functional: true
|
|
59
|
+
compactName: canQuote
|
|
60
|
+
uri: "https://gotosocial.org/ns#canQuote"
|
|
61
|
+
untyped: true
|
|
62
|
+
description: |
|
|
63
|
+
The sub-policy specifying who can quote the post.
|
|
64
|
+
|
|
65
|
+
When absent, implementations should assume that anyone can quote the post
|
|
66
|
+
(i.e., `automaticApproval` defaults to the public collection).
|
|
67
|
+
range:
|
|
68
|
+
- "https://gotosocial.org/ns#InteractionRule"
|