Skip to content

Commit ffd75e6

Browse files
chrisdengsogithub-actions[bot]
authored andcommitted
feat: v1.2.0, API changes
1 parent 4421b14 commit ffd75e6

340 files changed

Lines changed: 15531 additions & 6926 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.speakeasy/gen.lock‎

Lines changed: 687 additions & 242 deletions
Large diffs are not rendered by default.

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: true
3333
skipResponseBodyAssertions: false
3434
php:
35-
version: 1.1.1
35+
version: 1.2.0
3636
additionalDependencies:
3737
autoload: {}
3838
autoload-dev: {}

‎.speakeasy/openapi.json‎

Lines changed: 6824 additions & 4635 deletions
Large diffs are not rendered by default.

‎CHANGELOG.md‎

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,141 @@
11
# Changelog
22

3+
## 1.2.0 (2026-10-26)
4+
5+
Full Changelog: [v1.1.1...v1.2.0](https://github.com/moderation-api/sdk-php/compare/v1.1.1...v1.2.0)
6+
7+
### ⚠ Breaking changes
8+
9+
- `GET /authors`: removed the enum value `reportCount` from the `query` request parameter `sortBy`
10+
- `GET /queue/{id}`: the response property `queue/description` became nullable for the status `200`
11+
- `GET /queue/{id}`: removed the required property `queue/filter` from the response with the `200` status
12+
- `GET /queue/{id}/items`: added `subschema #1, subschema #2` to the `data/items/content` response property `anyOf` list for the response status `200`
13+
- `GET /queue/{id}/items`: the response property `data/items/authorId` became nullable for the status `200`
14+
- `GET /queue/{id}/items`: the response property `data/items/contentType` became nullable for the status `200`
15+
- `GET /queue/{id}/items`: the response property `data/items/conversationId` became nullable for the status `200`
16+
- `GET /queue/{id}/items`: the response property `data/items/language` became nullable for the status `200`
17+
- `GET /queue/{id}/items`: the response property `data/items/labels/items/flagged` became optional for the status `200`
18+
- `GET /queue/{id}/items`: the `data/items/content` response's property `type` changed from `string` to `any` for status `200`
19+
- `POST /queue/{id}/items/{itemId}/resolve`: removed the request body
20+
- `POST /queue/{id}/items/{itemId}/unresolve`: removed the request body
21+
- `GET /queue/{id}/stats`: the response property `topReviewers/items/name` became nullable for the status `200`
22+
- `GET /queue/{id}/stats`: the response property `topReviewers/items/userId` became nullable for the status `200`
23+
- `GET /queue/{id}/stats`: removed the required property `actionStats` from the response with the `200` status
24+
- `GET /queue/{id}/stats`: removed the required property `reviewStats/averageTimeToReview` from the response with the `200` status
25+
- `GET /queue/{id}/stats`: removed the required property `topReviewers/items/averageTimePerReview` from the response with the `200` status
26+
- `GET /queue/{id}/stats`: removed the required property `topReviewers/items/topActions` from the response with the `200` status
27+
- `GET /queue/{id}/stats`: removed the required property `trends/flaggedContentTrends` from the response with the `200` status
28+
29+
### API changes
30+
31+
- `GET /actions`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
32+
- `GET /actions`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
33+
- `POST /actions`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
34+
- `POST /actions/execute`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
35+
- `POST /actions/execute`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
36+
- `POST /actions/{actionId}/execute`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
37+
- `POST /actions/{actionId}/execute`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
38+
- `DELETE /actions/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
39+
- `DELETE /actions/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
40+
- `GET /actions/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
41+
- `GET /actions/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
42+
- `PUT /actions/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
43+
- `PUT /actions/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
44+
- `GET /auth`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
45+
- `GET /auth`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
46+
- `POST /auth`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
47+
- `GET /authors`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
48+
- `GET /authors`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
49+
- `POST /authors`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
50+
- `DELETE /authors/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
51+
- `DELETE /authors/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
52+
- `GET /authors/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
53+
- `GET /authors/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
54+
- `PUT /authors/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
55+
- `PUT /authors/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
56+
- `DELETE /channels/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
57+
- `DELETE /channels/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
58+
- `GET /channels/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
59+
- `PUT /channels/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
60+
- `PUT /channels/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
61+
- `POST /channels/{id}/duplicate`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
62+
- `POST /channels/{id}/duplicate`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
63+
- `POST /moderate`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
64+
- `POST /moderate/image`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
65+
- `POST /moderate/text`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
66+
- `POST /projects`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
67+
- `DELETE /projects/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
68+
- `GET /projects/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
69+
- `PUT /projects/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
70+
- `PUT /projects/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
71+
- `POST /projects/{id}/duplicate`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
72+
- `POST /projects/{id}/duplicate`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
73+
- `GET /projects/{projectId}/channels`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
74+
- `POST /projects/{projectId}/channels`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
75+
- `POST /projects/{projectId}/channels`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
76+
- `GET /queue/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
77+
- `GET /queue/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
78+
- `GET /queue/{id}/items`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
79+
- `GET /queue/{id}/items`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
80+
- `POST /queue/{id}/items/{itemId}/resolve`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
81+
- `POST /queue/{id}/items/{itemId}/unresolve`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
82+
- `GET /queue/{id}/stats`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
83+
- `GET /queue/{id}/stats`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
84+
- `POST /webhooks`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
85+
- `DELETE /webhooks/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
86+
- `GET /webhooks/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
87+
- `PUT /webhooks/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
88+
- `PUT /webhooks/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
89+
- `GET /wordlist`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
90+
- `GET /wordlist`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
91+
- `GET /wordlist/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
92+
- `GET /wordlist/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
93+
- `PUT /wordlist/{id}`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
94+
- `PUT /wordlist/{id}`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
95+
- `GET /wordlist/{id}/embedding-status`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
96+
- `GET /wordlist/{id}/embedding-status`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
97+
- `DELETE /wordlist/{id}/words`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
98+
- `DELETE /wordlist/{id}/words`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
99+
- `POST /wordlist/{id}/words`: added the new `project_name_ambiguous` enum value to the `code` response property for the response status `400`
100+
- `POST /wordlist/{id}/words`: added the new `queue_item_not_found` enum value to the `code` response property for the response status `404`
101+
- `GET /authors`: deleted the `query` request parameter `contentTypes`
102+
- `GET /queue/{id}/items`: deleted the `query` request parameter `sortDirection`
103+
- `GET /queue/{id}/items`: deleted the `query` request parameter `sortField`
104+
- a breaking change was detected but the version is still `1.1.0`
105+
- `GET /analytics/authors`: endpoint added
106+
- `GET /analytics/automation`: endpoint added
107+
- `GET /analytics/channels`: endpoint added
108+
- `GET /analytics/policies`: endpoint added
109+
- `GET /analytics/summary`: endpoint added
110+
- `GET /analytics/volumes`: endpoint added
111+
- `POST /feedback`: endpoint added
112+
- `POST /projects/{id}/api-keys`: endpoint added
113+
- `GET /queue`: endpoint added
114+
- `GET /queue/{id}`: the `queue/resolvedItemsCount` response's property `type` was narrowed from `number` to `integer` for status `200`
115+
- `GET /queue/{id}`: the `queue/totalItemsCount` response's property `type` was narrowed from `number` to `integer` for status `200`
116+
- `GET /queue/{id}`: the `queue/unresolvedItemsCount` response's property `type` was narrowed from `number` to `integer` for status `200`
117+
- `GET /queue/{id}`: added the required property `queue/isDefault` to the response with the `200` status
118+
- `GET /queue/{id}/items`: added the new optional `query` request parameter `sort`
119+
- `GET /queue/{id}/items`: added the optional property `data/items/labels/items/manual` to the response with the `200` status
120+
- `GET /queue/{id}/items`: added the optional property `data/items/labels/items/matches` to the response with the `200` status
121+
- `GET /queue/{id}/items`: added the optional property `data/items/labels/items/shadow_flagged` to the response with the `200` status
122+
- `GET /queue/{id}/items`: removed the optional property `data/items/actions` from the response with the `200` status
123+
- `GET /queue/{id}/items`: the response property `data/items/authorId` became required for the status `200`
124+
- `GET /queue/{id}/items`: the response property `data/items/contentType` became required for the status `200`
125+
- `GET /queue/{id}/items`: the response property `data/items/conversationId` became required for the status `200`
126+
- `GET /queue/{id}/items`: the response property `data/items/language` became required for the status `200`
127+
- `GET /queue/{id}/items`: added the required property `data/items/contentId` to the response with the `200` status
128+
- `GET /queue/{id}/items`: added the required property `data/items/severity` to the response with the `200` status
129+
- `POST /queue/{id}/items/resolve`: endpoint added
130+
- `POST /queue/{id}/items/{itemId}/resolve`: removed the optional property `comment` from the response with the `200` status
131+
- `POST /queue/{id}/items/{itemId}/unresolve`: the `status` response property for the response status `200` was restricted to a list of enum values
132+
- `GET /queue/{id}/stats`: removed the optional property `topReviewers/items/accuracyScore` from the response with the `200` status
133+
- `GET /queue/{id}/stats`: the `reviewStats/totalPending` response's property `type` was narrowed from `number` to `integer` for status `200`
134+
- `GET /queue/{id}/stats`: the `reviewStats/totalReviewed` response's property `type` was narrowed from `number` to `integer` for status `200`
135+
- `GET /queue/{id}/stats`: the `topReviewers/items/reviewCount` response's property `type` was narrowed from `number` to `integer` for status `200`
136+
- `GET /queue/{id}/stats`: the `trends/dailyReviewCounts/items/count` response's property `type` was narrowed from `number` to `integer` for status `200`
137+
- `POST /wordlist`: endpoint added
138+
3139
## 1.1.1 (2026-10-22)
4140

5141
Full Changelog: [v1.1.0...v1.1.1](https://github.com/moderation-api/sdk-php/compare/v1.1.0...v1.1.1)

0 commit comments

Comments
 (0)