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.10.0"
".": "0.11.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 40
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-294831f61f7890b2cdb89d181f26297732387d5e1288f446c0138e46fb1a4608.yml
openapi_spec_hash: a7f20451621ee678fbe09ff7a297b3ea
config_hash: 497506d9e2e66cd0573bd9c1f1242462
config_hash: 478a49d5520c8bb64b43272de11c2872
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.11.0 (2026-03-12)

Full Changelog: [v0.10.0...v0.11.0](https://github.com/sentdm/sent-dm-php/compare/v0.10.0...v0.11.0)

### Features

* **api:** manual updates ([2810a32](https://github.com/sentdm/sent-dm-php/commit/2810a3262f0ed0a83e6318e2d47c60524a66baaa))

## 0.10.0 (2026-03-12)

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

```
composer require "sentdm/sent-dm-php 0.10.0"
composer require "sentdm/sent-dm-php 0.11.0"
```

<!-- x-release-please-end -->
Expand Down
16 changes: 8 additions & 8 deletions src/Contacts/APIResponseOfContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
use SentDm\Core\Attributes\Optional;
use SentDm\Core\Concerns\SdkModel;
use SentDm\Core\Contracts\BaseModel;
use SentDm\Webhooks\APIError;
use SentDm\Webhooks\APIMeta;
use SentDm\Webhooks\ErrorDetail;

/**
* Standard API response envelope for all v3 endpoints.
*
* @phpstan-import-type ContactResponseShape from \SentDm\Contacts\ContactResponse
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
*
* @phpstan-type APIResponseOfContactShape = array{
* data?: null|ContactResponse|ContactResponseShape,
* error?: null|APIError|APIErrorShape,
* error?: null|ErrorDetail|ErrorDetailShape,
* meta?: null|APIMeta|APIMetaShape,
* success?: bool|null,
* }
Expand All @@ -40,7 +40,7 @@ final class APIResponseOfContact implements BaseModel
* Error information.
*/
#[Optional(nullable: true)]
public ?APIError $error;
public ?ErrorDetail $error;

/**
* Request and response metadata.
Expand All @@ -65,12 +65,12 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param ContactResponse|ContactResponseShape|null $data
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
* @param APIMeta|APIMetaShape|null $meta
*/
public static function with(
ContactResponse|array|null $data = null,
APIError|array|null $error = null,
ErrorDetail|array|null $error = null,
APIMeta|array|null $meta = null,
?bool $success = null,
): self {
Expand Down Expand Up @@ -101,9 +101,9 @@ public function withData(ContactResponse|array|null $data): self
/**
* Error information.
*
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
*/
public function withError(APIError|array|null $error): self
public function withError(ErrorDetail|array|null $error): self
{
$self = clone $this;
$self['error'] = $error;
Expand Down
16 changes: 8 additions & 8 deletions src/Contacts/ContactListResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
use SentDm\Core\Attributes\Optional;
use SentDm\Core\Concerns\SdkModel;
use SentDm\Core\Contracts\BaseModel;
use SentDm\Webhooks\APIError;
use SentDm\Webhooks\APIMeta;
use SentDm\Webhooks\ErrorDetail;

/**
* Standard API response envelope for all v3 endpoints.
*
* @phpstan-import-type DataShape from \SentDm\Contacts\ContactListResponse\Data
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
*
* @phpstan-type ContactListResponseShape = array{
* data?: null|Data|DataShape,
* error?: null|APIError|APIErrorShape,
* error?: null|ErrorDetail|ErrorDetailShape,
* meta?: null|APIMeta|APIMetaShape,
* success?: bool|null,
* }
Expand All @@ -40,7 +40,7 @@ final class ContactListResponse implements BaseModel
* Error information.
*/
#[Optional(nullable: true)]
public ?APIError $error;
public ?ErrorDetail $error;

/**
* Request and response metadata.
Expand All @@ -65,12 +65,12 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param Data|DataShape|null $data
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
* @param APIMeta|APIMetaShape|null $meta
*/
public static function with(
Data|array|null $data = null,
APIError|array|null $error = null,
ErrorDetail|array|null $error = null,
APIMeta|array|null $meta = null,
?bool $success = null,
): self {
Expand Down Expand Up @@ -100,9 +100,9 @@ public function withData(Data|array|null $data): self
/**
* Error information.
*
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
*/
public function withError(APIError|array|null $error): self
public function withError(ErrorDetail|array|null $error): self
{
$self = clone $this;
$self['error'] = $error;
Expand Down
16 changes: 8 additions & 8 deletions src/Me/MeGetResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
use SentDm\Core\Concerns\SdkModel;
use SentDm\Core\Contracts\BaseModel;
use SentDm\Me\MeGetResponse\Data;
use SentDm\Webhooks\APIError;
use SentDm\Webhooks\APIMeta;
use SentDm\Webhooks\ErrorDetail;

/**
* Standard API response envelope for all v3 endpoints.
*
* @phpstan-import-type DataShape from \SentDm\Me\MeGetResponse\Data
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
*
* @phpstan-type MeGetResponseShape = array{
* data?: null|Data|DataShape,
* error?: null|APIError|APIErrorShape,
* error?: null|ErrorDetail|ErrorDetailShape,
* meta?: null|APIMeta|APIMetaShape,
* success?: bool|null,
* }
Expand All @@ -42,7 +42,7 @@ final class MeGetResponse implements BaseModel
* Error information.
*/
#[Optional(nullable: true)]
public ?APIError $error;
public ?ErrorDetail $error;

/**
* Request and response metadata.
Expand All @@ -67,12 +67,12 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param Data|DataShape|null $data
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
* @param APIMeta|APIMetaShape|null $meta
*/
public static function with(
Data|array|null $data = null,
APIError|array|null $error = null,
ErrorDetail|array|null $error = null,
APIMeta|array|null $meta = null,
?bool $success = null,
): self {
Expand Down Expand Up @@ -104,9 +104,9 @@ public function withData(Data|array|null $data): self
/**
* Error information.
*
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
*/
public function withError(APIError|array|null $error): self
public function withError(ErrorDetail|array|null $error): self
{
$self = clone $this;
$self['error'] = $error;
Expand Down
16 changes: 8 additions & 8 deletions src/Messages/MessageGetActivitiesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
use SentDm\Core\Concerns\SdkModel;
use SentDm\Core\Contracts\BaseModel;
use SentDm\Messages\MessageGetActivitiesResponse\Data;
use SentDm\Webhooks\APIError;
use SentDm\Webhooks\APIMeta;
use SentDm\Webhooks\ErrorDetail;

/**
* Standard API response envelope for all v3 endpoints.
*
* @phpstan-import-type DataShape from \SentDm\Messages\MessageGetActivitiesResponse\Data
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
*
* @phpstan-type MessageGetActivitiesResponseShape = array{
* data?: null|Data|DataShape,
* error?: null|APIError|APIErrorShape,
* error?: null|ErrorDetail|ErrorDetailShape,
* meta?: null|APIMeta|APIMetaShape,
* success?: bool|null,
* }
Expand All @@ -40,7 +40,7 @@ final class MessageGetActivitiesResponse implements BaseModel
* Error information.
*/
#[Optional(nullable: true)]
public ?APIError $error;
public ?ErrorDetail $error;

/**
* Request and response metadata.
Expand All @@ -65,12 +65,12 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param Data|DataShape|null $data
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
* @param APIMeta|APIMetaShape|null $meta
*/
public static function with(
Data|array|null $data = null,
APIError|array|null $error = null,
ErrorDetail|array|null $error = null,
APIMeta|array|null $meta = null,
?bool $success = null,
): self {
Expand Down Expand Up @@ -100,9 +100,9 @@ public function withData(Data|array|null $data): self
/**
* Error information.
*
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
*/
public function withError(APIError|array|null $error): self
public function withError(ErrorDetail|array|null $error): self
{
$self = clone $this;
$self['error'] = $error;
Expand Down
16 changes: 8 additions & 8 deletions src/Messages/MessageGetStatusResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
use SentDm\Core\Concerns\SdkModel;
use SentDm\Core\Contracts\BaseModel;
use SentDm\Messages\MessageGetStatusResponse\Data;
use SentDm\Webhooks\APIError;
use SentDm\Webhooks\APIMeta;
use SentDm\Webhooks\ErrorDetail;

/**
* Standard API response envelope for all v3 endpoints.
*
* @phpstan-import-type DataShape from \SentDm\Messages\MessageGetStatusResponse\Data
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
*
* @phpstan-type MessageGetStatusResponseShape = array{
* data?: null|Data|DataShape,
* error?: null|APIError|APIErrorShape,
* error?: null|ErrorDetail|ErrorDetailShape,
* meta?: null|APIMeta|APIMetaShape,
* success?: bool|null,
* }
Expand All @@ -40,7 +40,7 @@ final class MessageGetStatusResponse implements BaseModel
* Error information.
*/
#[Optional(nullable: true)]
public ?APIError $error;
public ?ErrorDetail $error;

/**
* Request and response metadata.
Expand All @@ -65,12 +65,12 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param Data|DataShape|null $data
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
* @param APIMeta|APIMetaShape|null $meta
*/
public static function with(
Data|array|null $data = null,
APIError|array|null $error = null,
ErrorDetail|array|null $error = null,
APIMeta|array|null $meta = null,
?bool $success = null,
): self {
Expand Down Expand Up @@ -100,9 +100,9 @@ public function withData(Data|array|null $data): self
/**
* Error information.
*
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
*/
public function withError(APIError|array|null $error): self
public function withError(ErrorDetail|array|null $error): self
{
$self = clone $this;
$self['error'] = $error;
Expand Down
16 changes: 8 additions & 8 deletions src/Messages/MessageSendResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
use SentDm\Core\Concerns\SdkModel;
use SentDm\Core\Contracts\BaseModel;
use SentDm\Messages\MessageSendResponse\Data;
use SentDm\Webhooks\APIError;
use SentDm\Webhooks\APIMeta;
use SentDm\Webhooks\ErrorDetail;

/**
* Standard API response envelope for all v3 endpoints.
*
* @phpstan-import-type DataShape from \SentDm\Messages\MessageSendResponse\Data
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
*
* @phpstan-type MessageSendResponseShape = array{
* data?: null|Data|DataShape,
* error?: null|APIError|APIErrorShape,
* error?: null|ErrorDetail|ErrorDetailShape,
* meta?: null|APIMeta|APIMetaShape,
* success?: bool|null,
* }
Expand All @@ -40,7 +40,7 @@ final class MessageSendResponse implements BaseModel
* Error information.
*/
#[Optional(nullable: true)]
public ?APIError $error;
public ?ErrorDetail $error;

/**
* Request and response metadata.
Expand All @@ -65,12 +65,12 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param Data|DataShape|null $data
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
* @param APIMeta|APIMetaShape|null $meta
*/
public static function with(
Data|array|null $data = null,
APIError|array|null $error = null,
ErrorDetail|array|null $error = null,
APIMeta|array|null $meta = null,
?bool $success = null,
): self {
Expand Down Expand Up @@ -100,9 +100,9 @@ public function withData(Data|array|null $data): self
/**
* Error information.
*
* @param APIError|APIErrorShape|null $error
* @param ErrorDetail|ErrorDetailShape|null $error
*/
public function withError(APIError|array|null $error): self
public function withError(ErrorDetail|array|null $error): self
{
$self = clone $this;
$self['error'] = $error;
Expand Down
Loading
Loading