Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.7.0"
".": "0.7.1"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 27
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-67a3fe4439c3aa74fb2c18b207b43c790d42bab7bfd7e5e16f3e1046765ec959.yml
openapi_spec_hash: c87b33c2c72a172da02ed75d4e79eb70
config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb
config_hash: 6b825a08e19dfb747c5dc1766502b789
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.7.1 (2026-02-20)

Full Changelog: [v0.7.0...v0.7.1](https://github.com/moderation-api/sdk-php/compare/v0.7.0...v0.7.1)

### Chores

* update mock server docs ([497f083](https://github.com/moderation-api/sdk-php/commit/497f0832fa69f666332f9e533304ecef044de57b))

## 0.7.0 (2026-02-20)

Full Changelog: [v0.6.0...v0.7.0](https://github.com/moderation-api/sdk-php/compare/v0.6.0...v0.7.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The REST API documentation can be found on [docs.moderationapi.com](https://docs
<!-- x-release-please-start-version -->

```
composer require "moderation-api/sdk-php 0.7.0"
composer require "moderation-api/sdk-php 0.7.1"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
namespace ModerationAPI;

// x-release-please-start-version
const VERSION = '0.7.0';
const VERSION = '0.7.1';
// x-release-please-end
2 changes: 1 addition & 1 deletion tests/Services/AccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
public function testList(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->account->list();
Expand Down
6 changes: 3 additions & 3 deletions tests/Services/Actions/ExecuteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function setUp(): void
public function testExecute(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->execute->execute(actionKey: 'actionKey');
Expand All @@ -46,7 +46,7 @@ public function testExecute(): void
public function testExecuteWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->execute->execute(
Expand All @@ -66,7 +66,7 @@ public function testExecuteWithOptionalParams(): void
public function testExecuteByID(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->execute->executeByID('actionId');
Expand Down
12 changes: 6 additions & 6 deletions tests/Services/ActionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function setUp(): void
public function testCreate(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->create(name: 'name');
Expand All @@ -48,7 +48,7 @@ public function testCreate(): void
public function testCreateWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->create(
Expand Down Expand Up @@ -81,7 +81,7 @@ public function testCreateWithOptionalParams(): void
public function testRetrieve(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->retrieve('id');
Expand All @@ -94,7 +94,7 @@ public function testRetrieve(): void
public function testUpdate(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->update('id');
Expand All @@ -107,7 +107,7 @@ public function testUpdate(): void
public function testList(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->list();
Expand All @@ -120,7 +120,7 @@ public function testList(): void
public function testDelete(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->actions->delete('id');
Expand Down
4 changes: 2 additions & 2 deletions tests/Services/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function setUp(): void
public function testCreate(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->auth->create();
Expand All @@ -46,7 +46,7 @@ public function testCreate(): void
public function testRetrieve(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->auth->retrieve();
Expand Down
12 changes: 6 additions & 6 deletions tests/Services/AuthorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function setUp(): void
public function testCreate(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->authors->create(externalID: 'external_id');
Expand All @@ -49,7 +49,7 @@ public function testCreate(): void
public function testCreateWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->authors->create(
Expand Down Expand Up @@ -77,7 +77,7 @@ public function testCreateWithOptionalParams(): void
public function testRetrieve(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->authors->retrieve('id');
Expand All @@ -90,7 +90,7 @@ public function testRetrieve(): void
public function testUpdate(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->authors->update('id');
Expand All @@ -103,7 +103,7 @@ public function testUpdate(): void
public function testList(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->authors->list();
Expand All @@ -116,7 +116,7 @@ public function testList(): void
public function testDelete(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->authors->delete('id');
Expand Down
4 changes: 2 additions & 2 deletions tests/Services/ContentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
public function testSubmit(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->content->submit(
Expand All @@ -47,7 +47,7 @@ public function testSubmit(): void
public function testSubmitWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->content->submit(
Expand Down
10 changes: 5 additions & 5 deletions tests/Services/Queue/ItemsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function setUp(): void
public function testList(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->queue->items->list('id');
Expand All @@ -47,7 +47,7 @@ public function testList(): void
public function testResolve(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->queue->items->resolve('itemId', id: 'id');
Expand All @@ -60,7 +60,7 @@ public function testResolve(): void
public function testResolveWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->queue->items->resolve(
Expand All @@ -77,7 +77,7 @@ public function testResolveWithOptionalParams(): void
public function testUnresolve(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->queue->items->unresolve('itemId', id: 'id');
Expand All @@ -90,7 +90,7 @@ public function testUnresolve(): void
public function testUnresolveWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->queue->items->unresolve(
Expand Down
4 changes: 2 additions & 2 deletions tests/Services/QueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function setUp(): void
public function testRetrieve(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->queue->retrieve('id');
Expand All @@ -46,7 +46,7 @@ public function testRetrieve(): void
public function testGetStats(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->queue->getStats('id');
Expand Down
8 changes: 4 additions & 4 deletions tests/Services/Wordlist/WordsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function setUp(): void
public function testAdd(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->wordlist->words->add('id', words: ['string']);
Expand All @@ -46,7 +46,7 @@ public function testAdd(): void
public function testAddWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->wordlist->words->add('id', words: ['string']);
Expand All @@ -59,7 +59,7 @@ public function testAddWithOptionalParams(): void
public function testRemove(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->wordlist->words->remove('id', words: ['string']);
Expand All @@ -72,7 +72,7 @@ public function testRemove(): void
public function testRemoveWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->wordlist->words->remove('id', words: ['string']);
Expand Down
8 changes: 4 additions & 4 deletions tests/Services/WordlistTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function setUp(): void
public function testRetrieve(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->wordlist->retrieve('id');
Expand All @@ -47,7 +47,7 @@ public function testRetrieve(): void
public function testUpdate(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->wordlist->update('id');
Expand All @@ -60,7 +60,7 @@ public function testUpdate(): void
public function testList(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->wordlist->list();
Expand All @@ -73,7 +73,7 @@ public function testList(): void
public function testGetEmbeddingStatus(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->wordlist->getEmbeddingStatus('id');
Expand Down