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