@evcraddock/slug-api 0.2.0 → 1.1.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/README.md +15 -1
- package/dist/contract.d.ts +1 -1
- package/dist/contract.js +1 -1
- package/dist/contract.json +3 -3
- package/dist/openapi.d.ts +483 -5
- package/dist/openapi.js +313 -2
- package/dist/openapi.json +588 -6
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"x-slugkit-contract": {
|
|
4
4
|
"id": "slugkit-management-api",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.3.0"
|
|
6
6
|
},
|
|
7
7
|
"info": {
|
|
8
8
|
"title": "Slugkit API",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "2.3.0"
|
|
10
10
|
},
|
|
11
11
|
"servers": [
|
|
12
12
|
{
|
|
@@ -622,6 +622,7 @@
|
|
|
622
622
|
"delete": {
|
|
623
623
|
"operationId": "contacts.delete",
|
|
624
624
|
"summary": "Delete a contact by ID",
|
|
625
|
+
"description": "Deletes the contact and its owned accounts after detaching inactive follow history. Pending or accepted follows and unrelated references return 409. Retained incoming snapshots and delivery identities are not deleted. Detached history is omitted from following lists and activity routes return 404 until refollow reattaches it to an account.",
|
|
625
626
|
"security": [
|
|
626
627
|
{
|
|
627
628
|
"bearerAuth": []
|
|
@@ -1168,6 +1169,7 @@
|
|
|
1168
1169
|
"put": {
|
|
1169
1170
|
"operationId": "accounts.update",
|
|
1170
1171
|
"summary": "Update an account by ID",
|
|
1172
|
+
"description": "Changing the URL of an account referenced by following returns 409; other metadata remains editable.",
|
|
1171
1173
|
"security": [
|
|
1172
1174
|
{
|
|
1173
1175
|
"bearerAuth": []
|
|
@@ -1224,6 +1226,16 @@
|
|
|
1224
1226
|
}
|
|
1225
1227
|
}
|
|
1226
1228
|
},
|
|
1229
|
+
"409": {
|
|
1230
|
+
"description": "The request conflicts with an existing resource.",
|
|
1231
|
+
"content": {
|
|
1232
|
+
"application/json": {
|
|
1233
|
+
"schema": {
|
|
1234
|
+
"$ref": "#/components/schemas/ConflictResponse"
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
},
|
|
1227
1239
|
"422": {
|
|
1228
1240
|
"description": "The request is invalid.",
|
|
1229
1241
|
"content": {
|
|
@@ -1239,6 +1251,7 @@
|
|
|
1239
1251
|
"delete": {
|
|
1240
1252
|
"operationId": "accounts.delete",
|
|
1241
1253
|
"summary": "Delete an account by ID",
|
|
1254
|
+
"description": "Accounts referenced by following (including inactive records) cannot be deleted; returns 409.",
|
|
1242
1255
|
"security": [
|
|
1243
1256
|
{
|
|
1244
1257
|
"bearerAuth": []
|
|
@@ -1278,6 +1291,16 @@
|
|
|
1278
1291
|
}
|
|
1279
1292
|
}
|
|
1280
1293
|
},
|
|
1294
|
+
"409": {
|
|
1295
|
+
"description": "The request conflicts with an existing resource.",
|
|
1296
|
+
"content": {
|
|
1297
|
+
"application/json": {
|
|
1298
|
+
"schema": {
|
|
1299
|
+
"$ref": "#/components/schemas/ConflictResponse"
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1281
1304
|
"422": {
|
|
1282
1305
|
"description": "The request is invalid.",
|
|
1283
1306
|
"content": {
|
|
@@ -1548,6 +1571,7 @@
|
|
|
1548
1571
|
"get": {
|
|
1549
1572
|
"operationId": "following.list",
|
|
1550
1573
|
"summary": "List following records",
|
|
1574
|
+
"description": "Lists account-backed following records. Inactive history detached by contact deletion is internal and omitted; accountId remains required and non-null.",
|
|
1551
1575
|
"security": [
|
|
1552
1576
|
{
|
|
1553
1577
|
"bearerAuth": []
|
|
@@ -1617,6 +1641,7 @@
|
|
|
1617
1641
|
"post": {
|
|
1618
1642
|
"operationId": "following.create",
|
|
1619
1643
|
"summary": "Follow a target",
|
|
1644
|
+
"description": "Reuses an inactive following identity, including history detached by contact deletion, and attaches it to the uniquely resolved contact-owned account. Retained incoming snapshots, cursors and deduplication identities survive refollow.",
|
|
1620
1645
|
"security": [
|
|
1621
1646
|
{
|
|
1622
1647
|
"bearerAuth": []
|
|
@@ -1686,6 +1711,206 @@
|
|
|
1686
1711
|
}
|
|
1687
1712
|
}
|
|
1688
1713
|
},
|
|
1714
|
+
"/following/{id}/activity": {
|
|
1715
|
+
"get": {
|
|
1716
|
+
"operationId": "following.activity.list",
|
|
1717
|
+
"summary": "Download buffered posts and boosts from one followed account",
|
|
1718
|
+
"description": "Non-consuming, actor-scoped delivery buffer of posts and boosts, without an opt-in filter. No read acknowledgment or deletion. Ordered by stable receipt sequence, not original publication time. Cursors survive deletion and remain usable when hasMore is false. Handle each item's kind; boosts distinguish sharing from original-author attribution. See docs/specs/12-incoming-activity.md for delivery and retry semantics.",
|
|
1719
|
+
"security": [
|
|
1720
|
+
{
|
|
1721
|
+
"bearerAuth": []
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
"parameters": [
|
|
1725
|
+
{
|
|
1726
|
+
"name": "id",
|
|
1727
|
+
"in": "path",
|
|
1728
|
+
"required": true,
|
|
1729
|
+
"schema": {
|
|
1730
|
+
"type": "integer",
|
|
1731
|
+
"minimum": 1
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"name": "limit",
|
|
1736
|
+
"in": "query",
|
|
1737
|
+
"required": false,
|
|
1738
|
+
"schema": {
|
|
1739
|
+
"type": "integer",
|
|
1740
|
+
"minimum": 1,
|
|
1741
|
+
"maximum": 100,
|
|
1742
|
+
"default": 50
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "cursor",
|
|
1747
|
+
"in": "query",
|
|
1748
|
+
"required": false,
|
|
1749
|
+
"description": "Opaque continuation for this actor/following pair. Omit for the oldest available copy. Invalid/cross-scope cursors return 422.",
|
|
1750
|
+
"schema": {
|
|
1751
|
+
"type": "string",
|
|
1752
|
+
"minLength": 1,
|
|
1753
|
+
"maxLength": 2048
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
],
|
|
1757
|
+
"responses": {
|
|
1758
|
+
"200": {
|
|
1759
|
+
"description": "Available copies at query time; concurrent explicit deletion may change later responses. Cache-Control: no-store.",
|
|
1760
|
+
"content": {
|
|
1761
|
+
"application/json": {
|
|
1762
|
+
"schema": {
|
|
1763
|
+
"$ref": "#/components/schemas/IncomingActivityPage"
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
},
|
|
1768
|
+
"401": {
|
|
1769
|
+
"description": "The API key is missing or invalid.",
|
|
1770
|
+
"content": {
|
|
1771
|
+
"application/json": {
|
|
1772
|
+
"schema": {
|
|
1773
|
+
"$ref": "#/components/schemas/AuthenticationErrorResponse"
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
"404": {
|
|
1779
|
+
"description": "The requested resource was not found.",
|
|
1780
|
+
"content": {
|
|
1781
|
+
"application/json": {
|
|
1782
|
+
"schema": {
|
|
1783
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
"422": {
|
|
1789
|
+
"description": "The request is invalid.",
|
|
1790
|
+
"content": {
|
|
1791
|
+
"application/json": {
|
|
1792
|
+
"schema": {
|
|
1793
|
+
"$ref": "#/components/schemas/ValidationErrorResponse"
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
},
|
|
1798
|
+
"501": {
|
|
1799
|
+
"description": "This site does not implement this operation.",
|
|
1800
|
+
"content": {
|
|
1801
|
+
"application/json": {
|
|
1802
|
+
"schema": {
|
|
1803
|
+
"$ref": "#/components/schemas/NotImplementedResponse"
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
},
|
|
1810
|
+
"delete": {
|
|
1811
|
+
"operationId": "following.activity.remove",
|
|
1812
|
+
"summary": "Remove selected buffered website copies",
|
|
1813
|
+
"description": "Atomic body removal in the selected followed account and configured actor only. Does not remove remote originals, owned publications or client bodies. Missing/already-removed/out-of-scope IDs are harmless; duplicates are coalesced. Retry identical requests after uncertain responses; removed may be zero. No read or persistence acknowledgment. Bodies are removed; minimal deduplication identities remain indefinitely.",
|
|
1814
|
+
"security": [
|
|
1815
|
+
{
|
|
1816
|
+
"bearerAuth": []
|
|
1817
|
+
}
|
|
1818
|
+
],
|
|
1819
|
+
"parameters": [
|
|
1820
|
+
{
|
|
1821
|
+
"name": "id",
|
|
1822
|
+
"in": "path",
|
|
1823
|
+
"required": true,
|
|
1824
|
+
"schema": {
|
|
1825
|
+
"type": "integer",
|
|
1826
|
+
"minimum": 1
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
],
|
|
1830
|
+
"requestBody": {
|
|
1831
|
+
"required": true,
|
|
1832
|
+
"description": "JSON payload, at most 16384 bytes. Validate the entire batch before changing anything.",
|
|
1833
|
+
"x-max-body-bytes": 16384,
|
|
1834
|
+
"content": {
|
|
1835
|
+
"application/json": {
|
|
1836
|
+
"schema": {
|
|
1837
|
+
"$ref": "#/components/schemas/RemoveIncomingActivityRequest"
|
|
1838
|
+
},
|
|
1839
|
+
"example": {
|
|
1840
|
+
"ids": [
|
|
1841
|
+
"b40eac11-4a38-44cc-a969-ecf2e7c4654b"
|
|
1842
|
+
]
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"responses": {
|
|
1848
|
+
"200": {
|
|
1849
|
+
"description": "Number of copies actually removed by this request; zero is a successful idempotent retry, not an error.",
|
|
1850
|
+
"content": {
|
|
1851
|
+
"application/json": {
|
|
1852
|
+
"schema": {
|
|
1853
|
+
"$ref": "#/components/schemas/RemoveIncomingActivityResponse"
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
},
|
|
1858
|
+
"401": {
|
|
1859
|
+
"description": "The API key is missing or invalid.",
|
|
1860
|
+
"content": {
|
|
1861
|
+
"application/json": {
|
|
1862
|
+
"schema": {
|
|
1863
|
+
"$ref": "#/components/schemas/AuthenticationErrorResponse"
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"404": {
|
|
1869
|
+
"description": "The requested resource was not found.",
|
|
1870
|
+
"content": {
|
|
1871
|
+
"application/json": {
|
|
1872
|
+
"schema": {
|
|
1873
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
},
|
|
1878
|
+
"413": {
|
|
1879
|
+
"description": "JSON payload exceeds 16384 bytes; no changes.",
|
|
1880
|
+
"content": {
|
|
1881
|
+
"application/json": {
|
|
1882
|
+
"schema": {
|
|
1883
|
+
"$ref": "#/components/schemas/PayloadTooLargeResponse"
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
"422": {
|
|
1889
|
+
"description": "The request is invalid.",
|
|
1890
|
+
"content": {
|
|
1891
|
+
"application/json": {
|
|
1892
|
+
"schema": {
|
|
1893
|
+
"$ref": "#/components/schemas/ValidationErrorResponse"
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
"500": {
|
|
1899
|
+
"description": "Persistence failure rolls back the batch. A lost/uncertain transport response never establishes whether removal committed; retry the same IDs."
|
|
1900
|
+
},
|
|
1901
|
+
"501": {
|
|
1902
|
+
"description": "This site does not implement this operation.",
|
|
1903
|
+
"content": {
|
|
1904
|
+
"application/json": {
|
|
1905
|
+
"schema": {
|
|
1906
|
+
"$ref": "#/components/schemas/NotImplementedResponse"
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1689
1914
|
"/following/{id}/unfollow": {
|
|
1690
1915
|
"post": {
|
|
1691
1916
|
"operationId": "following.unfollow",
|
|
@@ -2787,7 +3012,7 @@
|
|
|
2787
3012
|
},
|
|
2788
3013
|
"version": {
|
|
2789
3014
|
"type": "string",
|
|
2790
|
-
"const": "
|
|
3015
|
+
"const": "2.3.0"
|
|
2791
3016
|
}
|
|
2792
3017
|
}
|
|
2793
3018
|
}
|
|
@@ -3644,7 +3869,7 @@
|
|
|
3644
3869
|
"type": "object",
|
|
3645
3870
|
"required": [
|
|
3646
3871
|
"id",
|
|
3647
|
-
"
|
|
3872
|
+
"accountId",
|
|
3648
3873
|
"profileUrl",
|
|
3649
3874
|
"displayName",
|
|
3650
3875
|
"handle",
|
|
@@ -3661,8 +3886,9 @@
|
|
|
3661
3886
|
"id": {
|
|
3662
3887
|
"type": "integer"
|
|
3663
3888
|
},
|
|
3664
|
-
"
|
|
3665
|
-
"type": "integer"
|
|
3889
|
+
"accountId": {
|
|
3890
|
+
"type": "integer",
|
|
3891
|
+
"description": "Followed contact-owned account ID. Resolve its ownerId through GET /accounts/{id} for contact attribution."
|
|
3666
3892
|
},
|
|
3667
3893
|
"profileUrl": {
|
|
3668
3894
|
"type": "string",
|
|
@@ -3729,6 +3955,362 @@
|
|
|
3729
3955
|
}
|
|
3730
3956
|
}
|
|
3731
3957
|
},
|
|
3958
|
+
"IncomingPost": {
|
|
3959
|
+
"type": "object",
|
|
3960
|
+
"description": "Immutable first-delivery snapshot of a remote post, not an owned publication. Account/Contact attribution uses existing shapes. For posts, sharing and author attribution are equal. Remote content is untrusted; sanitize HTML before rendering. No attachment binaries are fetched.",
|
|
3961
|
+
"required": [
|
|
3962
|
+
"id",
|
|
3963
|
+
"kind",
|
|
3964
|
+
"activityId",
|
|
3965
|
+
"objectId",
|
|
3966
|
+
"objectType",
|
|
3967
|
+
"url",
|
|
3968
|
+
"title",
|
|
3969
|
+
"contentHtml",
|
|
3970
|
+
"contentText",
|
|
3971
|
+
"publishedAt",
|
|
3972
|
+
"receivedAt",
|
|
3973
|
+
"sharingAccount",
|
|
3974
|
+
"sharingContact",
|
|
3975
|
+
"authorAccount",
|
|
3976
|
+
"authorContact"
|
|
3977
|
+
],
|
|
3978
|
+
"properties": {
|
|
3979
|
+
"id": {
|
|
3980
|
+
"type": "string",
|
|
3981
|
+
"format": "uuid",
|
|
3982
|
+
"description": "Opaque buffered-copy identity, not an activity or original-object ID. Treat as opaque and use only for this followed account."
|
|
3983
|
+
},
|
|
3984
|
+
"kind": {
|
|
3985
|
+
"type": "string",
|
|
3986
|
+
"const": "post"
|
|
3987
|
+
},
|
|
3988
|
+
"activityId": {
|
|
3989
|
+
"type": "string",
|
|
3990
|
+
"format": "uri"
|
|
3991
|
+
},
|
|
3992
|
+
"objectId": {
|
|
3993
|
+
"type": "string",
|
|
3994
|
+
"format": "uri"
|
|
3995
|
+
},
|
|
3996
|
+
"objectType": {
|
|
3997
|
+
"type": "string",
|
|
3998
|
+
"enum": [
|
|
3999
|
+
"Note",
|
|
4000
|
+
"Article",
|
|
4001
|
+
"Page"
|
|
4002
|
+
]
|
|
4003
|
+
},
|
|
4004
|
+
"url": {
|
|
4005
|
+
"type": "string",
|
|
4006
|
+
"format": "uri"
|
|
4007
|
+
},
|
|
4008
|
+
"title": {
|
|
4009
|
+
"type": [
|
|
4010
|
+
"string",
|
|
4011
|
+
"null"
|
|
4012
|
+
]
|
|
4013
|
+
},
|
|
4014
|
+
"contentHtml": {
|
|
4015
|
+
"type": "string",
|
|
4016
|
+
"description": "Original remote HTML, untrusted and not sanitized. Clients must sanitize before rendering; never execute embedded scripts."
|
|
4017
|
+
},
|
|
4018
|
+
"contentText": {
|
|
4019
|
+
"type": "string",
|
|
4020
|
+
"description": "Plain-text derivative, not a trusted instruction or a substitute for the preserved HTML."
|
|
4021
|
+
},
|
|
4022
|
+
"publishedAt": {
|
|
4023
|
+
"type": [
|
|
4024
|
+
"string",
|
|
4025
|
+
"null"
|
|
4026
|
+
],
|
|
4027
|
+
"format": "date-time"
|
|
4028
|
+
},
|
|
4029
|
+
"receivedAt": {
|
|
4030
|
+
"type": "string",
|
|
4031
|
+
"format": "date-time"
|
|
4032
|
+
},
|
|
4033
|
+
"sharingAccount": {
|
|
4034
|
+
"$ref": "#/components/schemas/Account"
|
|
4035
|
+
},
|
|
4036
|
+
"sharingContact": {
|
|
4037
|
+
"$ref": "#/components/schemas/Contact"
|
|
4038
|
+
},
|
|
4039
|
+
"authorAccount": {
|
|
4040
|
+
"$ref": "#/components/schemas/Account"
|
|
4041
|
+
},
|
|
4042
|
+
"authorContact": {
|
|
4043
|
+
"$ref": "#/components/schemas/Contact"
|
|
4044
|
+
}
|
|
4045
|
+
}
|
|
4046
|
+
},
|
|
4047
|
+
"IncomingAuthorAccount": {
|
|
4048
|
+
"description": "Original-author attribution using the existing Account shape. A unique saved contact account uses its real IDs; otherwise use an unsaved snapshot with null id/ownerType/ownerId and no persistent account/contact creation. Never pass a null ID to account-management routes.",
|
|
4049
|
+
"oneOf": [
|
|
4050
|
+
{
|
|
4051
|
+
"$ref": "#/components/schemas/Account"
|
|
4052
|
+
},
|
|
4053
|
+
{
|
|
4054
|
+
"type": "object",
|
|
4055
|
+
"required": [
|
|
4056
|
+
"id",
|
|
4057
|
+
"ownerType",
|
|
4058
|
+
"ownerId",
|
|
4059
|
+
"label",
|
|
4060
|
+
"url",
|
|
4061
|
+
"avatarUrl",
|
|
4062
|
+
"kind",
|
|
4063
|
+
"protocol",
|
|
4064
|
+
"isDefault",
|
|
4065
|
+
"sortOrder"
|
|
4066
|
+
],
|
|
4067
|
+
"properties": {
|
|
4068
|
+
"id": {
|
|
4069
|
+
"type": "null"
|
|
4070
|
+
},
|
|
4071
|
+
"ownerType": {
|
|
4072
|
+
"type": "null"
|
|
4073
|
+
},
|
|
4074
|
+
"ownerId": {
|
|
4075
|
+
"type": "null"
|
|
4076
|
+
},
|
|
4077
|
+
"label": {
|
|
4078
|
+
"type": "string",
|
|
4079
|
+
"description": "Resolved original-author display name, or its URI if enrichment is unavailable."
|
|
4080
|
+
},
|
|
4081
|
+
"url": {
|
|
4082
|
+
"type": "string",
|
|
4083
|
+
"format": "uri",
|
|
4084
|
+
"description": "Stable original-author actor URI from the canonical original."
|
|
4085
|
+
},
|
|
4086
|
+
"avatarUrl": {
|
|
4087
|
+
"type": [
|
|
4088
|
+
"string",
|
|
4089
|
+
"null"
|
|
4090
|
+
],
|
|
4091
|
+
"format": "uri"
|
|
4092
|
+
},
|
|
4093
|
+
"kind": {
|
|
4094
|
+
"type": "string",
|
|
4095
|
+
"const": "social"
|
|
4096
|
+
},
|
|
4097
|
+
"protocol": {
|
|
4098
|
+
"type": "string",
|
|
4099
|
+
"const": "activitypub"
|
|
4100
|
+
},
|
|
4101
|
+
"isDefault": {
|
|
4102
|
+
"type": "boolean",
|
|
4103
|
+
"const": false
|
|
4104
|
+
},
|
|
4105
|
+
"sortOrder": {
|
|
4106
|
+
"type": "integer",
|
|
4107
|
+
"const": 0
|
|
4108
|
+
}
|
|
4109
|
+
}
|
|
4110
|
+
}
|
|
4111
|
+
]
|
|
4112
|
+
},
|
|
4113
|
+
"IncomingBoost": {
|
|
4114
|
+
"type": "object",
|
|
4115
|
+
"description": "One newly delivered boost of a remote post, including older originals. The followed sharing account is distinct from the original author. Resolve the referenced canonical original, not posting history. Distinct Announce activity IDs are distinct copies even for the same original; retries of an observed ID never resurrect a removed copy. Existing post payloads are unchanged.",
|
|
4116
|
+
"required": [
|
|
4117
|
+
"id",
|
|
4118
|
+
"kind",
|
|
4119
|
+
"activityId",
|
|
4120
|
+
"objectId",
|
|
4121
|
+
"objectType",
|
|
4122
|
+
"url",
|
|
4123
|
+
"title",
|
|
4124
|
+
"contentHtml",
|
|
4125
|
+
"contentText",
|
|
4126
|
+
"publishedAt",
|
|
4127
|
+
"sharedAt",
|
|
4128
|
+
"receivedAt",
|
|
4129
|
+
"sharingAccount",
|
|
4130
|
+
"sharingContact",
|
|
4131
|
+
"authorAccount",
|
|
4132
|
+
"authorContact"
|
|
4133
|
+
],
|
|
4134
|
+
"properties": {
|
|
4135
|
+
"id": {
|
|
4136
|
+
"type": "string",
|
|
4137
|
+
"format": "uuid",
|
|
4138
|
+
"description": "Opaque buffered-copy identity; not the Announce or original-object ID."
|
|
4139
|
+
},
|
|
4140
|
+
"kind": {
|
|
4141
|
+
"type": "string",
|
|
4142
|
+
"const": "boost"
|
|
4143
|
+
},
|
|
4144
|
+
"activityId": {
|
|
4145
|
+
"type": "string",
|
|
4146
|
+
"format": "uri",
|
|
4147
|
+
"description": "Delivered Announce identity."
|
|
4148
|
+
},
|
|
4149
|
+
"objectId": {
|
|
4150
|
+
"type": "string",
|
|
4151
|
+
"format": "uri",
|
|
4152
|
+
"description": "Canonical remote original-object identity, independent of this boost."
|
|
4153
|
+
},
|
|
4154
|
+
"objectType": {
|
|
4155
|
+
"type": "string",
|
|
4156
|
+
"enum": [
|
|
4157
|
+
"Note",
|
|
4158
|
+
"Article",
|
|
4159
|
+
"Page"
|
|
4160
|
+
]
|
|
4161
|
+
},
|
|
4162
|
+
"url": {
|
|
4163
|
+
"type": "string",
|
|
4164
|
+
"format": "uri"
|
|
4165
|
+
},
|
|
4166
|
+
"title": {
|
|
4167
|
+
"type": [
|
|
4168
|
+
"string",
|
|
4169
|
+
"null"
|
|
4170
|
+
]
|
|
4171
|
+
},
|
|
4172
|
+
"contentHtml": {
|
|
4173
|
+
"type": "string",
|
|
4174
|
+
"description": "Untrusted original HTML; sanitize before rendering and never execute embedded scripts."
|
|
4175
|
+
},
|
|
4176
|
+
"contentText": {
|
|
4177
|
+
"type": "string"
|
|
4178
|
+
},
|
|
4179
|
+
"publishedAt": {
|
|
4180
|
+
"type": [
|
|
4181
|
+
"string",
|
|
4182
|
+
"null"
|
|
4183
|
+
],
|
|
4184
|
+
"format": "date-time",
|
|
4185
|
+
"description": "Original publication time, not the boost's age or receipt order."
|
|
4186
|
+
},
|
|
4187
|
+
"sharedAt": {
|
|
4188
|
+
"type": [
|
|
4189
|
+
"string",
|
|
4190
|
+
"null"
|
|
4191
|
+
],
|
|
4192
|
+
"format": "date-time",
|
|
4193
|
+
"description": "Announce publication time, if supplied; not proof of receipt."
|
|
4194
|
+
},
|
|
4195
|
+
"receivedAt": {
|
|
4196
|
+
"type": "string",
|
|
4197
|
+
"format": "date-time"
|
|
4198
|
+
},
|
|
4199
|
+
"sharingAccount": {
|
|
4200
|
+
"$ref": "#/components/schemas/Account"
|
|
4201
|
+
},
|
|
4202
|
+
"sharingContact": {
|
|
4203
|
+
"$ref": "#/components/schemas/Contact"
|
|
4204
|
+
},
|
|
4205
|
+
"authorAccount": {
|
|
4206
|
+
"$ref": "#/components/schemas/IncomingAuthorAccount"
|
|
4207
|
+
},
|
|
4208
|
+
"authorContact": {
|
|
4209
|
+
"oneOf": [
|
|
4210
|
+
{
|
|
4211
|
+
"$ref": "#/components/schemas/Contact"
|
|
4212
|
+
},
|
|
4213
|
+
{
|
|
4214
|
+
"type": "null"
|
|
4215
|
+
}
|
|
4216
|
+
],
|
|
4217
|
+
"description": "Frozen known Contact attribution, or null for an unsaved/ambiguous original author."
|
|
4218
|
+
}
|
|
4219
|
+
}
|
|
4220
|
+
},
|
|
4221
|
+
"IncomingActivityPage": {
|
|
4222
|
+
"type": "object",
|
|
4223
|
+
"required": [
|
|
4224
|
+
"data",
|
|
4225
|
+
"meta"
|
|
4226
|
+
],
|
|
4227
|
+
"properties": {
|
|
4228
|
+
"data": {
|
|
4229
|
+
"type": "array",
|
|
4230
|
+
"maxItems": 100,
|
|
4231
|
+
"items": {
|
|
4232
|
+
"oneOf": [
|
|
4233
|
+
{
|
|
4234
|
+
"$ref": "#/components/schemas/IncomingPost"
|
|
4235
|
+
},
|
|
4236
|
+
{
|
|
4237
|
+
"$ref": "#/components/schemas/IncomingBoost"
|
|
4238
|
+
}
|
|
4239
|
+
],
|
|
4240
|
+
"discriminator": {
|
|
4241
|
+
"propertyName": "kind",
|
|
4242
|
+
"mapping": {
|
|
4243
|
+
"post": "#/components/schemas/IncomingPost",
|
|
4244
|
+
"boost": "#/components/schemas/IncomingBoost"
|
|
4245
|
+
}
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
},
|
|
4249
|
+
"meta": {
|
|
4250
|
+
"type": "object",
|
|
4251
|
+
"required": [
|
|
4252
|
+
"nextCursor",
|
|
4253
|
+
"hasMore",
|
|
4254
|
+
"limit"
|
|
4255
|
+
],
|
|
4256
|
+
"properties": {
|
|
4257
|
+
"nextCursor": {
|
|
4258
|
+
"type": "string",
|
|
4259
|
+
"description": "Continuation after the last returned copy, or unchanged position for an empty page; usable for polling new arrivals. Advancing this cursor is a client choice, not proof of persistence."
|
|
4260
|
+
},
|
|
4261
|
+
"hasMore": {
|
|
4262
|
+
"type": "boolean",
|
|
4263
|
+
"description": "More copies were available at query time, not a guarantee against concurrent deletion."
|
|
4264
|
+
},
|
|
4265
|
+
"limit": {
|
|
4266
|
+
"type": "integer",
|
|
4267
|
+
"minimum": 1,
|
|
4268
|
+
"maximum": 100
|
|
4269
|
+
}
|
|
4270
|
+
}
|
|
4271
|
+
}
|
|
4272
|
+
}
|
|
4273
|
+
},
|
|
4274
|
+
"RemoveIncomingActivityRequest": {
|
|
4275
|
+
"type": "object",
|
|
4276
|
+
"additionalProperties": false,
|
|
4277
|
+
"required": [
|
|
4278
|
+
"ids"
|
|
4279
|
+
],
|
|
4280
|
+
"properties": {
|
|
4281
|
+
"ids": {
|
|
4282
|
+
"type": "array",
|
|
4283
|
+
"minItems": 1,
|
|
4284
|
+
"maxItems": 100,
|
|
4285
|
+
"items": {
|
|
4286
|
+
"type": "string",
|
|
4287
|
+
"format": "uuid",
|
|
4288
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
4289
|
+
}
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
},
|
|
4293
|
+
"RemoveIncomingActivityResponse": {
|
|
4294
|
+
"type": "object",
|
|
4295
|
+
"required": [
|
|
4296
|
+
"data"
|
|
4297
|
+
],
|
|
4298
|
+
"properties": {
|
|
4299
|
+
"data": {
|
|
4300
|
+
"type": "object",
|
|
4301
|
+
"required": [
|
|
4302
|
+
"removed"
|
|
4303
|
+
],
|
|
4304
|
+
"properties": {
|
|
4305
|
+
"removed": {
|
|
4306
|
+
"type": "integer",
|
|
4307
|
+
"minimum": 0,
|
|
4308
|
+
"maximum": 100
|
|
4309
|
+
}
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
},
|
|
3732
4314
|
"FollowingResponse": {
|
|
3733
4315
|
"type": "object",
|
|
3734
4316
|
"required": [
|