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.1"
".": "0.8.0"
}
4 changes: 2 additions & 2 deletions .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
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-7270e2afd5e9c57ffcb1b83d5eb8b549a33c471b72ab494f903473a23b3f7115.yml
openapi_spec_hash: cfd11087252e28bc7e7d4f4dbefc51ee
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.8.0 (2026-02-23)

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

### Features

* **api:** api update ([a6ec088](https://github.com/moderation-api/sdk-php/commit/a6ec0885225ae950277829afc69986e92f752e67))

## 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)
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.1"
composer require "moderation-api/sdk-php 0.8.0"
```

<!-- x-release-please-end -->
Expand Down
8 changes: 4 additions & 4 deletions src/Content/ContentSubmitParams/Content/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ final class Image implements BaseModel
public string $type = 'image';

/**
* Base64-encoded image data.
* Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue.
*/
#[Optional]
public ?string $data;

/**
* A public URL of the image content.
* A public URL of the image content. Either url or data must be provided.
*/
#[Optional]
public ?string $url;
Expand Down Expand Up @@ -69,7 +69,7 @@ public function withType(string $type): self
}

/**
* Base64-encoded image data.
* Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue.
*/
public function withData(string $data): self
{
Expand All @@ -80,7 +80,7 @@ public function withData(string $data): self
}

/**
* A public URL of the image content.
* A public URL of the image content. Either url or data must be provided.
*/
public function withURL(string $url): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ final class Image implements BaseModel
public string $type = 'image';

/**
* Base64-encoded image data.
* Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue.
*/
#[Optional]
public ?string $data;

/**
* A public URL of the image content.
* A public URL of the image content. Either url or data must be provided.
*/
#[Optional]
public ?string $url;
Expand Down Expand Up @@ -69,7 +69,7 @@ public function withType(string $type): self
}

/**
* Base64-encoded image data.
* Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue.
*/
public function withData(string $data): self
{
Expand All @@ -80,7 +80,7 @@ public function withData(string $data): self
}

/**
* A public URL of the image content.
* A public URL of the image content. Either url or data must be provided.
*/
public function withURL(string $url): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ final class Image implements BaseModel
public string $type = 'image';

/**
* Base64-encoded image data.
* Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue.
*/
#[Optional]
public ?string $data;

/**
* A public URL of the image content.
* A public URL of the image content. Either url or data must be provided.
*/
#[Optional]
public ?string $url;
Expand Down Expand Up @@ -69,7 +69,7 @@ public function withType(string $type): self
}

/**
* Base64-encoded image data.
* Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue.
*/
public function withData(string $data): self
{
Expand All @@ -80,7 +80,7 @@ public function withData(string $data): self
}

/**
* A public URL of the image content.
* A public URL of the image content. Either url or data must be provided.
*/
public function withURL(string $url): self
{
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.1';
const VERSION = '0.8.0';
// x-release-please-end